/* ===== DESIGN TOKENS ===== */
:root {
  --navy: #002A63;
  --navy-light: #003d8f;
  --steel: #778D9B;
  --steel-light: #a3b5c2;
  --steel-pale: #e8edf1;
  --white: #ffffff;
  --off-white: #f7f9fb;
  --dark: #1a1a2e;
  --text: #2c3e50;
  --text-light: #6b7c8d;
  --gold: #c9a84c;
  --success: #27ae60;
  --shadow-sm: 0 2px 8px rgba(0, 42, 99, .08);
  --shadow-md: 0 8px 30px rgba(0, 42, 99, .12);
  --shadow-lg: 0 20px 60px rgba(0, 42, 99, .15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --font: 'Nunito Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white)
}

img {
  max-width: 100%;
  display: block
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition)
}

ul {
  list-style: none
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.section {
  padding: 100px 0
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8
}

.text-center {
  text-align: center
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: .5px
}

.btn-primary {
  background: var(--navy);
  color: var(--white)
}

.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .4)
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--white)
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy)
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white)
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white)
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, .35)
}

.btn-whatsapp-hero {
  padding: 18px 44px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .8px;
  box-shadow: 0 6px 30px rgba(37, 211, 102, .45);
  animation: whatsappGlow 2.5s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, .25)
}

.btn-whatsapp-hero:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 40px rgba(37, 211, 102, .55)
}

@keyframes whatsappGlow {
  0%, 100% { box-shadow: 0 6px 30px rgba(37, 211, 102, .45) }
  50% { box-shadow: 0 8px 40px rgba(37, 211, 102, .7), 0 0 60px rgba(37, 211, 102, .2) }
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  padding: 8px 0
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px
}

.topbar-contact {
  display: flex;
  gap: 24px;
  align-items: center
}

.topbar-contact a {
  color: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  gap: 6px
}

.topbar-contact a:hover {
  color: var(--white)
}

.topbar-social {
  display: flex;
  gap: 12px
}

.topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--white)
}

.topbar-social a:hover {
  background: rgba(255, 255, 255, .25);
  transform: scale(1.1)
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition)
}

.header.scrolled {
  box-shadow: var(--shadow-sm)
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px
}

.logo {
  display: flex;
  align-items: center
}

.logo img {
  height: 45px;
  width: auto;
  object-fit: contain
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav a {
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  position: relative
}

.nav a:hover,
.nav a.active {
  color: var(--navy)
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: var(--transition)
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1)
}

.nav .btn {
  margin-left: 12px
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative
}

.nav-dropdown-trigger {
  cursor: pointer
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 1001
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0)
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text);
  font-size: .9rem;
  transition: background .2s ease
}

.nav-dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--navy)
}

.nav-dropdown-menu a i {
  width: 18px;
  text-align: center;
  color: var(--steel)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition)
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 130vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0a3d7a 40%, var(--steel) 100%);
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.png') center/cover;
  opacity: .15;
  mix-blend-mode: overlay
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,100 1080,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E") center bottom/cover no-repeat
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2
}

.hero-content {
  color: var(--white)
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  animation: slideDown .8s ease
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .5)
  }

  50% {
    opacity: .7;
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0)
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 8px;
  animation: fadeInUp 1s ease .2s both
}

.hero-name {
  white-space: nowrap;
  font-size: 1em;
  display: block;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  opacity: 1
}

.hero h1 span:not(.hero-name) {
  display: block;
  font-size: .38em;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 12px;
  white-space: nowrap
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero-text {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.8;
  animation: fadeInUp 1s ease .4s both
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease .6s both
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-left: -40px
}

.hero-image img {
  width: 650px;
  max-width: none;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .35));
  animation: heroImgIn 1.2s ease .3s both
}

@keyframes heroImgIn {
  from {
    opacity: 0;
    transform: scale(.9) translateY(30px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(119, 141, 155, .25) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: glowPulse 4s ease-in-out infinite
}

@keyframes glowPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: .6
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1
  }
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border: 2px dashed rgba(255, 255, 255, .1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: spinSlow 30s linear infinite
}

@keyframes spinSlow {
  to {
    transform: translate(-50%, -50%) rotate(360deg)
  }
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  animation: fadeInUp 1s ease .8s both
}

.hero-stat {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .1)
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display)
}

.hero-stat .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .7
}

/* ===== ABOUT ===== */
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center
}

.about-image {
  position: relative;
  overflow: visible;
  padding-bottom: 30px;
  padding-right: 30px
}

.about-image > img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg)
}

.about-image .experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  z-index: 10
}

