:root {
  /* Color Palette - HSL Tailored */
  --primary-hue: 222;
  --primary: hsl(var(--primary-hue), 59%, 15%);       /* Navy #0F1D3A */
  --primary-mid: hsl(var(--primary-hue), 52%, 22%);   /* Mid Navy #162447 */
  --primary-lt: hsl(var(--primary-hue), 52%, 32%);    /* Light Navy #213669 */
  --primary-bg: hsl(var(--primary-hue), 40%, 97%);    /* Very light navy tint */
  
  --accent-hue: 39;
  --accent: hsl(var(--accent-hue), 48%, 61%);         /* Gold #C9A96E */
  --accent-lt: hsl(var(--accent-hue), 55%, 72%);      /* Light Gold #DFC08A */
  --accent-dark: hsl(var(--accent-hue), 45%, 45%);    /* Dark Gold */
  
  --success: hsl(142, 69%, 40%);                      /* Green #25D366 */
  --success-hover: hsl(142, 69%, 33%);
  
  --white: hsl(0, 0%, 100%);
  --off-white: hsl(210, 20%, 97%);                    /* Off white #F7F8FA */
  --muted: hsl(215, 16%, 47%);                        /* Gray #6B7280 */
  --light: hsla(0, 0%, 100%, 0.75);
  --line: hsla(var(--primary-hue), 59%, 15%, 0.08);
  --line-light: hsla(0, 0%, 100%, 0.1);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 2px 8px rgba(15, 29, 58, 0.04);
  --shadow: 0 10px 30px rgba(15, 29, 58, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 29, 58, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* Offset for sticky nav */
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-lt);
  border-radius: var(--radius);
  border: 2px solid var(--off-white);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 76px;
  background: hsla(0, 0%, 100%, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

nav.scrolled {
  height: 68px;
  box-shadow: var(--shadow-sm);
  background: hsla(0, 0%, 100%, 0.98);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.nav-brand .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .01em;
  line-height: 1.1;
}

.nav-brand .sub {
  font-size: .65rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .03em;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 0 22px;
  height: 44px;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(15, 29, 58, 0.1);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-cta:hover {
  background: var(--primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 29, 58, 0.15);
}

.nav-cta:hover svg {
  transform: rotate(15deg) scale(1.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--primary);
  display: block;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ─── HERO ─── */
#inicio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding-top: 76px;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary-bg) 100%);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-navy {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 0 28px;
  height: 52px;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(15, 29, 58, 0.15);
}

.btn-navy svg {
  width: 14px;
  transition: transform 0.3s;
}

.btn-navy:hover {
  background: var(--primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 29, 58, 0.2);
}

.btn-navy:hover svg {
  transform: translateX(4px);
}

.btn-outline-navy {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0 28px;
  height: 52px;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 29, 58, 0.1);
}

.hero-stats {
  display: flex;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: auto;
}

.stat {
  flex: 1;
  padding-right: 20px;
  border-right: 1px solid var(--line);
  margin-right: 20px;
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.stat .val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat .lbl {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-mid);
}

.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 29, 58, 0.7) 0%, rgba(15, 29, 58, 0.15) 100%),
              radial-gradient(circle at 70% 30%, hsla(var(--accent-hue), 48%, 61%, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  z-index: 1;
  transition: var(--transition-smooth);
}

.hero-right:hover .hero-img {
  transform: scale(1.03);
}

.hero-badge-card {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: var(--primary);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: slideUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.5s;
  z-index: 3;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge-card .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-badge-card .badge-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--primary);
}

.hero-badge-card .badge-sub {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── SECTION SHARED ─── */
.section-header {
  max-width: 700px;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: inline-block;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 24px;
}

h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}

section {
  padding: 100px 80px;
}

/* ─── ESPECIALISTA ─── */
#especialista {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  padding: 0;
  background: var(--off-white);
}

.esp-img {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.esp-img-fill {
  position: absolute;
  inset: 0;
  background: var(--primary-mid);
}

.esp-img-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 8s ease;
}

.esp-img:hover .esp-img-fill img {
  transform: scale(1.05);
}

.esp-cred {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 29, 58, 0.95) 70%, transparent);
  color: var(--white);
  padding: 40px 36px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.esp-cred svg {
  flex-shrink: 0;
  color: var(--accent);
}

.esp-cred .cred-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--white);
}

.esp-cred .cred-sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-lt);
  font-weight: 600;
}

.esp-content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.esp-subs {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 28px;
}

.esp-body {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 32px;
}

.esp-body strong {
  font-weight: 600;
  color: var(--primary);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .92rem;
  color: hsl(var(--primary-hue), 30%, 25%);
  line-height: 1.5;
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-dark);
}

/* ─── SERVICIOS ─── */
#servicios {
  padding: 120px 80px;
  background: var(--white);
}

.services-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 64px;
}

.services-header h2 {
  margin-bottom: 0;
}

