/* ============================================================
   GMIC — Hoja de estilos compartida
   Versión 2.1 | Optimización SEO Técnico & WPO
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0d2b5e;
  --navy-2:      #1a3d7c;
  --navy-3:      #254d96;
  --cyan:        #1aa8d8;
  --cyan-light:  #5cc8ed;
  --cyan-pale:   #d4f1fb;
  --steel:       #6a87a8;
  --steel-light: #9ab5cc;
  --bg:          #f4f8fc;
  --bg-2:        #eaf2f9;
  --bg-white:    #ffffff;
  --text:        #0d2b5e;
  --text-2:      #2c4a70;
  --text-muted:  #5a7898;
  --text-dim:    #8aa4bb;
  --border:      rgba(13,43,94,0.1);
  --border-h:    rgba(26,168,216,0.45);
  --shadow-sm:   0 2px 12px rgba(13,43,94,0.07);
  --shadow-md:   0 6px 32px rgba(13,43,94,0.10);
  --shadow-lg:   0 16px 56px rgba(13,43,94,0.13);
  --teal:        #1aa8d8;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}

/* ── ACCESIBILIDAD ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ── NAVEGACIÓN ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  padding: 0 5%;
  height: 88px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
}

nav > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 2.2rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--cyan); }


/* Dropdown servicios */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  font-family: inherit, sans-serif;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0;
  transition: color 0.3s;
}
.nav-dropdown-btn:hover { color: var(--cyan); }
.nav-arrow {
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg); margin-top: -3px;
  transition: transform 0.3s, border-color 0.3s;
}

/* Estado normal del menú en escritorio: Oculto por defecto */
.nav-dropdown-menu {
  display: none;
  position: absolute; 
  top: calc(100% + 12px); 
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  padding: 0.5rem;
  z-index: 210;
}

/* Cuando JS añade .active al contenedor, mostrar el menú */
.nav-dropdown.active .nav-dropdown-menu {
  display: block;
}

/* Flecha: gira cuando el menú está abierto */
.nav-dropdown.active .nav-arrow,
.nav-dropdown-btn[aria-expanded="true"] .nav-arrow { 
  transform: rotate(-135deg); 
  margin-top: 2px; 
}

.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:hover { background: var(--bg-2); color: var(--cyan); }
.menu-icon { font-size: 1rem; opacity: 0.7; width: 20px; text-align: center; }
.nav-dropdown-menu a:hover .menu-icon { opacity: 1; }


/* CTA nav */
.nav-links .nav-cta {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
  padding: 0.6rem 1.5rem; border-radius: 100px;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(13,43,94,0.2);
}
.nav-links .nav-cta:hover {
  color: #ffffff !important;
  box-shadow: 0 6px 24px rgba(26,168,216,0.35);
  transform: translateY(-1px);
}

/* ── HAMBURGUESA (MÓVIL) ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (INDEX) ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 10rem 5% 6rem;
  position: relative;
  background: linear-gradient(160deg, #f8fbff 0%, #eaf4fb 55%, #e0eefc 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 80% 40%, rgba(26,168,216,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 45% 60% at 10% 80%, rgba(13,43,94,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg-image {
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background-image: url('imagenes/comunidad.jpeg');
  background-size: cover; background-position: center left;
  opacity: 0.25;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
}
.hero-content { max-width: 660px; position: relative; z-index: 2; }
.hero-tag {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-tag::before {
  content: '';
  display: block; width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  border-radius: 2px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--navy);
  margin-bottom: 1.5rem; overflow: visible;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block; padding-right: 0.12em;
}
.hero p {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 460px; margin-bottom: 2.8rem; line-height: 1.85;
}
.hero-actions { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.hero-stats {
  position: absolute; right: 5%; bottom: 8%;
  display: flex; gap: 1rem; z-index: 2;
}
.stat {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(13,43,94,0.1);
  border-radius: 14px;
  padding: 1.1rem 1.6rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(13,43,94,0.1);
  min-width: 110px;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem; font-weight: 400;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ── BOTONES ── */
.btn-primary {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 1rem 2.2rem; border-radius: 100px;
  text-decoration: none; transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 6px 24px rgba(13,43,94,0.22);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--cyan) 100%);
  box-shadow: 0 8px 32px rgba(26,168,216,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s; padding: 1rem 0;
}
.btn-ghost:hover { color: var(--cyan); }

/* ── SECCIONES GENERALES ── */
section { padding: 5rem 5%; }
.section-tag {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 300; line-height: 1.18;
  color: var(--navy); margin-bottom: 3.5rem;
}

/* ── ACORDEÓN (SERVICIOS INDEX) ── */
#servicios {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.servicios-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: stretch; }
.servicios-left { display: flex; flex-direction: column; }
.servicios-left .section-title { margin-bottom: 2rem; }
.accordion-wrap { max-width: 800px; }

.accordion-header-wrap {
  position: relative;
}