.about-image .experience-badge .num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1
}

.about-image .experience-badge .txt {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .8
}

/* ===== SURGERY CAROUSEL ===== */
.surgery-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 1 / 1
}

.surgery-carousel-track {
  position: relative;
  width: 100%;
  height: 100%
}

.surgery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
  transform: scale(1.04);
  z-index: 0
}

.surgery-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1
}

.surgery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.surgery-prev,
.surgery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 42, 99, .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  opacity: 0
}

.surgery-carousel:hover .surgery-prev,
.surgery-carousel:hover .surgery-next {
  opacity: 1
}

.surgery-prev {
  left: 14px
}

.surgery-next {
  right: 14px
}

.surgery-prev:hover,
.surgery-next:hover {
  background: rgba(0, 42, 99, .85);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25)
}

.surgery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  border-radius: 50px
}

.surgery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid rgba(255, 255, 255, .2)
}

.surgery-dot.active {
  background: var(--white);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(255, 255, 255, .5)
}

.surgery-dot:hover:not(.active) {
  background: rgba(255, 255, 255, .7)
}



.about-text p {
  margin-bottom: 16px;
  color: var(--text-light)
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition)
}

.credential:hover {
  background: var(--steel-pale);
  transform: translateY(-2px)
}

.credential .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0
}

.credential .info h4 {
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: 2px
}

.credential .info p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.4
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  position: relative;
  height: 80px;
  margin-top: -1px
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px
}

.section-divider-reverse svg {
  position: absolute;
  top: 0;
  width: 100%;
  height: 80px
}

/* ===== SERVICES ===== */
.services {
  background: var(--off-white);
  position: relative
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--steel));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition)
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--steel-pale)
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-family: var(--font-display)
}

.service-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.7
}

/* ===== WHY CHOOSE ===== */
.why-choose .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px
}

.feature {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--steel-pale);
  transition: var(--transition)
}

.feature:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px)
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 42, 99, .08), rgba(119, 141, 155, .08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--navy);
  transition: var(--transition)
}

.feature:hover .feature-icon {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.05)
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
  font-family: var(--font-display)
}

.feature p {
  font-size: .88rem;
  color: var(--text-light)
}

/* ===== CONVENIOS / LOGO CAROUSEL ===== */
.convenios {
  background: var(--off-white)
}

.logos-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: scrollLogos 40s linear infinite
}

.logos-track img {
  height: 70px;
  width: auto;
  max-width: 200px;
  object-fit: contain
}

@keyframes scrollLogos {
  0% { transform: translateX(0) }
  100% { transform: translateX(-50%) }
}

.logos-track-slow {
  animation-duration: 25s
}

.acreditaciones {
  background: var(--white)
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  position: relative;
  overflow: hidden
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/surgery-room.png') center/cover;
  opacity: .07;
  pointer-events: none
}

.testimonials .section-label {
  color: var(--steel-light)
}

.testimonials .section-title {
  color: var(--white)
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, .7)
}

.testimonials-slider {
  position: relative;
  margin-top: 48px;
  overflow: hidden
}

.testimonials-track {
  display: flex;
  transition: transform .5s ease
}

.testimonial-card {
  min-width: 100%;
  padding: 0 20px
}

.testimonial-card .inner {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center
}

.testimonial-card .stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 16px;
  letter-spacing: 4px
}

.testimonial-card blockquote {
  font-size: 1.15rem;
  line-height: 1.8;
  font-style: italic;
  opacity: .9;
  margin-bottom: 20px
}

.testimonial-card .author {
  font-weight: 700;
  font-size: .9rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: 1.5px
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition)
}

.slider-btn:hover {
  background: rgba(255, 255, 255, .25)
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  justify-content: center
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  transition: var(--transition);
  cursor: pointer
}

.slider-dot.active {
  background: var(--white);
  transform: scale(1.2)
}

.testimonials-buttons {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

.btn-google {
  background: var(--white);
  color: var(--navy);
  border: none
}

.btn-google:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, .2)
}

.testimonials .btn-secondary {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .35)
}

.testimonials .btn-secondary:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white)
}

/* ===== LOCATIONS ===== */
.locations {
  background: var(--off-white)
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px
}

.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--steel-pale);
  transition: var(--transition)
}

.location-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px)
}

.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.location-card p {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px
}

.location-card .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase
}

.tag-green {
  background: rgba(39, 174, 96, .1);
  color: var(--success)
}

.insurance-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.insurance-list span {
  padding: 6px 14px;
  background: var(--off-white);
  border-radius: 50px;
  font-size: .78rem;
  color: var(--text-light);
  border: 1px solid var(--steel-pale)
}

