
:root{--p:#6500a8;--p2:#8b25d2;--lav:#f4eaff;--ink:#25104d;--muted:#655b78;--teal:#00b8a5;--line:#eadcf8;--white:#fff;--shadow:0 12px 35px rgba(68,20,113,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.6}a{color:inherit}.wrap{width:min(1160px,92%);margin:auto}
header{position:sticky;top:0;z-index:50;background:rgba(101,0,168,.98);color:#fff;box-shadow:0 4px 22px #30004d1a}.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#fff;font-family:cursive;font-size:25px;line-height:.9;white-space:nowrap}.brand small{display:block;font:italic 10px/1.2 system-ui;letter-spacing:2px;text-align:center}.navlinks{display:flex;align-items:center;gap:20px}.navlinks a{text-decoration:none;font-size:13px;font-weight:700}.navlinks a:hover{opacity:.75}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 19px;border-radius:999px;background:var(--teal);color:#fff;text-decoration:none;font-weight:800;font-size:14px;border:0;box-shadow:0 5px 14px #00b8a526;transition:.2s}.btn:hover{transform:translateY(-2px)}.btn.outline{background:#fff;color:var(--p);border:1px solid var(--line);box-shadow:none}.btn.purple{background:var(--p)}.menu-toggle{display:none;background:transparent;border:1px solid #ffffff66;color:#fff;border-radius:10px;padding:8px 11px;font-size:20px}
.hero{background:radial-gradient(circle at 80% 20%,#e9d3ff 0,transparent 36%),linear-gradient(120deg,#fff,#faf4ff 65%,#f1e2ff);padding:54px 0 48px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:36px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:900;color:var(--p2)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(38px,5vw,60px);line-height:1.04;letter-spacing:-1.8px;margin:12px 0 18px;font-weight:900}h1 em{font-style:normal;color:var(--p2);font-family:Georgia,serif}.lead{font-size:18px;color:var(--muted);max-width:540px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:23px 0}.points{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#514366}.points span{display:flex;align-items:center;gap:7px}.mini{width:25px;height:25px;display:inline-grid;place-items:center;border:1.5px solid var(--p2);color:var(--p);border-radius:8px;font-size:12px;flex:0 0 auto}.hero-img{position:relative}.hero-img img{width:100%;height:410px;object-fit:cover;object-position:center;border-radius:40% 40% 24px 24px;box-shadow:var(--shadow)}.photo-note{position:absolute;bottom:18px;left:-15px;background:#fff;padding:13px 17px;border-radius:15px;box-shadow:var(--shadow);font-weight:800;font-size:13px}.photo-note b{color:var(--p2)}
.promo{padding:0 0 35px;margin-top:-3px;position:relative}.promo-card{display:grid;grid-template-columns:.8fr 1.2fr;background:linear-gradient(110deg,#a327e9,#6500a8 62%,#4c008b);color:#fff;border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.promo-card img{height:100%;min-height:270px;width:100%;object-fit:cover}.promo-content{padding:27px 30px}.pill{display:inline-block;background:#f2ddff;color:#6100a5;padding:4px 11px;border-radius:999px;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:1px}.promo h2{font-size:clamp(28px,3vw,40px);margin:10px 0 3px}.price{font-size:21px;font-weight:650;margin-bottom:15px}.included{background:#fff;color:var(--ink);border-radius:14px;padding:14px 17px;font-size:12px}.included ul{margin:8px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}.included li:before{content:"✓";color:var(--p2);font-weight:900;margin-right:7px}
section{padding:72px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:27px}.section-head h2{font-size:clamp(28px,3.4vw,40px);line-height:1.1;letter-spacing:-1px;margin:7px 0 0}.section-head p{max-width:470px;color:var(--muted);margin:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{border:1px solid var(--line);border-radius:19px;overflow:hidden;background:#fff;box-shadow:0 7px 22px #5b13830a;transition:.2s}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.card img{width:100%;height:170px;object-fit:cover}.card-body{padding:18px}.card-title{display:flex;align-items:center;gap:9px;margin-bottom:8px}.icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--lav);color:var(--p);font-size:14px;flex:0 0 auto}.card h3{font-size:17px;margin:0}.card p{font-size:13px;color:var(--muted);margin-bottom:12px}.link{color:var(--p);font-weight:850;text-decoration:none;font-size:13px}
.detail{padding:66px 0;border-top:1px solid var(--line)}.detail:nth-of-type(even){background:#fcf9ff}.detail-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:42px}.detail-grid.reverse .copy{order:2}.detail-grid.reverse .detail-img{order:1}.detail-img img{height:370px;width:100%;object-fit:cover;border-radius:25px;box-shadow:var(--shadow)}.copy h2{font-size:clamp(29px,3.3vw,41px);line-height:1.1;margin:8px 0 15px}.copy p{color:var(--muted)}.copy h3{font-size:17px;margin:22px 0 9px}.checks{padding:0;list-style:none;display:grid;gap:8px;margin:0 0 23px}.checks li{font-size:14px;color:#4f4165}.checks li:before{content:"✓";display:inline-grid;place-items:center;background:#e9dcff;color:var(--p);font-weight:900;border-radius:50%;width:19px;height:19px;font-size:11px;margin-right:9px}.notice{background:#f8f0ff;border-left:3px solid var(--p2);padding:13px 15px;border-radius:0 12px 12px 0;font-size:12px;color:var(--muted);margin:16px 0}
.process{background:linear-gradient(130deg,#f6edff,#fff 65%,#effdfa)}.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.process-card{padding:22px 16px;background:#ffffffd9;border:1px solid var(--line);border-radius:18px;text-align:center}.process-card .icon{margin:0 auto 12px;width:39px;height:39px;font-size:17px}.process-card h3{font-size:15px;margin-bottom:7px}.process-card p{font-size:12px;color:var(--muted);margin:0}
.about-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:38px;align-items:center}.about-img img{height:360px;object-fit:cover;width:100%;border-radius:25px}.benefits{display:flex;gap:18px;margin-top:22px}.benefits div{flex:1;font-size:12px;color:var(--muted)}.benefits b{display:block;color:var(--p);font-size:13px}.location{background:#fcf9ff}.location-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px;align-items:stretch}.contact{background:#fff;border:1px solid var(--line);border-radius:22px;padding:27px}.contact h2{font-size:32px;line-height:1.1}.contact-line{display:flex;gap:12px;margin:19px 0}.contact-line .icon{width:37px;height:37px}.contact-line strong{display:block;font-size:14px}.contact-line span{font-size:13px;color:var(--muted)}.map{border:0;width:100%;min-height:390px;height:100%;border-radius:22px;box-shadow:var(--shadow)}
footer{background:#50008b;color:#fff;padding:34px 0}.footer-row{display:flex;justify-content:space-between;align-items:center;gap:24px}.footer-row p{margin:7px 0 0;color:#e8d9f6;font-size:13px}.footer-links{display:flex;gap:15px;flex-wrap:wrap}.footer-links a{font-size:12px;color:#fff;text-decoration:none}.floating{position:fixed;right:18px;bottom:18px;z-index:40}.small{font-size:11px;color:var(--muted);margin-top:12px}
@media(max-width:850px){.navlinks{display:none;position:absolute;top:72px;left:0;right:0;background:var(--p);padding:18px 5%;flex-direction:column;align-items:flex-start;gap:16px}.navlinks.open{display:flex}.menu-toggle{display:block}.nav>.btn{display:none}.hero{padding:40px 0}.hero-grid,.detail-grid,.about-grid,.location-grid{grid-template-columns:1fr}.hero-img img{height:320px}.promo-card{grid-template-columns:1fr}.promo-card img{height:220px;min-height:0}.promo-content{padding:23px}.section-head{align-items:flex-start;flex-direction:column}.cards{grid-template-columns:repeat(2,1fr)}.detail-grid.reverse .copy,.detail-grid.reverse .detail-img{order:initial}.detail-img img{height:290px}.process-grid{grid-template-columns:repeat(2,1fr)}.about-img img{height:290px}.map{min-height:320px}.footer-row{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.brand{font-size:22px}.hero-grid{gap:25px}h1{letter-spacing:-1.3px}.lead{font-size:16px}.hero-img img{height:275px}.photo-note{left:4px}.points{gap:9px}.cards{gap:10px}.card img{height:120px}.card-body{padding:12px}.card h3{font-size:14px}.card p{font-size:11px}.icon{width:28px;height:28px;font-size:12px}.card-title{gap:6px}.link{font-size:12px}.included ul{grid-template-columns:1fr}.price{font-size:18px}.process-card{padding:17px 11px}.benefits{gap:9px}.contact{padding:21px}.floating{right:12px;bottom:12px}.floating .btn{padding:11px 15px}}

/* Layouts inspired by the supplied Smiling Dental Studio mockups */
.breadcrumb{font-size:12px;color:var(--p2);margin-bottom:12px}.service-hero{padding:30px 0 35px;background:radial-gradient(circle at 88% 10%,#ead6ff 0,transparent 33%),linear-gradient(115deg,#fff,#faf5ff)}.service-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:32px;align-items:center}.service-hero h1{font-size:clamp(34px,4.3vw,53px);margin:7px 0 10px}.service-hero .subtitle{font-size:18px;font-weight:650;line-height:1.3;margin-bottom:12px}.service-hero .intro{font-size:14px;color:var(--muted);max-width:560px}.service-hero-image{height:300px;position:relative}.service-hero-image img{width:100%;height:100%;object-fit:cover;border-radius:20px 20px 20px 80px;box-shadow:var(--shadow)}.benefit-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 25px #5b13830a;margin-top:22px;padding:13px 6px}.benefit-strip>div{text-align:center;padding:4px 10px;border-right:1px solid var(--line);font-size:11px;color:#4f4165}.benefit-strip>div:last-child{border-right:0}.benefit-strip .icon{margin:0 auto 6px;width:31px;height:31px;font-size:13px}.subservices{padding:43px 0 54px}.subservices h2{font-size:27px;margin-bottom:18px}.subservice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.subservice{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 5px 16px #5b13830a}.subservice img{height:clamp(190px,22vw,260px);width:100%;object-fit:cover;display:block}.subservice div{padding:12px}.subservice h3{font-size:13px;line-height:1.3;margin-bottom:5px}.subservice p{font-size:11px;color:var(--muted);margin:0}.purple-cta{background:linear-gradient(110deg,#a327e9,#6500a8);color:#fff;border-radius:18px;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px}.purple-cta h3{margin:0 0 4px;font-size:19px}.purple-cta p{margin:0;font-size:12px;color:#f2e5ff}.purple-cta .btn{flex-shrink:0}.condition-title{font-size:25px;margin:0 0 16px}.condition-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.condition-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.condition-card img{width:100%;height:90px;object-fit:cover}.condition-card strong{display:block;padding:8px 9px;font-size:11px}.detail-background{background:linear-gradient(120deg,#fbf8ff,#fff)}.service-hero .eyebrow{margin-top:4px}
@media(max-width:850px){.service-hero-grid{grid-template-columns:1fr}.service-hero-image{height:260px}.benefit-strip{grid-template-columns:repeat(2,1fr);row-gap:8px}.benefit-strip>div:nth-child(2){border-right:0}.subservice-grid{grid-template-columns:repeat(2,1fr)}.purple-cta{align-items:flex-start;flex-direction:column}.condition-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.service-hero{padding:25px 0}.service-hero h1{font-size:35px}.service-hero .subtitle{font-size:16px}.service-hero-image{height:220px}.benefit-strip>div{font-size:10px}.subservice-grid{gap:9px}.subservice img{height:90px}.subservice div{padding:9px}.subservice h3{font-size:12px}.subservice p{font-size:10px}.purple-cta{padding:18px}.condition-card img{height:75px}}

/* Ajuste de imágenes de tarjetas de servicios */
@media(max-width:700px){.subservice img{height:220px}}

/* Identidad visual y contacto por WhatsApp */
.brand .brand-logo{display:block;width:clamp(150px,17vw,205px);height:auto;max-height:54px;object-fit:contain}
.brand:has(.brand-logo){gap:0}
.btn .wa-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;filter:none}
.btn.whatsapp-cta{background:#20b96b;color:#fff}
.btn.whatsapp-cta:hover{background:#159957}
footer .brand .brand-logo{width:190px;max-height:58px}
@media(max-width:700px){.brand .brand-logo{width:150px;max-height:45px}}

/* Ajuste global: fotografías de tarjetas de tratamientos casi cuadradas */
.subservice img,
.service-card img,
.treatment-card img,
.service-grid .card img,
.treatment-grid .card img {
  width: 100%;
  height: clamp(240px, 27vw, 320px);
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 700px) {
  .subservice img,
  .service-card img,
  .treatment-card img,
  .service-grid .card img,
  .treatment-grid .card img {
    height: 250px;
  }
}

/* Home hero: composición inspirada en la referencia, con iconos compactos */
.hero-home,
.hero#inicio,
#inicio.hero,
.hero-section {
  position: relative;
}
.hero-home .hero-content,
#inicio .hero-content,
.hero .hero-content {
  max-width: 620px;
}
.hero-home .hero-features,
#inicio .hero-features,
.hero .hero-features,
.hero-benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 24px 0 26px;
}
.hero-home .hero-feature,
#inicio .hero-feature,
.hero .hero-feature,
.hero-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  max-width: 175px;
}
.hero-home .hero-feature svg,
#inicio .hero-feature svg,
.hero .hero-feature svg,
.hero-benefit svg,
.hero-home .hero-feature .icon,
#inicio .hero-feature .icon,
.hero .hero-feature .icon,
.hero-benefit .icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  stroke-width: 1.8;
}
.hero-home h1,
#inicio h1,
.hero h1 {
  letter-spacing: -0.035em;
}
.hero-home .hero-cta,
#inicio .hero-cta,
.hero .hero-cta {
  margin-top: 22px;
}
@media(max-width:760px) {
  .hero-home .hero-features,
  #inicio .hero-features,
  .hero .hero-features,
  .hero-benefits {
    gap: 12px 14px;
  }
  .hero-home .hero-feature,
  #inicio .hero-feature,
  .hero .hero-feature,
  .hero-benefit {
    font-size: 12px;
    max-width: 145px;
  }
  .hero-home .hero-feature svg,
  #inicio .hero-feature svg,
  .hero .hero-feature svg,
  .hero-benefit svg,
  .hero-home .hero-feature .icon,
  #inicio .hero-feature .icon,
  .hero .hero-feature .icon,
  .hero-benefit .icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
}

/* Menú sin subrayado en ningún estado */
.nav a,
.nav a:link,
.nav a:visited,
.nav a:hover,
.nav a:focus,
.nav a:active,
.nav a.active,
.nav-link,
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  text-decoration: none !important;
}
.nav a::after,
.nav-link::after {
  display: none !important;
  content: none !important;
}

/* Hero principal con distribución inspirada en la referencia */
#inicio.hero,
.hero#inicio,
#inicio.hero-home,
.hero-home#inicio {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 620px;
  padding: clamp(38px, 5vw, 76px) clamp(24px, 5.2vw, 82px);
  overflow: hidden;
}
#inicio .hero-content,
#inicio .hero-copy,
#inicio .hero-text,
#inicio .hero-home-content {
  position: relative;
  z-index: 2;
  max-width: 630px;
}
#inicio .hero-content h1,
#inicio .hero-copy h1,
#inicio .hero-text h1,
#inicio h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.9rem);
  line-height: .99;
  letter-spacing: -.04em;
  margin: 0 0 22px;
}
#inicio .hero-content p,
#inicio .hero-copy p,
#inicio .hero-text p {
  max-width: 560px;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.45;
}
#inicio .hero-features,
#inicio .hero-benefits,
#inicio .hero-stats,
#inicio .hero-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 24px 0 28px;
}
#inicio .hero-feature,
#inicio .hero-benefit,
#inicio .hero-stat,
#inicio .hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 175px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}
#inicio .hero-feature svg,
#inicio .hero-benefit svg,
#inicio .hero-stat svg,
#inicio .hero-highlight svg,
#inicio .hero-feature .icon,
#inicio .hero-benefit .icon,
#inicio .hero-stat .icon,
#inicio .hero-highlight .icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  max-width: 28px;
  stroke-width: 1.7;
}
#inicio .hero-image,
#inicio .hero-media,
#inicio .hero-visual,
#inicio .hero-photo {
  align-self: stretch;
  min-height: 430px;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
}
#inicio .hero-image img,
#inicio .hero-media img,
#inicio .hero-visual img,
#inicio .hero-photo img {
  width: 100%;
  height: 100%;
  max-height: 610px;
  object-fit: contain;
  object-position: center bottom;
}
#inicio .hero-cta,
#inicio .hero-actions .btn,
#inicio .hero-content .btn,
#inicio .hero-copy .btn {
  margin-top: 16px;
}
@media (max-width: 850px) {
  #inicio.hero,
  .hero#inicio,
  #inicio.hero-home,
  .hero-home#inicio {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 38px 22px 0;
    gap: 16px;
  }
  #inicio .hero-content,
  #inicio .hero-copy,
  #inicio .hero-text {
    max-width: 100%;
  }
  #inicio .hero-content h1,
  #inicio .hero-copy h1,
  #inicio .hero-text h1,
  #inicio h1 {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }
  #inicio .hero-image,
  #inicio .hero-media,
  #inicio .hero-visual,
  #inicio .hero-photo {
    min-height: 300px;
    max-height: 440px;
  }
  #inicio .hero-image img,
  #inicio .hero-media img,
  #inicio .hero-visual img,
  #inicio .hero-photo img {
    max-height: 440px;
  }
}
@media (max-width: 520px) {
  #inicio .hero-feature,
  #inicio .hero-benefit,
  #inicio .hero-stat,
  #inicio .hero-highlight {
    font-size: 12px;
    max-width: 145px;
  }
  #inicio .hero-feature svg,
  #inicio .hero-benefit svg,
  #inicio .hero-stat svg,
  #inicio .hero-highlight svg,
  #inicio .hero-feature .icon,
  #inicio .hero-benefit .icon,
  #inicio .hero-stat .icon,
  #inicio .hero-highlight .icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    max-width: 24px;
  }
}