/* Truco SEO Enlace Oculto */
.seo-hidden-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.accordion-item {
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-item.open { border-top-color: var(--border-h); }

.accordion-header {
  width: 100%; background: none; border: none;
  padding: 1.7rem 0;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; color: var(--text); transition: color 0.3s;
  position: relative;
  z-index: 2;
}
.accordion-item.open .accordion-header,
.accordion-item:hover .accordion-header { color: var(--cyan); }

.accordion-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 400;
  letter-spacing: 0.01em; color: var(--navy);
}
.accordion-item:hover .accordion-title,
.accordion-item.open .accordion-title { color: var(--cyan); }

.accordion-num {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--text-dim); margin-right: 1.4rem;
}
.accordion-item.open .accordion-num,
.accordion-item:hover .accordion-num { color: var(--cyan); }

.accordion-icon {
  width: 28px; height: 28px;
  border: 1.5px solid var(--text-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.4s, color 0.4s, border-color 0.4s, background-color 0.4s;
  color: var(--text-dim); font-size: 1rem;
}
.accordion-item.open .accordion-icon,
.accordion-item:hover .accordion-icon {
  border-color: var(--cyan); color: var(--cyan);
  background: var(--cyan-pale); transform: rotate(45deg);
}
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.accordion-content {
  padding-bottom: 2rem; color: var(--text-muted);
  font-size: 0.94rem; line-height: 1.88; max-width: 640px;
}
.accordion-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.28rem 0.9rem; border-radius: 100px;
  border: 1.5px solid rgba(13,43,94,0.2);
  color: var(--navy-2); background: var(--bg);
}
.servicios-img-wrap {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  min-height: 400px;
}
.servicios-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}

/* ── NOSOTROS / FEATURES ── */
#nosotros { background: var(--bg); }
.section-intro {
  color: var(--text-muted); font-size: 0.94rem;
  line-height: 1.88; max-width: 680px;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
  display: flex; width: 48px; height: 48px;
  background: var(--cyan-pale); border-radius: 12px;
  align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 1.2rem;
}
.feature h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.feature p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── RESEÑAS ── */
#resenas { background: var(--bg); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.50rem;
  margin-top: 3rem;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.review-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.review-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}
.review-author { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
  color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.review-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.review-role { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }

@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ── CONTACTO ── */
#contacto { background: var(--bg-2); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 5rem; align-items: start;
}
.contact-info h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; color: var(--navy);
  margin-bottom: 1rem; line-height: 1.2;
}
.contact-info > p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item-icon {
  width: 42px; height: 42px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  color: var(--cyan); flex-shrink: 0;
}
.contact-item a { color: var(--navy); text-decoration: none; }
.contact-item a:hover { color: var(--cyan); }

/* Formulario */
.contact-form {
  background: #fff; border-radius: 20px;
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; color: var(--text);
  background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-pale);
}
.form-checkbox {
  display: flex; align-items: flex-start;
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--cyan);
}
.form-checkbox label { font-size: 0.8rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form-checkbox label a { color: var(--cyan); text-decoration: underline; }
.form-submit { display: flex; align-items: center; gap: 1.5rem; }
.btn-submit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 100%);
  padding: 1rem 2.4rem; border-radius: 100px;
  border: none; cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(13,43,94,0.2);
}
.btn-submit:hover { box-shadow: 0 6px 28px rgba(26,168,216,0.3); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.75rem; color: var(--text-dim); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: var(--navy); padding: 32px 5%;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ── PÁGINA DE SERVICIO (hero) ── */
.page-hero {
  padding: 10rem 5% 6rem;
  background: linear-gradient(160deg, #f8fbff 0%, #eaf4fb 55%, #e0eefc 100%);
  position: relative; min-height: 60vh;
  display: flex; align-items: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 55% at 80% 40%, rgba(26,168,216,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }
.back-link {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; transition: color 0.3s;
}
.back-link:hover { color: var(--cyan); }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 300; line-height: 1.1;
  color: var(--navy); margin: 1rem 0 1.5rem;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block;
}
.page-hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.85; }

/* ── DETAIL GRID (servicios) ── */
.content-section { padding: 6rem 5%; }
.content-section.alt { background: #fff; }
.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.detail-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.content-section.alt .detail-card { background: var(--bg); }
.detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.detail-icon {
  display: flex; width: 48px; height: 48px;
  background: var(--cyan-pale); border-radius: 12px;
  align-items: center; justify-content: center;
  color: var(--cyan); margin-bottom: 1.2rem;
}
.detail-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.detail-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── PROCESO ── */
.process-list { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }
.process-step {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 2rem 0; border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem; font-weight: 300;
  color: var(--cyan-light); line-height: 1;
  flex-shrink: 0; width: 60px;
}
.step-body h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.step-body p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── CONTACT STRIP ── */
.contact-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 5rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem;
}
.contact-strip h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; color: #fff; line-height: 1.2;
}
.contact-strip h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--cyan-light) 0%, var(--cyan-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.strip-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.strip-actions .btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-light) 100%);
  color: var(--navy);
}
.strip-actions .btn-ghost { color: rgba(255,255,255,0.75); }
.strip-actions .btn-ghost:hover { color: #fff; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 5%;
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p {
  flex: 1; font-size: 0.84rem; color: rgba(255,255,255,0.8);
  min-width: 200px; line-height: 1.5;
}
#cookie-banner a { color: var(--cyan-light); text-decoration: underline; }
.cookie-btn-accept {
  background: var(--cyan); color: #fff;
  border: none; border-radius: 100px;
  padding: 0.6rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--cyan-light); }
