/* ═══════════════════════════════════════════════════════
   Dr. Rubén Pérez Manzo — Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ─── RESET & ROOT ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:   #F7F3EC;
  --cream2:  #EDE8DF;
  --navy:    #0E1E2D;
  --navy2:   #1A3045;
  --gold:    #B8902A;
  --gold-lt: #D4B05A;
  --blue:    #1B5E8C;
  --text:    #1C2B38;
  --text-lt: #4A5E6D;
  --white:   #FDFBF7;
  --serif:   'Cormorant Garant', Georgia, serif;
  --sans:    'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(247,243,236,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,144,42,0.15);
  transition: all 0.3s ease;
}
nav.scrolled {
  padding: 0.8rem 4rem;
  box-shadow: 0 2px 30px rgba(14,30,45,0.08);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: default;
  transition: opacity 0.25s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo span {
  display: block;
  font-weight: 300;
  font-size: 0.72rem;
  font-family: var(--sans);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lt);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 6rem 4rem;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.7s ease forwards 0.1s;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.7s ease forwards 0.35s;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}
.hero-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--text-lt);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  max-width: 420px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.6s ease forwards 1.8s;
}
.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.6s ease forwards 2.0s;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14,30,45,0.1);
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.6s ease forwards 2.2s;
}
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: all 0.3s;
  will-change: transform, box-shadow;
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,144,42,0.3);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-secondary {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-lt);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s;
}
.btn-secondary:hover { color: var(--navy); }
.stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-num sup { font-size: 1rem; color: var(--gold); }
.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-lt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
  background: var(--navy2);
}
.hero-img-wrap img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(27,94,140,0.75) 60%, rgba(26,77,110,0.7) 100%);
  z-index: 1;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(184,144,42,0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(27,94,140,0.2) 0%, transparent 50%);
}
.knee-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  z-index: 1;
}
.hero-badge {
  position: absolute;
  bottom: 3rem;
  left: -2rem;
  background: var(--cream);
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  box-shadow: 0 20px 60px rgba(14,30,45,0.2);
  z-index: 5;
  max-width: 280px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.8s ease forwards 0.6s;
}
.hero-badge-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.hero-badge-sub {
  font-size: 0.72rem;
  color: var(--text-lt);
  letter-spacing: 0.05em;
}

/* ─── ABOUT ─── */
#sobre {
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#sobre::before {
  content: 'DR';
  position: absolute;
  top: 4rem;
  left: 2rem;
  font-family: var(--serif);
  font-size: 18rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,30,45,0.04);
  pointer-events: none;
  line-height: 1;
}
.about-img-wrap { position: relative; }
.about-img-frame {
  aspect-ratio: 3/4;
  background: var(--navy2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy) 0%, #1B3D5C 100%);
}
.about-img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.doctor-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: rgba(247,243,236,0.3);
}
.doctor-placeholder svg { width: 80px; height: 80px; opacity: 0.4; }
.doctor-placeholder span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}
.about-accent-box {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1px solid var(--gold);
  opacity: 0.3;
  pointer-events: none;
  border-radius: 2px;
}
.about-credentials {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: 2px;
}
.cred-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.cred-txt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.section-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.section-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.section-h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}
.about-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-lt);
  margin-bottom: 2rem;
}
.about-bio strong { color: var(--navy); font-weight: 500; }
.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-lt);
  line-height: 1.5;
  transition: transform 0.25s ease;
  cursor: default;
}
.credential-list li:hover { transform: translateX(5px); }
.cred-icon {
  width: 28px;
  height: 28px;
  background: var(--cream2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

/* ─── SERVICES ─── */
#servicios {
  padding: 8rem 4rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#servicios::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
#servicios::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,94,140,0.15) 0%, transparent 70%);
  pointer-events: none;
}
#servicios-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.06;
  pointer-events: none;
}
.services-header {
  text-align: center;
  margin-bottom: 5rem;
}
.services-header .section-tag { justify-content: center; }
.services-header .section-tag::before { display: none; }
.services-header .section-h2 { color: var(--cream); }
.services-header .section-h2 em { color: var(--gold-lt); }
.services-header p {
  color: rgba(247,243,236,0.5);
  font-size: 1rem;
  max-width: 500px;
  margin: 1rem auto 0;
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.service-card {
  background: var(--navy2);
  border: 1px solid rgba(184,144,42,0.12);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  will-change: transform, box-shadow;
  transition:
    transform 0.35s cubic-bezier(.22,.68,0,1.2),
    background 0.4s,
    border-color 0.4s,
    box-shadow 0.35s;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(184,144,42,0.08), transparent);
  transition: height 0.4s;
}
.service-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(184,144,42,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(14,30,45,0.28);
}
.service-card:hover::before { height: 100%; }
.service-img {
  width: calc(100% + 5rem);
  margin: -3rem -2.5rem 1.8rem;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14,30,45,0.35);
  pointer-events: none;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.92;
  transition: opacity 0.5s, transform 0.5s;
}
.service-card:hover .service-img img {
  opacity: 0.85;
  transform: scale(1.06);
}
.service-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(184,144,42,0.12);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}
.service-card:hover .service-num { color: rgba(184,144,42,0.25); }
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}
.service-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.service-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(247,243,236,0.5);
}
.service-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s;
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── WHY ─── */
#por-que {
  padding: 8rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}
