:root{
  --brand: #1cb0f6;        /* celeste de la página */
  --text: #0b1220;
  --muted:#5b6474;
  --stroke:#e7ecf2;
  --surface:#ffffff;
  --surface-2:#f6f8fb;
  --shadow: 0 12px 30px rgba(2, 26, 55, .08);
  --radius:18px;
  --radius-lg:28px;
  --container: 1160px;
}

/* ===== Global ===== */
html{ scroll-behavior:smooth; scroll-padding-top:120px; }
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  line-height:1.55; color:var(--text); background:#fff;
}
img{ max-width:100%; display:block; }
a,button,input{ outline-color:var(--brand); }
@media (prefers-reduced-motion:reduce){ *{ transition:none!important; animation:none!important; } }

/* Utilidades */
.container{ max-width:var(--container); margin:0 auto; padding:0 20px; }
.section{ padding:80px 0; }
.section--alt{ background:var(--surface-2); }
.h2{ font-size:clamp(1.6rem, 1.1rem + 1.8vw, 2.2rem); margin:0 0 22px; }
.center{ text-align:center; }
.title-accent span{ color:var(--brand); }

/* ===== Header / Navbar ===== */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  background:transparent; transition:background .3s ease, box-shadow .3s ease;
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:80px; }
.brand__logo{ height:50px; }

/* Links blancos sobre el hero */
.nav__menu{ display:flex; gap:22px; align-items:center; }
.nav__menu a{
  position:relative;
  color:#fff; text-decoration:none; font-weight:300; padding:4px 0;
  transition: color .2s ease;
}
/* Subrayado animado (excepto .no-underline) */
.nav__menu a:not(.no-underline)::after{
  content:""; position:absolute; left:0; bottom:0; width:0%; height:2px;
  background-color:var(--brand); transition:width .3s ease;
}
.nav__menu a:not(.no-underline):hover::after{ width:100%; }

/* Botón Contacto */
.btn{ display:inline-block; border:none; cursor:pointer; border-radius:999px; font-weight:700; text-decoration:none; }
.btn--sm{ padding:10px 16px; }
.nav__menu .btn{
  background:transparent; border:2px solid #fff; color:#fff; padding:10px 16px; border-radius:999px;
  font-weight:600; transition:all .35s ease;
}
.nav__menu .btn:hover{ background:#fff; color:#000; }

/* Hamburguesa */
.nav__toggle{ display:none; } /* input oculto */
.nav__burger{
  display:none; width:44px; height:44px;
  flex-direction:column; justify-content:center; align-items:center; gap:6px;
  cursor:pointer; z-index:200;
}
.nav__burger span{
  display:block; width:28px; height:3px; background:#fff; border-radius:2px;
  transition:transform .25s ease, opacity .25s ease, background .25s ease;
}

/* Mobile: mostrar menú y hamburguesa */
@media (max-width:900px){
  .nav__burger{ display:flex; }
  .nav__menu{
    position:fixed; inset:80px 0 auto 0; background:rgba(0,0,0,.9);
    display:grid; gap:18px; padding:20px; text-align:center;
    transform:scaleY(0); transform-origin:top; opacity:0; pointer-events:none; transition:.2s ease;
  }
  .nav__toggle:checked ~ .nav__menu{ transform:scaleY(1); opacity:1; pointer-events:auto; }
}
/* Animación a “X” */
.nav__toggle:checked + .nav__burger span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
.nav__toggle:checked + .nav__burger span:nth-child(2){ opacity:0; }
.nav__toggle:checked + .nav__burger span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }

/* Header al hacer scroll */
.site-header.scrolled{ background:rgba(0,0,0,0.7); backdrop-filter:blur(6px); }
.site-header.scrolled .nav__menu a{ color:#fff; }
.site-header.scrolled .nav__burger span{ background:#fff; }
/* Contacto cuando baja */
.site-header.scrolled .nav__menu .btn{ border-color:var(--brand); color:var(--brand); }
.site-header.scrolled .nav__menu .btn:hover{ background:var(--brand); color:#fff; }

/* ===== Hero ===== */
.hero{
  position:relative; min-height:100vh; display:grid; place-items:center; color:#fff;
  background:center/cover no-repeat var(--hero, url('images/hero.jpg'));
}
.hero__overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.2));
}
.hero__content{ position:relative; width:100%; }
.hero__title{ font-size:clamp(2.2rem, 1.2rem + 3.2vw, 4rem); margin:.2rem 0 .6rem; font-weight:800; line-height:1.05; }
.hero__title span{ color:var(--brand); }
.hero__subtitle{ max-width:680px; margin:0 0 20px; font-weight:500; }
.btn--primary{
  background:var(--brand); color:#fff; padding:12px 22px; border-radius:999px; border:none;
  box-shadow:0 10px 24px rgba(28,176,246,.35); font-weight:600;
}
.btn--primary:hover{ filter:brightness(1.05); }

/* ===== Cards base (para .benefit y .contact__cta) ===== */
.card{
  background:#fff; border:1px solid var(--stroke); border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow);
}

/* ===== Promos (2 imágenes con animaciones) ===== */
.promos__grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:22px;
}
@media (max-width:800px){
  .promos__grid{ grid-template-columns:1fr; }
}
.promo-img{
  position:relative; border-radius:22px; overflow:visible; /* pulso se ve fuera */
  border:1px solid #e7ecf2; isolation:isolate; z-index:0; will-change:transform;
}
.promo-img img{
  width:100%; height:auto; display:block; object-fit:cover; border-radius:22px;
  transition:transform .3s ease, filter .3s ease;
}
.promo-img:hover img{ transform:scale(1.03); filter:saturate(1.05); }

/* Pulso detrás (glow) */
.promo-img::before{
  content:""; position:absolute; inset:-16px; border-radius:28px;
  background:rgba(28,176,246,.45); filter:blur(28px);
  z-index:-1; pointer-events:none; animation:pulseShadow 2.8s ease-in-out infinite;
}
@keyframes pulseShadow{
  0%,100%{ transform:scale(.95); opacity:.45; }
  50%{ transform:scale(1.06); opacity:.9; }
}

/* Shine diagonal recortado dentro */
.promo-img::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  clip-path: inset(0 round 22px);
  background:linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0) 100%);
  background-size:220% 220%;
  opacity:0; transition:opacity .25s ease;
}
.promo-img:hover::after{
  opacity:1; animation:shineSweep .9s ease forwards;
}
@keyframes shineSweep{
  0%{ background-position:-120% 0%; }
  100%{ background-position:120% 0%; }
}

/* ===== Sobre nosotros ===== */
.about__grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center;
}
.about__text p{ color:var(--muted); }

/* Foto (círculo) */
.about__photo{
  width:100%; height:100%;
  border-radius:500px; overflow:hidden;
}
.about__photo img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Caption bajo la foto */
.about__caption{
  text-align:center; margin-top:14px; font-size:.95rem; line-height:1.4; color:var(--muted);
}
.about__caption strong{
  display:block; font-size:1.1rem; color:var(--text); margin-bottom:4px;
}


.about__photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centra la foto y el texto */
}

.about__photo {
  width: 100%;
  max-width: 400px;     /* controla el tamaño máximo */
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
}

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

.about__caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--muted);
}

.about__caption strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}


/* Mobile: centrar todo */
@media (max-width:980px){
  .about__grid{ grid-template-columns:1fr; text-align:center; }
  .about__photo{
    height:320px; display:flex; justify-content:center; align-items:center;
    margin:20px auto 0; max-width:90%;
  }
  .about__photo img{ height:100%; width:auto; border-radius:500px; object-fit:cover; }
}

/* ===== ¿Qué es la Ortodoncia? ===== */
.ortho__grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:34px; align-items:center; }
.ortho__text p{ color:var(--muted); }
.ortho__text span{ color:var(--brand); }
@media (max-width:980px){
  .ortho__grid{ grid-template-columns:1fr; text-align:center; }
  .ortho__text{ margin-top:20px; }
  .ortho__text p{ margin-left:auto; margin-right:auto; max-width:90%; }
}