.cookie-btn-reject {
  background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 100px;
  padding: 0.6rem 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.cookie-btn-reject:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── PÁGINA LEGAL ── */
.legal-page { padding: 7rem 5% 5rem; max-width: 860px; margin: 0 auto; }
.legal-page h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem; font-weight: 300;
  color: var(--navy); margin-bottom: 0.5rem;
}
.legal-page .legal-meta {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); border-bottom: 2px solid var(--navy);
  padding-bottom: 1.2rem; margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); margin: 2.8rem 0 1rem;
  border-bottom: 1px solid var(--border); padding-bottom: 0.6rem;
}
.legal-page h3 { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin: 1.8rem 0 0.8rem; }
.legal-page p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.legal-page ul { list-style: none; margin-bottom: 1rem; padding-left: 0; }
.legal-page ul li {
  font-size: 0.9rem; color: var(--text-muted);
  padding: 4px 0 4px 18px; position: relative; line-height: 1.7;
}
.legal-page ul li::before { content: "•"; position: absolute; left: 0; color: var(--cyan); }
.legal-page ul li strong { color: var(--navy); font-weight: 600; }
.contact-box {
  margin-top: 2.5rem; border-left: 3px solid var(--cyan);
  padding: 1.2rem 1.5rem; background: var(--bg);
  border-radius: 0 8px 8px 0;
}
.contact-box p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.contact-box a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.browser-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.browser-list a {
  font-size: 0.82rem; color: var(--cyan);
  text-decoration: none; padding: 4px 14px;
  border: 1px solid var(--cyan); border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.browser-list a:hover { background: var(--cyan); color: #fff; }

/* ── 404 ── */
.page-404 {
  min-height: 100vh; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
}
.page-404 .num404 {
  font-family: 'Fraunces', serif;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 300; line-height: 1;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-404 h1 { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 300; color: var(--navy); margin-bottom: 1rem; }
.page-404 p { color: var(--text-muted); margin-bottom: 2rem; }

/* ── MENSAJES FORMULARIO ── */
.success-msg, .error-msg { display: none; margin-top: 1rem; padding: 1rem; border-radius: 4px; }
.success-msg { background-color: #e6f4ea; color: #137333; }
.error-msg { background-color: #fce8e6; color: #c5221f; }

/* ── RESPONSIVE 1024px ── */
@media (max-width: 1024px) {
  .servicios-layout { grid-template-columns: 1fr; }
  .servicios-img-wrap { position: relative; height: 280px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── RESPONSIVE 768px ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; height: 70px; }

  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    flex-direction: column; gap: 0;
    position: fixed; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 1rem 0;
    z-index: 200;
  }
  .nav-links.open,
  .nav-links.active { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-dropdown-btn {
    display: block; padding: 0.9rem 1.5rem;
    font-size: 0.88rem;
  }

  .nav-dropdown-menu {
    /* Corregido: ya no fuerza display none si JS lo altera */
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: unset;
    padding: 0;
    background: var(--bg-2);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-dropdown-menu a { padding: 0.7rem 2rem; }

  .hero { padding: 8rem 1.2rem 4rem; min-height: auto; }
  .hero-bg-image { width: 100%; opacity: 0.12; }
  .hero-stats { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
  .stat { text-align: left; }
  .hero h1 { font-size: 2.5rem; }
  
  section { padding: 4rem 1.2rem; }
  .page-hero { padding: 7rem 1.2rem 3rem; }

  .form-row { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; text-align: center; }
  .strip-actions { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }

  footer { padding: 2rem 1.2rem; flex-direction: column; align-items: flex-start; gap: 1rem; }

  .legal-page { padding: 6rem 1.2rem 3rem; }
  #cookie-banner { padding: 1rem 1.2rem; }
}

/* ── PROCESO ACTUACIÓN (reparaciones) ── */
/* Encapsulado solo para pantallas grandes para evitar rotura móvil */
@media (min-width: 769px) {
  .content-section.alt .section-tag,
  .content-section.alt .section-title { text-align: right; }
  .content-section.alt .process-step { flex-direction: row-reverse; }
  .content-section.alt .step-num { text-align: right; width: 60px; flex-shrink: 0; }
  .content-section.alt .step-body { text-align: right; }
}


/* ============================================================
   GMIC — SECCIÓN GARANTÍAS LEGALES
   ============================================================ */
#garantias-legales {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}

#garantias-legales .features-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 2rem auto 0;
}

@media (max-width: 992px) {
  #garantias-legales .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  #garantias-legales .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}