.services-header-right {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  padding: 44px 36px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.svc-card:hover {
  background: var(--white);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.svc-card:hover::before {
  transform: scaleX(1);
}

.svc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.svc-icon {
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(15, 29, 58, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.svc-card:hover .svc-icon {
  background: var(--primary);
  color: var(--white);
}

.svc-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.svc-arrow {
  color: var(--muted);
  opacity: .4;
  transition: var(--transition);
}

.svc-card:hover .svc-arrow {
  opacity: 1;
  color: var(--accent-dark);
  transform: translate(2px, -2px);
}

.svc-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.svc-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}

.svc-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── TECNOLOGÍA ─── */
#tecnologia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  background: var(--primary);
}

.tech-left {
  color: var(--white);
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-left .section-eyebrow {
  color: var(--accent-lt);
}

.tech-left h2 {
  color: var(--white);
}

.tech-left p {
  font-size: 1rem;
  color: var(--light);
  line-height: 1.8;
  font-weight: 300;
  max-width: 500px;
}

.tech-right-content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--primary-mid);
}

.tech-feats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-feat {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.tech-feat:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.tech-feat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.tech-feat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.tech-feat h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.tech-feat p {
  font-size: .88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── PROCESO / ESTUDIOS CLAVE ─── */
#proceso {
  padding: 120px 80px;
  background: var(--off-white);
}

.proceso-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.pstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.pstep-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pstep:hover .pstep-num {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(15, 29, 58, 0.2);
}

.pstep .week {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.pstep h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.pstep p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ─── TESTIMONIOS (NUEVO) ─── */
#testimonios {
  padding: 120px 80px;
  background: var(--white);
  overflow: hidden;
}

.testimonios-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  position: relative;
  min-height: 240px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--primary-lt);
  line-height: 1.6;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-service {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-top: 4px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--accent-dark);
  width: 24px;
  border-radius: 4px;
}

/* ─── PREGUNTAS FRECUENTES (FAQ) (NUEVO) ─── */
#faq {
  padding: 120px 80px;
  background: var(--off-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.faq-sticky {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: rgba(201, 169, 110, 0.4);
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--accent-dark);
  transition: transform 0.3s ease;
  margin-left: 16px;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 24px 24px 24px;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── CONTACTO & AGENDAMIENTO ─── */
#contacto {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  padding: 100px 80px;
  gap: 80px;
  background: var(--white);
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h2 {
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 40px;
}

/* Booking Form Design */
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-lt);
}

.form-control {
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--off-white);
  transition: var(--transition);
}

textarea.form-control {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-dark);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

.btn-submit {
  grid-column: span 2;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(15, 29, 58, 0.15);
}

.btn-submit:hover {
  background: var(--primary-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 29, 58, 0.2);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.cii-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.cii-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.cii-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.cii-val {
  font-size: .92rem;
  color: var(--primary);
  font-weight: 500;
}

.cii-val a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.cii-val a:hover {
  color: var(--accent-dark);
}

.contact-map {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ─── FOOTER ─── */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 80px;
  margin-bottom: 64px;
}

.footer-brand .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.footer-brand .sub {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-brand .desc {
  font-size: .88rem;
  color: var(--light);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 32px;
}

.footer-aff-label {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-aff {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-aff li {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

.footer-aff li::before {
  content: '•';
  color: var(--accent);
  display: inline-block;
  width: 16px;
}

.footer-col-label {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fci {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

.fci svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* ─── MODALES ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 29, 58, 0.4);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  max-width: 580px;
  width: 100%;
  padding: 48px;
  border-radius: var(--radius-lg);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--off-white);
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.25;
}

.modal p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}

.modal strong {
  font-weight: 600;
  color: var(--primary);
}

/* Form confirmation inside modal styling */
.booking-summary {
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.btn-whatsapp-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  height: 52px;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-send:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-send svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ─── ANIMATION REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: .15s; }
.d2 { transition-delay: .3s; }
.d3 { transition-delay: .45s; }
.d4 { transition-delay: .6s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1200px) {
  nav {
    padding: 0 32px;
  }
  
  section {
    padding: 80px 32px;
  }
  
  #inicio {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-left {
    padding: 60px 32px 80px 32px;
    align-items: center;
    text-align: center;
  }
  
  .hero-desc {
    max-width: 600px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    width: 100%;
  }
  
  .hero-right {
    min-height: 480px;
    padding: 60px 32px;
  }
  
  .hero-badge-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 40px;
    max-width: 500px;
    width: 100%;
  }
  
  #especialista {
    grid-template-columns: 1fr;
  }
  
  .esp-img {
    min-height: 450px;
  }
  
  .esp-content {
    padding: 80px 32px;
  }
  
  #servicios {
    padding: 80px 32px;
  }
  
  .services-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #tecnologia {
    grid-template-columns: 1fr;
  }
  
  .tech-left, .tech-right-content {
    padding: 80px 32px;
  }
  
  #proceso {
    padding: 80px 32px;
  }
  
  .proceso-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  
  .proceso-steps::before {
    display: none;
  }
  
  #faq {
    padding: 80px 32px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .faq-sticky {
    position: relative;
    top: auto;
  }
  
  #contacto {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .contact-left {
    padding: 0;
  }
  
  .contact-right {
    padding: 0;
    gap: 32px;
  }
  
  .contact-map {
    height: 320px;
  }
  
  footer {
    padding: 80px 32px 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  nav {
    height: 72px;
  }
  
  .nav-links, .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  /* Mobile nav overlay styles */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsla(0, 0%, 100%, 0.98);
    padding: 40px 32px;
    gap: 24px;
    z-index: 99;
    backdrop-filter: blur(20px);
    animation: slideNav 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    overflow-y: auto;
  }
  
  @keyframes slideNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .nav-links.open a {
    font-size: 1.15rem;
    font-weight: 600;
  }
  
  .nav-cta-mobile {
    display: flex !important;
    margin-top: auto;
    width: 100%;
    justify-content: center;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .proceso-steps {
    grid-template-columns: 1fr;
  }
  
  .booking-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .btn-submit {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .modal {
    padding: 32px 24px;
  }
}