/* Corrección definitiva del hero del home según la referencia proporcionada */
#inicio.hero,
.hero#inicio,
#inicio.hero-home {
  display: block !important;
  min-height: 0;
  padding: 30px 0 42px;
  overflow: hidden;
}
#inicio .wrap.hero-grid {
  width: min(1360px, calc(100% - 80px));
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 4vw, 68px);
}
#inicio .wrap.hero-grid > div:first-child {
  min-width: 0;
  padding: 12px 0;
}
#inicio .eyebrow {
  margin-bottom: 12px;
}
#inicio h1 {
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: .99;
  letter-spacing: -2.8px;
  margin: 8px 0 22px;
  max-width: 620px;
}
#inicio h1 em {
  display: inline;
  font-style: normal;
  color: var(--p2);
  font-family: Georgia, serif;
}
#inicio .lead {
  max-width: 550px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  margin-bottom: 20px;
}
#inicio .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 22px;
}
#inicio .actions .btn {
  min-height: 52px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}
#inicio .points {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 17px;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 22px;
}
#inicio .points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 175px;
}
#inicio .mini {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  font-size: 17px;
  border: 1.7px solid var(--p2);
  background: transparent;
}
#inicio .hero-img {
  width: 100%;
  min-width: 0;
  height: clamp(430px, 43vw, 650px);
  position: relative;
  display: block;
  align-self: stretch;
}
#inicio .hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 36%;
  border-radius: 46% 46% 26px 26px;
  box-shadow: var(--shadow);
}
#inicio .photo-note {
  left: -22px;
  bottom: 20px;
  max-width: calc(100% - 18px);
  padding: 13px 17px;
  font-size: 13px;
  border-radius: 15px;
  z-index: 2;
}
#inicio .hero-grid .hero-image,
#inicio .hero-grid .hero-media,
#inicio .hero-grid .hero-visual,
#inicio .hero-grid .hero-photo {
  min-height: 0;
}
@media (max-width: 900px) {
  #inicio .wrap.hero-grid {
    width: min(100% - 44px, 700px);
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 24px;
  }
  #inicio h1 {
    font-size: clamp(40px, 5.5vw, 58px);
    letter-spacing: -1.8px;
  }
  #inicio .hero-img {
    height: clamp(360px, 55vw, 500px);
  }
  #inicio .points { gap: 12px; }
  #inicio .points span { max-width: 145px; }
}
@media (max-width: 680px) {
  #inicio.hero,
  .hero#inicio,
  #inicio.hero-home { padding: 32px 0 28px; }
  #inicio .wrap.hero-grid {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 20px;
  }
  #inicio .wrap.hero-grid > div:first-child { padding: 0; }
  #inicio h1 {
    font-size: clamp(43px, 11vw, 60px);
    line-height: 1;
    margin-bottom: 17px;
  }
  #inicio .lead { font-size: 16px; }
  #inicio .actions { flex-wrap: wrap; }
  #inicio .actions .btn { min-height: 48px; padding: 12px 17px; }
  #inicio .points { gap: 11px 13px; }
  #inicio .points span { max-width: 150px; }
  #inicio .mini { width: 27px; height: 27px; min-width: 27px; }
  #inicio .hero-img {
    height: min(112vw, 480px);
    min-height: 320px;
    margin-top: 2px;
  }
  #inicio .hero-img img { border-radius: 42% 42% 22px 22px; }
  #inicio .photo-note { left: 8px; bottom: 12px; }
}
/* Sin subrayados en el menú, incluyendo estados activos y hover */
header nav a, header nav a:hover, header nav a:focus, header nav a:active,
header nav a.active, header nav a::after, header .nav-link,
header .nav-link:hover, header .nav-link:focus, header .nav-link.active,
header .nav-link::after {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
header nav a::after, header .nav-link::after { display: none !important; content: none !important; }

/* Bordes redondeados de 30px en las cuatro esquinas de la imagen principal */
#inicio .hero-img img {
  border-radius: 30px !important;
  object-fit: cover;
  object-position: center 36%;
}
/* Evitar que los enlaces del menú queden debajo del encabezado fijo al navegar */
#inicio, #tratamientos, #nosotros, #contacto {
  scroll-margin-top: 105px;
}
html { scroll-behavior: smooth; }