.map-wrapper {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md)
}

.map-tabs {
  display: flex;
  background: var(--off-white);
  border-bottom: 1px solid var(--steel-pale)
}

.map-tab {
  flex: 1;
  padding: 14px 16px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.map-tab.active {
  background: var(--navy);
  color: var(--white)
}

.map-tab:hover:not(.active) {
  background: var(--steel-pale)
}

.map-container {
  position: relative;
  height: 350px
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease
}

.map-frame.active {
  opacity: 1;
  pointer-events: auto
}

/* ===== CONTACT ===== */
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 20px
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 24px
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  transition: var(--transition)
}

.contact-method:hover {
  background: var(--steel-pale)
}

.contact-method .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0
}

.contact-method .details h4 {
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: 2px
}

.contact-method .details p {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--steel-pale)
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 24px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.form-group {
  margin-bottom: 16px
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--steel-pale);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white)
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(0, 42, 99, .08)
}

.form-group textarea {
  resize: vertical;
  min-height: 100px
}

.form-submit {
  text-align: right;
  margin-top: 8px
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: .88rem;
  display: none
}

.form-message.success {
  display: block;
  background: rgba(39, 174, 96, .1);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, .2)
}

.form-message.error {
  display: block;
  background: rgba(231, 76, 60, .1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, .2)
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding: 60px 0 0
}

.footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  object-fit: contain
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px
}

.footer-social {
  display: flex;
  gap: 10px
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  transition: var(--transition)
}

.footer-social a:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px)
}

.footer h4 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px
}

.footer-links a {
  display: block;
  font-size: .88rem;
  padding: 6px 0;
  transition: var(--transition)
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 48px;
  padding: 20px 0;
  font-size: .8rem
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px
}

.footer-copyright {
  opacity: .7
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 6px
}

.footer-legal-sep {
  opacity: .4
}

.footer-bottom a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .3s ease;
  position: relative;
  padding-bottom: 1px
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width .3s ease
}

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

.footer-bottom a:hover::after {
  width: 100%
}

/* ===== PRIVACY POLICY MODAL ===== */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 15, 35, .7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  padding: 20px
}

.privacy-modal-overlay.active {
  opacity: 1;
  visibility: visible
}

.privacy-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
  transform: translateY(30px) scale(.96);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden
}

.privacy-modal-overlay.active .privacy-modal {
  transform: translateY(0) scale(1)
}

.privacy-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--steel-pale);
  color: var(--navy);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease
}

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

.privacy-modal-body {
  padding: 48px 44px;
  overflow-y: auto;
  max-height: 85vh;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-pale) transparent
}

.privacy-modal-body::-webkit-scrollbar {
  width: 6px
}

.privacy-modal-body::-webkit-scrollbar-track {
  background: transparent
}

.privacy-modal-body::-webkit-scrollbar-thumb {
  background: var(--steel-pale);
  border-radius: 3px
}

.privacy-modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3
}

.privacy-responsible {
  color: var(--steel);
  font-size: .95rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--steel-pale)
}

.privacy-modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--steel)
}

.privacy-modal-body p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 12px
}

.privacy-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0
}

.privacy-modal-body ul li {
  position: relative;
  padding-left: 20px;
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 6px
}

.privacy-modal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel)
}

.privacy-modal-body a {
  color: var(--navy);
  text-decoration: underline;
  font-weight: 600
}

.privacy-modal-body a:hover {
  color: var(--steel)
}

@media (max-width: 600px) {
  .privacy-modal-body {
    padding: 36px 20px
  }

  .privacy-modal-body h2 {
    font-size: 1.25rem
  }

  .privacy-modal {
    max-height: 90vh
  }

  .privacy-modal-body {
    max-height: 90vh
  }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, .5)
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition)
}

.whatsapp-float:hover .tooltip {
  opacity: 1
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1)
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0)
}

.fade-up[data-delay="1"] {
  transition-delay: .1s
}

.fade-up[data-delay="2"] {
  transition-delay: .2s
}

.fade-up[data-delay="3"] {
  transition-delay: .3s
}

.fade-up[data-delay="4"] {
  transition-delay: .4s
}

.fade-up[data-delay="5"] {
  transition-delay: .5s
}

/* Animated gradient border on CTA */
.btn-primary {
  position: relative;
  overflow: hidden
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--navy), var(--steel), var(--navy));
  background-size: 200% 100%;
  border-radius: 50px;
  z-index: -1;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity .3s
}

.btn-primary:hover::before {
  opacity: 1
}