.why-content .section-h2 { margin-bottom: 2rem; }
.why-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-lt);
  margin-bottom: 3rem;
}
.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.why-feat {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.3s ease;
}
.why-feat:hover { transform: translateX(6px); }
.why-feat-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.why-feat-content h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.why-feat-content p {
  font-size: 0.85rem;
  color: var(--text-lt);
  line-height: 1.6;
}
.why-visual { position: relative; }
.why-card-stack {
  position: relative;
  height: 480px;
}
.why-card {
  position: absolute;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(14,30,45,0.08);
  padding: 2rem;
}
.why-card-main {
  top: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 60%, #0e1e2d 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  overflow: hidden;
}
.why-card-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(184,144,42,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(27,94,140,0.25) 0%, transparent 50%);
}
.why-card-main::after {
  content: '"';
  position: absolute;
  top: 1rem; left: 2rem;
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(184,144,42,0.12);
  line-height: 1;
}
.why-card-main-content { position: relative; z-index: 1; }
.why-card-main-quote {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.why-card-main-name {
  font-size: 0.75rem;
  color: var(--gold-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.why-card-stat {
  bottom: 2rem; right: 2rem;
  width: 160px;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--cream2);
}
.why-stat-big {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.why-stat-big sup { font-size: 1.2rem; color: var(--gold); }
.why-stat-label {
  font-size: 0.7rem;
  color: var(--text-lt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.why-card-award {
  bottom: 2rem; left: 2rem;
  width: 180px;
  background: var(--gold);
  color: var(--white);
}
.award-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.award-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.award-sub { font-size: 0.7rem; opacity: 0.8; }

/* ─── CITA ─── */
#cita {
  padding: 8rem 4rem;
  background: var(--cream2);
  position: relative;
}
#cita-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.04;
  pointer-events: none;
}
#cita::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--navy), transparent);
  opacity: 0.15;
}
.cita-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}
.cita-info .section-h2 { margin-bottom: 1.5rem; }
.cita-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-lt);
  margin-bottom: 2.5rem;
}
.cita-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cita-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-lt);
}
.cita-contact-item strong { color: var(--navy); font-weight: 500; }
.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.horario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(14,30,45,0.1);
}
.horario-item { font-size: 0.85rem; color: var(--text-lt); }
.horario-item strong {
  display: block;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.1rem;
}
.map-wrap {
  margin-top: 2rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(14,30,45,0.1);
  box-shadow: 0 8px 24px rgba(14,30,45,0.06);
  position: relative;
}
.map-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  z-index: 1;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: none;
  filter: grayscale(20%) contrast(1.05);
}
.map-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream2);
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: var(--text-lt);
  border-top: 1px solid rgba(14,30,45,0.08);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.map-cta:hover { background: var(--navy); color: var(--cream); }
.map-cta svg { color: var(--gold); flex-shrink: 0; transition: color 0.2s; }
.map-cta:hover svg { color: var(--gold-lt); }

/* ─── FORM ─── */
.cita-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(14,30,45,0.06);
  border-top: 3px solid var(--gold);
}
.form-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-sub {
  font-size: 0.82rem;
  color: var(--text-lt);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lt);
}
input, select, textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  border: 1px solid rgba(14,30,45,0.12);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  transition: all 0.25s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,144,42,0.08);
}
textarea { resize: vertical; min-height: 100px; }
select { appearance: none; cursor: pointer; }
.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  will-change: transform, box-shadow;
}
.btn-submit:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,144,42,0.3);
}
.btn-submit:active { transform: translateY(0) scale(0.98); }
.form-note {
  font-size: 0.72rem;
  color: var(--text-lt);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success svg {
  width: 60px;
  height: 60px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.form-success h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.form-success p {
  font-size: 0.9rem;
  color: var(--text-lt);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  padding: 4rem 4rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,243,236,0.08);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { font-size: 1.2rem; }
.footer-brand .nav-logo span { color: var(--gold-lt); }
.footer-desc {
  font-size: 0.85rem;
  color: rgba(247,243,236,0.4);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(247,243,236,0.5);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(247,243,236,0.25);
}
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a {
  font-size: 0.72rem;
  color: rgba(247,243,236,0.25);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-legal a:hover { color: rgba(247,243,236,0.5); }

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  animation: none;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.7); }
}
.wa-tooltip {
  position: absolute;
  right: 70px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--navy);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ─── SCROLL FADE IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ─── TYPEWRITER CURSOR ─── */
.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursorBlink 0.75s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-logo span { display: none; }
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 420px; display: block; position: relative; overflow: hidden; }
  .hero-img-wrap img.hero-bg { object-position: center center; }
  .hero-left { padding: 4rem 1.5rem 3rem; }
  .hero-h1 { font-size: 2.6rem; }
  .hero-badge { left: 1rem; bottom: 1rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-item { min-width: 80px; }
  .knee-svg { width: 260px; height: 320px; opacity: 0.4; }
  #sobre { grid-template-columns: 1fr; padding: 5rem 1.5rem; gap: 3rem; }
  .about-img-wrap { max-width: 400px; }
  #servicios { padding: 5rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-img { height: 220px; }
  #por-que { grid-template-columns: 1fr; padding: 5rem 1.5rem; gap: 3rem; }
  .why-card-stack { height: auto; position: static; display: flex; flex-direction: column; gap: 1rem; }
  .why-card { position: static; width: 100%; }
  #cita { padding: 5rem 1.5rem; }
  .cita-inner { grid-template-columns: 1fr; padding: 0; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .map-wrap iframe { height: 200px; }
  footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 0 0 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ─── MOBILE NAV ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 0.3rem;
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--cream);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(184,144,42,0.15);
    box-shadow: 0 10px 30px rgba(14,30,45,0.1);
    z-index: 99;
  }
}

/* ─── TABLET ─── */
@media (min-width: 901px) and (max-width: 1100px) {
  nav, nav.scrolled { padding-left: 2rem; padding-right: 2rem; }
  #sobre, #servicios, #por-que, #cita { padding-left: 2.5rem; padding-right: 2.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  #por-que { gap: 4rem; }
}