/* Menú desplegable de tratamientos: abre al hacer clic */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
  font: inherit; color: inherit; background: transparent; border: 0;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none !important; padding: 10px 12px;
}
.dropdown-chevron { font-size: 15px; line-height: 1; transition: transform .18s ease; }
.nav-dropdown.is-open .dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; z-index: 1000; top: calc(100% + 10px); left: 0;
  min-width: 245px; max-width: min(320px, 90vw); padding: 8px;
  background: #fff; border: 1px solid #ead9f8; border-radius: 14px;
  box-shadow: 0 16px 36px rgba(47, 15, 82, .18);
}
.nav-dropdown-menu[hidden] { display: none !important; }
.nav-dropdown-menu a {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: #32145a; text-decoration: none !important; font-size: 14px;
  line-height: 1.3; white-space: normal;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus {
  background: #f5eaff; color: #7000b8; text-decoration: none !important;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle:focus,
.nav-dropdown-toggle:active { text-decoration: none !important; }
header nav a, header nav a::after { text-decoration: none !important; }
header nav a::after { display: none !important; content: none !important; }

/* Las tarjetas de tratamientos muestran descripciones de máximo dos líneas. */
.cards .card-body > p,
.card .card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
}

/* Las imágenes no se amplían ni reciben un efecto de zoom al pasar el cursor. */
.card img, .subservice img, .condition-card img, .detail-img img,
.service-hero-image img, .hero-img img, .promo-card > img,
.gallery img {
  cursor: default !important;
  transform: none !important;
  transition: none !important;
}
.card:hover img, .subservice:hover img, .condition-card:hover img,
.detail-img:hover img, .service-hero-image:hover img,
.hero-img:hover img, .promo-card:hover > img, .gallery figure:hover img {
  transform: none !important;
  scale: 1 !important;
}
@media(max-width: 850px) {
  .nav-dropdown-menu { position: static; min-width: 0; max-width: none; width: 100%; margin-top: 6px; box-shadow: none; }
  header nav.nav.is-mobile-open { display: flex !important; flex-direction: column; align-items: stretch; }
  header nav.nav.is-mobile-open .nav-dropdown { display: flex; flex-direction: column; align-items: stretch; }
  header nav.nav.is-mobile-open .nav-dropdown-toggle { justify-content: space-between; width: 100%; }
}

/* Menú principal: separación consistente entre todas las opciones */
header > .wrap.nav {
  gap: clamp(22px, 3vw, 48px);
}
header nav.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.6vw, 42px);
  min-width: 0;
  white-space: nowrap;
}
header nav.nav > .nav-link,
header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
}
header nav.nav > .nav-dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
  gap: 10px;
}
.dropdown-chevron-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  color: currentColor;
  align-self: center;
  margin-top: 1px;
  transition: transform .18s ease;
}
.nav-dropdown.is-open .dropdown-chevron-icon {
  transform: rotate(180deg);
}
header nav.nav > .nav-link::after,
header nav.nav > .nav-dropdown > .nav-dropdown-toggle::after {
  display: none !important;
  content: none !important;
}
@media (max-width: 900px) {
  header > .wrap.nav { gap: 16px; }
  header nav.nav { gap: 20px; }
}
@media (max-width: 760px) {
  header > .wrap.nav { gap: 12px; }
  header nav.nav {
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
  }
  header nav.nav > .nav-link,
  header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
    justify-content: flex-start;
    padding: 12px 10px;
  }
  header nav.nav > .nav-dropdown { display: flex; }
  .dropdown-chevron-icon { width: 16px; height: 16px; flex-basis: 16px; }
}

