/* ============================================================
   HARMONY FINISH & PAINTING — style.css
   Paleta: navy profundo + dorado (definida en :root, editable
   en vivo desde el panel administrativo vía variables CSS).
   ============================================================ */

:root {
  --primary: #055BA6;
  --primary-dark: #033D73;
  --primary-light: #3D82C4;
  --background: #FFFFFF;
  --text: #1C2430;
  --text-on-primary: #FFFFFF;
  --muted: #6B7280;
  --radius: 14px;
  --ease: cubic-bezier(.4,0,.2,1);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: 'Playfair Display', serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ── Barra superior mínima ── */
.top-strip { background: transparent; }
.top-strip-inner {
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
  padding: 18px 0 0;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--primary); font-size: .82rem; letter-spacing: .04em; opacity: .75;
  transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.lang-toggle {
  border: 1px solid var(--primary-light); color: var(--primary);
  padding: 6px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-toggle:hover { background: var(--primary-light); color: #fff; }

/* ── Hero ── */
.hero {
  position: relative; background: var(--background); color: var(--text); overflow: hidden;
  padding: 8px 0 60px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center;
}
.brand-mark { cursor: pointer; user-select: none; margin-bottom: 6px; display: flex; justify-content: flex-start; }
.hero-logo-img { width: min(420px, 90%); height: auto; display: block; }
.hero-copy h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.4; margin-top: 4px; }
.hero-copy h1 span {
  display: block; color: var(--primary); letter-spacing: .12em; font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.hero-copy h1 .line2 {
  color: var(--primary-light); font-style: italic; font-weight: 500; font-family: 'Playfair Display', serif;
  letter-spacing: 0; font-size: 1.15em; margin-top: 2px;
}
.hero-copy .rule { width: 90px; height: 2px; background: var(--primary-light); margin-top: 22px; }

.hero-visual {
  position: relative; aspect-ratio: 4/3.3; border-radius: var(--radius);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden; background: linear-gradient(135deg, #E7EEF5, #D7E3EE 60%, #C7D8E8);
  box-shadow: 0 24px 50px rgba(11,30,61,.18);
  border: 1px solid rgba(5,91,166,.35);
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; background: #F2F6FA; }
.hero-visual .placeholder-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(11,30,61,.18); font-size: 5rem;
}
.hero-fold {
  position: absolute; left: -3px; bottom: -3px; width: 120px; height: 120px; z-index: 2;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  background: repeating-linear-gradient(135deg,
    var(--primary-light) 0 14px, var(--primary) 14px 21px, #fff 21px 26px, var(--primary-light) 26px 33px);
  opacity: .95;
}

/* ── Section shell ── */
.section { padding: 72px 0; }
.section-title {
  text-align: center; font-size: 1.7rem; letter-spacing: .18em; color: var(--primary);
  font-family: 'Poppins', sans-serif; font-weight: 700;
}
.section-title-rule {
  width: 60px; height: 2px; background: var(--primary-light); margin: 16px auto 44px;
}

/* ── Projects carousel ── */
.carousel-wrap { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.project-card {
  position: relative; flex: 0 0 clamp(220px, 27vw, 280px); scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.3; cursor: pointer;
  background: linear-gradient(150deg, #1c3358, #0c1f3d);
  box-shadow: 0 14px 30px rgba(11,30,61,.18);
}
.project-card img { width: 100%; height: 100%; object-fit: contain; background: #F2F6FA; transition: transform .35s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card .placeholder-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(231,199,102,.4); font-size: 2.8rem;
}
.project-card .label {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--primary);
  color: #fff; text-align: center; padding: 10px 8px; font-weight: 600;
  letter-spacing: .08em; font-size: .82rem;
}
.project-card .zoom-hint {
  position: absolute; inset: 0 0 34px 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11,30,61,0); color: #fff; font-size: 1.6rem; opacity: 0;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.project-card:hover .zoom-hint { background: rgba(11,30,61,.35); opacity: 1; }

/* Mientras se traduce al inglés, atenuamos el contenido sin dejarlo en blanco */
.translatable-block.is-translating { opacity: .45; pointer-events: none; transition: opacity .2s var(--ease); }
.carousel-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.15); transition: background .2s var(--ease);
  z-index: 5;
}
.carousel-btn:hover { background: var(--primary-light); }
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: #CBD9E6; transition: background .2s;
}
.carousel-dots button.active { background: var(--primary-light); }

/* ── Services ── */
.services-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 28px;
}
.service-card { text-align: center; width: 190px; display: flex; flex-direction: column; align-items: center; }
.service-icon {
  width: 92px; height: 92px; margin: 0 auto 16px; display: flex; align-items: center;
  justify-content: center; color: var(--primary); font-size: 2.6rem; overflow: hidden;
}
.service-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; background: #F2F6FA; }
.service-card h3 {
  font-size: .92rem; letter-spacing: .02em; margin-bottom: 8px; color: var(--primary);
  font-family:'Poppins',sans-serif; font-weight:600; line-height: 1.3;
  min-height: 2.6em; display: flex; align-items: center; justify-content: center; width: 100%;
}
.service-card p { font-size: .8rem; color: var(--muted); }

/* ── Sobre nosotros ── */
.about-with-photo {
  display: flex; align-items: center; gap: 44px; max-width: 860px; margin: 0 auto;
}
.about-photo {
  flex: none; width: 230px; height: 230px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--primary-light); box-shadow: 0 14px 30px rgba(11,30,61,.18);
}
.about-photo img { width: 100%; height: 100%; object-fit: contain; background: #F2F6FA; }
.about-text { flex: 1; }
.about-person { color: var(--primary); font-weight: 700; font-size: .95rem; margin-bottom: 10px; letter-spacing: .02em; }
.about-text p.about-body, .about-text-only p { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.about-text-only { max-width: 700px; margin: 0 auto; text-align: center; }

/* ── Secciones en azul (alternadas: blanco/azul/blanco/azul/blanco) ── */
.section-blue {
  background: var(--primary);
}
.section-blue .section-title,
.section-blue .about-person {
  color: var(--text-on-primary);
}
.section-blue .section-title-rule {
  background: var(--text-on-primary);
}
.section-blue .about-text p.about-body,
.section-blue .about-text-only p {
  color: var(--text-on-primary); opacity: .88;
}
.section-blue .about-photo {
  border-color: var(--text-on-primary);
}
.section-blue .carousel-dots button {
  background: rgba(255,255,255,.35);
}
.section-blue .carousel-dots button.active {
  background: var(--text-on-primary);
}

/* ── Trust row ── */
.trust-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid #D8E3EE; border-bottom: 1px solid #D8E3EE;
  padding: 30px 0;
}
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; }
.trust-item i { color: var(--primary); font-size: 1.3rem; flex: none; }
.trust-item span { font-size: .82rem; font-weight: 600; color: var(--primary); }

/* ── Contact ── */
.contact-section { background: var(--background); color: var(--text); border-top: 1px solid #DCE7F1; }
.contact-section .section-title { color: var(--primary); }

.contact-actions-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px;
  max-width: 620px; margin: 0 auto 30px;
}
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--primary); text-align: center; background: none; border: none;
}
.action-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.5rem;
  background: linear-gradient(150deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 22px rgba(11,30,61,.25);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.action-btn:hover .action-icon { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(11,30,61,.32); }
.action-btn:active .action-icon { transform: translateY(0) scale(.96); }
.action-label { font-size: .8rem; font-weight: 700; letter-spacing: .01em; }

.contact-location-line {
  text-align: center; color: var(--muted); font-size: .86rem; margin-bottom: 30px;
}
.contact-location-line i { color: var(--primary-light); margin-right: 6px; }

.social-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 46px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; color: #fff;
  box-shadow: 0 6px 14px rgba(11,30,61,.12);
  transition: transform .2s var(--ease);
}
.social-row a:hover { transform: translateY(-3px); }
.social-row a.soc-facebook { background: #1877F2; }
.social-row a.soc-instagram { background: radial-gradient(circle at 30% 110%, #fdf497, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-row a.soc-tiktok { background: #000; }
.social-row a.soc-whatsapp { background: #25D366; }

.message-box {
  background: #fff; color: var(--text); border-radius: 20px; padding: 38px;
  max-width: 640px; margin: 0 auto; border: 1px solid #DCE7F1;
  box-shadow: 0 30px 60px rgba(11,30,61,.10);
}
.message-box-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 26px;
}
.message-box-head i { color: var(--primary-light); font-size: 1rem; }
.message-box-head h3 {
  color: var(--primary); text-align: center; letter-spacing: .1em; font-size: 1.05rem;
  font-family: 'Poppins', sans-serif; font-weight: 700;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field-icon { position: relative; display: flex; align-items: center; }
.field-icon > i {
  position: absolute; left: 16px; color: var(--primary-light); font-size: .88rem; pointer-events: none;
}
.field-icon-textarea { align-items: flex-start; margin-bottom: 20px; }
.field-icon-textarea > i { top: 15px; }
.message-box input, .message-box select, .message-box textarea {
  width: 100%; border: 1.5px solid #D8E3EE; border-radius: 12px; padding: 13px 14px 13px 42px;
  font-family: inherit; font-size: .9rem; background: #F7FAFD; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.message-box select { appearance: none; background-image: none; padding-right: 30px; }
.message-box input:focus, .message-box select:focus, .message-box textarea:focus {
  outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(5,91,166,.14);
  background: #fff;
}
.message-box textarea { min-height: 110px; resize: vertical; }
.message-box .send-btn {
  width: 100%; background: var(--primary); color: #fff; padding: 16px; border-radius: 12px;
  font-weight: 700; letter-spacing: .1em; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.message-box .send-btn i { font-size: .8rem; transition: transform .2s var(--ease); }
.message-box .send-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(11,30,61,.22); }
.message-box .send-btn:hover i { transform: translateX(3px); }
.form-note { text-align: center; font-size: .78rem; margin-top: 14px; min-height: 1em; }
.form-note.ok { color: #1a7f4f; }
.form-note.err { color: #b23c3c; }

/* ── Footer ── */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--background); color: var(--muted); text-align: center; padding: 34px 0;
  font-size: .8rem; border-top: 1px solid #D8E3EE;
}
.site-footer::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--primary), var(--primary-light), transparent);
}
/* destellos decorativos — a los costados, nunca detrás del logo */
.site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 8% 30%, rgba(5,91,166,.08), transparent 45%),
    radial-gradient(circle at 94% 70%, rgba(5,91,166,.07), transparent 45%);
}
.site-footer-logo {
  position: relative; z-index: 1; height: 92px; width: auto; display: block; margin: 0 auto 14px;
}
.site-footer p { position: relative; z-index: 1; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .85rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease);
  box-shadow: 0 12px 26px rgba(0,0,0,.25); z-index: 200; border: 1px solid rgba(5,91,166,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Modal de código QR ── */
.qr-modal {
  position: fixed; inset: 0; background: rgba(7,20,41,.65); backdrop-filter: blur(3px);
  z-index: 270; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.qr-modal-card {
  position: relative; background: #fff; border-radius: 20px; padding: 40px 34px 32px;
  max-width: 340px; width: 100%; text-align: center; box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.qr-modal-card h3 {
  color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: .03em; margin-bottom: 20px;
}
.qr-modal-card #qrCodeBox { line-height: 0; display: flex; justify-content: center; margin-bottom: 18px; }
.qr-modal-card #qrCodeBox svg, .qr-modal-card #qrCodeBox img { width: 200px; height: 200px; }
.qr-modal-card p { color: var(--muted); font-size: .82rem; line-height: 1.6; }

/* ── Página de detalle de proyecto ── */
.project-detail-page {
  position: fixed; inset: 0; background: #fff; z-index: 260; overflow-y: auto;
}
.project-detail-topbar {
  position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid #DCE7F1;
  display: flex; align-items: center; justify-content: space-between; padding: 16px 24px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 700;
  font-size: .88rem; letter-spacing: .03em; padding: 10px 16px; border-radius: 999px;
  border: 1px solid #D8E3EE; transition: background .2s var(--ease);
}
.back-btn:hover { background: #EAF2FA; }
.back-btn i { font-size: .8rem; }
.project-detail-logo { height: 34px; width: auto; }
.project-detail-content {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px 90px;
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center;
}
.project-detail-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  padding: 120px 0; color: var(--primary-light); font-size: 2.2rem;
}
.project-detail-media { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(11,30,61,.14); }
.project-detail-media img { width: 100%; display: block; }
.project-detail-media .placeholder-icon {
  width: 100%; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #E7EEF5, #C7D8E8); color: rgba(11,30,61,.2); font-size: 4rem;
}
.project-detail-info h1 {
  color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 700;
  letter-spacing: .04em; font-size: 1.7rem; margin-bottom: 16px;
}
.project-detail-info .rule { width: 60px; height: 2px; background: var(--primary-light); margin-bottom: 20px; }
.project-detail-info p { color: var(--muted); font-size: 1.02rem; line-height: 1.85; margin-bottom: 28px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid #D8E3EE; color: var(--primary); font-weight: 700; font-size: .88rem;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease);
}
.like-btn i { color: #C94F5C; font-size: 1rem; }
.like-btn:hover { background: #FFF5F6; border-color: #F2C9CE; }
.like-btn:active { transform: scale(.97); }
.like-btn.liked { background: #FFF0F1; border-color: #F2C9CE; }

/* ── Comparador antes / después ── */
.compare-slider {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; user-select: none;
  touch-action: none; cursor: ew-resize;
}
.compare-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #F2F6FA; display: block; }
.compare-after { z-index: 1; }
.compare-before-wrap { position: absolute; inset: 0; z-index: 2; overflow: hidden; width: 50%; }
.compare-before-wrap img { height: 100%; max-width: none; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 3; width: 3px; background: #fff;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.compare-handle-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.compare-tag {
  position: absolute; top: 14px; z-index: 4; background: rgba(11,30,61,.7); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
}
.compare-tag-before { left: 14px; }
.compare-tag-after { right: 14px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-overlay {
  position: fixed; inset: 0; background: rgba(7,20,41,.6); backdrop-filter: blur(3px);
  z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.admin-login-box {
  background: #fff; border-radius: 16px; padding: 40px 36px; width: 100%; max-width: 440px;
  text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.admin-login-box img { height: 160px; width: auto; margin: 0 auto 22px; }
.admin-login-box h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 6px; }
.admin-login-box p { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.admin-login-box input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px;
  margin-bottom: 12px; font-size: .9rem;
}
.admin-login-box button {
  width: 100%; background: var(--primary); color: #fff; padding: 12px; border-radius: 10px;
  font-weight: 700; letter-spacing: .04em;
}
.admin-login-box .err-msg { color: #b23c3c; font-size: .78rem; min-height: 1.2em; margin-bottom: 6px; }
.admin-login-box .close-x { display:block; margin-top:16px; color: var(--muted); font-size:.78rem; }

.admin-panel {
  position: fixed; inset: 0; background: #F2F6FA; z-index: 250;
  display: flex; flex-direction: column;
}
.admin-topbar {
  background: #fff; color: var(--primary); border-bottom: 1px solid #E1EAF3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; min-height: 92px; flex-wrap: wrap; gap: 14px;
}
.admin-topbar .title { display: flex; align-items: center; gap: 16px; font-weight: 600; letter-spacing: .02em; font-size: 1.05rem; color: var(--primary); }
.admin-topbar .title img { height: 72px; width: auto; display: block; }
.admin-topbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-btn {
  padding: 9px 16px; border-radius: 8px; font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; transition: opacity .2s;
}
.admin-btn:hover { opacity: .85; }
.admin-btn.primary { background: var(--primary); color: #fff; }
.admin-btn.ghost { background: #fff; color: var(--primary); border: 1px solid #C9DAEA; }
.admin-btn.danger { background: #7a2b2b; color: #fff; }

.admin-body { flex: 1; overflow: auto; }
.admin-tabs {
  display: flex; gap: 4px; background: #fff; border-bottom: 1px solid #D8E3EE;
  padding: 0 24px; overflow-x: auto;
}
.admin-tabs button {
  padding: 14px 18px; font-size: .84rem; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.admin-tabs button.active { color: var(--primary); border-color: var(--primary-light); }
.admin-content { max-width: 980px; margin: 0 auto; padding: 30px 24px 80px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-card {
  background: #fff; border: 1px solid #E1EAF3; border-radius: 14px; padding: 22px;
  margin-bottom: 18px;
}
.admin-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 4px; font-family:'Poppins',sans-serif; }
.admin-card .hint { font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.field-row.single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .74rem; font-weight: 600; color: var(--primary); letter-spacing: .02em; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  padding: 10px 12px; border: 1px solid #C9DAEA; border-radius: 8px; font-size: .86rem; font-family: inherit;
}
.field textarea { min-height: 70px; resize: vertical; }
.field-lang-badge {
  display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  color: var(--primary-light); background: var(--primary); padding: 2px 8px; border-radius: 6px; margin-bottom: 2px;
  width: fit-content;
}
.repeatable-item {
  border: 1px dashed #C9DAEA; border-radius: 12px; padding: 16px; margin-bottom: 14px; position: relative;
}
.repeatable-item .remove-btn {
  position: absolute; top: 10px; right: 10px; color: #b23c3c; font-size: .78rem; font-weight: 600;
}
.add-btn {
  border: 1.5px dashed var(--primary-light); color: var(--primary); padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: .82rem; width: 100%; text-align: center;
}
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type=color] { width: 44px; height: 36px; border: 1px solid #ddd; border-radius: 8px; padding: 2px; }
.color-field span { font-size: .8rem; color: var(--muted); font-family: monospace; }
.img-uploader { display: flex; align-items: center; gap: 14px; }
.img-preview {
  width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: #EFF4F9;
  border: 1px solid #D8E3EE; display: flex; align-items: center; justify-content: center; color: #9FB3C8;
  overflow: hidden;
}
.img-preview i { font-size: 1.4rem; }
#prevLogo { width: 140px; height: 140px; }
#prevLogo i { font-size: 2.2rem; }
.file-btn {
  border: 1px solid var(--primary); color: var(--primary); padding: 8px 14px; border-radius: 8px; font-size: .8rem; font-weight: 600;
}
.save-bar {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid #E1EAF3;
  padding: 14px 24px; display: flex; justify-content: flex-end; gap: 10px;
}
.admin-note {
  background: #FFF7E3; border: 1px solid #EBD79A; color: #7a5b12; font-size: .8rem;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-mark { justify-content: center; }
  .hero-logo-img { width: min(320px, 80%); margin: 0 auto; }
  .hero-copy .rule { margin-left: auto; margin-right: auto; }
  .project-detail-content { grid-template-columns: 1fr; padding-top: 28px; }
  .about-with-photo { flex-direction: column; text-align: center; gap: 22px; }
  .project-detail-info { text-align: center; }
  .project-detail-info .rule { margin-left: auto; margin-right: auto; }
  .like-btn { margin: 0 auto; }
  .hero-visual {
    order: -1; max-width: 480px; margin: 0 auto;
    clip-path: none; aspect-ratio: 4/3;
  }
  .hero-fold { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .message-box { padding: 28px 22px; }
  .contact-actions-grid { gap: 22px 10px; }
  .action-icon { width: 56px; height: 56px; font-size: 1.3rem; }
  .action-label { font-size: .72rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .carousel-btn { display: none; } /* en móvil el carrusel se navega deslizando con el dedo */
  .project-card { flex-basis: 78vw; }
  .services-grid { gap: 22px 10px; flex-wrap: nowrap; }
  .service-card { width: auto; flex: 1 1 0; min-width: 0; }
  .service-icon { width: 72px; height: 72px; font-size: 2rem; }
  .service-card h3 { font-size: .78rem; }
  .service-card p { font-size: .72rem; }
  .admin-topbar { padding: 12px 16px; }
  .admin-topbar .title { font-size: .92rem; }
  .admin-topbar .title img { height: 54px; }
  .admin-content { padding: 22px 16px 70px; }
  .field-row.two-col-mobile { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .site-header .top-strip-inner, .top-strip-inner { padding-top: 14px; }
  .hero-copy h1 { font-size: 1.55rem; }
  .services-grid { gap: 14px 6px; }
  .service-icon { width: 58px; height: 58px; font-size: 1.6rem; }
  .service-card h3 { font-size: .68rem; line-height: 1.25; }
  .service-card p { font-size: .62rem; line-height: 1.4; }
  .message-box { padding: 22px 16px; border-radius: 16px; }
  .project-detail-info h1 { font-size: 1.3rem; }
  .lightbox-info, .project-detail-info p { font-size: .94rem; }
}