/* ===== Beneficios ===== */
.benefits .h2{ margin-bottom:50px; }
.benefits__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:980px){ .benefits__grid{ grid-template-columns:1fr; } }
.benefit{ text-align:center; border-radius:22px; padding:26px 20px; box-shadow:0 10px 24px rgba(2,26,55,.06); }
.benefit__icon{
  width:90px; height:90px; margin:0 auto 14px; display:grid; place-items:center;
  border-radius:20px; background:#eef8ff; border:1px solid #dff1ff;
}
.benefit__icon img{ width:48px; height:48px; object-fit:contain; }
.benefit p{ margin:8px 0 0; color:#334155; }

/* ===== Paso a paso ===== */
.steps__images{ display:grid; gap:18px; place-items:center; max-width:680px; margin-inline:auto; }
.steps__images img{ width:100%; border-radius:18px; border:1px solid var(--stroke); box-shadow:var(--shadow); }

/* ===== Contacto (WhatsApp) ===== */
.contact__grid{ display:grid; grid-template-columns:1fr .9fr; gap:28px; align-items:center; }
@media (max-width:980px){ .contact__grid{ grid-template-columns:1fr; } }
.contact__cta{ display:grid; gap:14px; padding:24px; text-align:center; align-content:center; }
.contact__cta p{ color:var(--muted); margin:0 0 10px; }

.btn--whatsapp{
  background:#25D366; color:#fff; padding:12px 22px; border-radius:999px; border:none; font-weight:600;
  box-shadow:0 10px 24px rgba(37,211,102,.35); transition:filter .25s ease;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none;
}
.btn--whatsapp:hover{ filter:brightness(1.1); }

/* ===== Footer ===== */
.site-footer{ background:#0b1220; color:#fff; padding:28px 0; margin-top:10px; }
.footer__grid{ display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; }
.footer__left p{ margin:0; line-height:1.6; }
.footer__right img{ height:50px; }
@media (max-width:700px){
  .footer__grid{ grid-template-columns:1fr; text-align:center; }
  .footer__right{ display:flex; justify-content:center; margin-top:15px; }
  .footer__right img{ max-width:160px; height:auto; }
}

/* ===== Implantes Dentales ===== */
.implants {
  background: var(--surface-2);
}

.implants .h2 span {
  color: var(--brand);
}

.implants__intro {
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--muted);
}

/* Bloques texto + imagen */
.implants__row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.implants__row.reverse {
  grid-template-columns: .9fr 1.1fr;
}

.implants__text h3 {
  color: var(--brand);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.implants__text p,
.implants__text ul {
  color: var(--muted);
  line-height: 1.6;
}

.implants__text ul {
  list-style: none;
  padding-left: 0;
}

.implants__text ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}

.implants__text ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

/* Imágenes */
.implants__img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}

.implants__img img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
}

/* CTA */
.implants__cta {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  max-width: 720px;
  margin: 40px auto 0;
}

.implants__cta p {
  color: var(--text);
  margin-bottom: 8px;
}

.implants__price {
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .implants__row,
  .implants__row.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .implants__img {
    order: -1; /* coloca la imagen arriba en mobile */
  }

  .implants__img img {
    max-width: 90%;
    margin: 0 auto;
  }

  .implants__text {
    margin-top: 20px;
  }
}

/* ===== Tratamientos ===== */
.tratamientos {
  background: var(--surface-2);
  text-align: center;
}

.tratamientos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.tratamiento-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 10px 28px rgba(2, 26, 55, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tratamiento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(28, 176, 246, 0.25);
}

.tratamiento__icon {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f7ff;
  margin-bottom: 18px;
  border: 1px solid #d7ecff;
}

.tratamiento__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tratamiento-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 700;
}

.tratamiento-card p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 280px;
}

/* Responsive */
@media (max-width: 900px) {
  .tratamientos__grid {
    grid-template-columns: 1fr;
  }
}