/* Corrección responsive del menú en móviles */
@media (max-width: 760px) {
  header { width: 100%; max-width: 100%; }
  header > .wrap.nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  header .brand { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 58px); }
  header .brand .brand-logo { width: clamp(112px, 38vw, 160px); max-width: 100%; height: auto; }
  header .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border-radius: 10px;
    position: relative;
    z-index: 1002;
  }
  header nav.nav {
    display: none !important;
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    white-space: normal;
    background: #6500a7;
    border-radius: 12px;
  }
  header nav.nav.is-mobile-open { display: flex !important; }
  header nav.nav > .nav-link,
  header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    justify-content: space-between;
    padding: 12px 12px;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    border-radius: 8px;
  }
  header nav.nav > .nav-dropdown {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  header nav.nav .nav-dropdown-menu,
  header nav.nav .nav-dropdown-menu:not([hidden]) {
    position: static !important;
    inset: auto !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    margin: 0 0 6px;
    padding: 5px;
    background: rgba(255,255,255,.98);
    box-shadow: none;
    border-radius: 10px;
  }
  header nav.nav .nav-dropdown-menu a {
    min-height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 380px) {
  header > .wrap.nav { padding-left: 12px; padding-right: 12px; }
  header .brand .brand-logo { width: 112px; }
  header .menu-toggle { flex-basis: 38px; width: 38px; height: 38px; }
}
/* Evitar zoom táctil por doble toque y pellizco en móviles.
   Se conserva la posibilidad de usar accesibilidad del sistema cuando corresponda. */
html { touch-action: pan-x pan-y; }
button, a, input, select, textarea { touch-action: manipulation; }

/* Escritorio: separación amplia y uniforme entre los elementos del menú principal */
@media (min-width: 761px) {
  header > .wrap.nav {
    display: flex;
    align-items: center;
    gap: clamp(32px, 4vw, 68px) !important;
  }
  header nav.nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(34px, 3.8vw, 62px) !important;
    min-width: 0;
    white-space: nowrap;
  }
  header nav.nav > .nav-link,
  header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 12px 0 !important;
    white-space: nowrap;
  }
  header nav.nav > .nav-dropdown {
    flex: 0 0 auto;
    margin: 0 !important;
  }
}
/* Flecha del desplegable en blanco */
.dropdown-chevron-icon {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* Fix definitivo de separación del menú principal en escritorio */
@media screen and (min-width: 761px) {
  header nav.nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    column-gap: 38px !important;
    row-gap: 0 !important;
    white-space: nowrap !important;
  }
  header nav.nav > a.nav-link,
  header nav.nav > .nav-dropdown {
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
  }
  header nav.nav > .nav-dropdown {
    display: flex !important;
    align-items: center !important;
  }
  header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }
  /* Explicit margin provides a fallback if a stylesheet resets flex gap. */
  header nav.nav > .nav-dropdown + a.nav-link {
    margin-left: 0 !important;
  }
  header nav.nav > a.nav-link + a.nav-link {
    margin-left: 38px !important;
  }
  header nav.nav > a.nav-link + .nav-dropdown {
    margin-left: 38px !important;
  }
  header nav.nav > .nav-dropdown + a.nav-link {
    margin-left: 38px !important;
  }
}

/* Menú reconstruido: elementos de primer nivel independientes y bien separados */
@media (min-width: 761px) {
  header > .wrap.nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
  }
  header nav.nav {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(28px, 3vw, 52px) !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }
  header nav.nav > a.nav-link,
  header nav.nav > .nav-dropdown {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }
  header nav.nav > .nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 0 !important;
    white-space: nowrap !important;
  }
}
.dropdown-chevron-icon {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  align-self: center !important;
  filter: brightness(0) invert(1) !important;
}

/* Mobile nav visibility and layout, final override */
@media (max-width: 760px) {
  header > .wrap.nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  header .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1100 !important;
  }
  header nav.nav {
    display: none !important;
    order: 5 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    white-space: normal !important;
    margin-top: 10px !important;
  }
  header nav.nav.is-mobile-open {
    display: flex !important;
  }
  header nav.nav > a.nav-link,
  header nav.nav > .nav-dropdown,
  header nav.nav > .nav-dropdown > .nav-dropdown-toggle {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  header nav.nav > .nav-dropdown {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  header nav.nav .nav-dropdown-menu:not([hidden]) {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}