@keyframes shimmer {
  to {
    background-position: 200% 0
  }
}

/* ===== RESPONSIVE ===== */
@media(max-width:992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero-content {
    order: 1
  }

  .hero-image {
    order: 0;
    margin-bottom: 20px;
    margin-left: 0
  }

  .hero-image img {
    width: 380px;
    max-width: 90vw
  }

  .hero-text {
    margin: 0 auto 36px
  }

  .hero-buttons {
    justify-content: center
  }

  .hero-stats {
    justify-content: center
  }

  .about .container {
    grid-template-columns: 1fr
  }

  .about-image {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
    padding-right: 0
  }

  .surgery-carousel {
    width: 100%;
    aspect-ratio: 4 / 3
  }

  .about-image .experience-badge {
    bottom: -15px;
    right: 10px
  }

  .surgery-prev,
  .surgery-next {
    opacity: 1
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .why-choose .features {
    grid-template-columns: repeat(2, 1fr)
  }

  .contact .container {
    grid-template-columns: 1fr
  }

  .footer .container {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 6px
  }
  .topbar {
    display: none
  }

  .topbar-contact {
    display: none
  }

  .header {
    box-shadow: none
  }

  .hero {
    min-height: auto
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
    gap: 4px
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto
  }

  .nav .btn {
    margin-left: 0;
    width: 100%;
    justify-content: center
  }

  .hamburger {
    display: flex
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
  }

  .services-grid,
  .why-choose .features {
    grid-template-columns: 1fr
  }

  .locations-grid {
    grid-template-columns: 1fr
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .about-credentials {
    grid-template-columns: 1fr
  }

  .surgery-carousel {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 250px
  }

  .surgery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover
  }

  .surgery-prev,
  .surgery-next {
    opacity: 1
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px
  }

  .section {
    padding: 60px 0
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    border: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 0;
    min-width: unset;
    margin: 0
  }

  .nav-dropdown-menu a {
    padding: 12px 0;
    font-size: 1rem;
    justify-content: center;
    color: var(--text);
    font-weight: 500;
    font-family: var(--font)
  }

  .nav-dropdown-menu a i {
    display: none
  }

  .nav-dropdown-trigger {
    display: none
  }

  .hero {
    padding: 100px 0 80px;
    min-height: auto
  }

  .hero h1 {
    font-size: 2rem;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal
  }

  .hero-name {
    white-space: normal
  }

  .hero h1 span:not(.hero-name) {
    font-size: .35em;
    letter-spacing: 1px;
    margin-top: 8px;
    white-space: normal
  }

  .hero-text {
    font-size: .9rem;
    margin-bottom: 24px
  }
}

@media(max-width:480px) {
  .hero {
    padding: 100px 0 80px;
    min-height: auto
  }

  .hero h1 {
    font-size: 2rem;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal
  }

  .hero-name {
    white-space: normal
  }

  .hero h1 span:not(.hero-name) {
    font-size: .35em;
    letter-spacing: 1px;
    margin-top: 8px;
    white-space: normal
  }

  .hero-text {
    font-size: .95rem;
    margin-bottom: 24px
  }

  .hero-image img {
    width: 280px;
    max-width: 85vw
  }

  .about-image {
    padding-bottom: 16px;
    padding-right: 16px
  }

  .surgery-carousel {
    aspect-ratio: 1 / 1
  }

  .surgery-prev,
  .surgery-next {
    width: 36px;
    height: 36px;
    font-size: .8rem
  }

  .surgery-dots {
    padding: 6px 12px;
    gap: 6px
  }

  .surgery-dot {
    width: 8px;
    height: 8px
  }

  .about-image .experience-badge {
    padding: 16px 20px
  }

  .about-image .experience-badge .num {
    font-size: 1.8rem
  }

  .about-image .experience-badge .txt {
    font-size: .65rem
  }

  .hero-badge {
    font-size: .7rem;
    padding: 6px 14px
  }

  .btn-whatsapp-hero {
    font-size: .9rem;
    padding: 14px 28px
  }

  .hero-stat .number {
    font-size: 1.8rem
  }

  .hero-stat .label {
    font-size: .65rem
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem
  }

  .section-title {
    font-size: 1.6rem
  }

  .section-subtitle {
    font-size: .9rem
  }

  .testimonial-card .inner {
    padding: 24px 16px
  }

  .testimonial-card blockquote {
    font-size: 1rem
  }

  .testimonials-buttons {
    flex-direction: column;
    align-items: center
  }

  .testimonials-buttons .btn {
    width: 100%;
    justify-content: center
  }
}