/* ==========================================================================
   Esteticiens Bouvier — home
   Reconstrucción de la landing de Instapage. HTML/CSS propio, sin dependencias.

   Estructura del original que se respeta:
   - La página es una columna centrada: 400px en mobile, 60rem (960px) en desktop.
     Cada sección lleva su propio fondo dentro de esa columna.
   - Mobile-first: los estilos base son los de mobile, el bloque
     @media (min-width:768px) del final trae el layout de desktop.
   - El tamaño de raíz escala con el viewport igual que en el original, así el
     diseño de 960px se reduce proporcionalmente entre 768px y 1200px.
   ========================================================================== */

:root {
  font-size: 16px;

  --rosa:        #DDC5C7;  /* barras de sección y botones */
  --topo:        #A59C90;  /* barra superior y CTA final */
  --crema:       #FFFBF9;  /* tarjetas */
  --crema-calida:#FCF3EC;
  --malva:       #786674;  /* texto destacado */
  --gris:        #4A4A4A;  /* texto corriente */
  --azul:        #37465A;  /* títulos sobre barra rosa */
  --claro:       #F0F3F5;  /* texto sobre topo */

  --sans:  "Albert Sans", Helvetica, Arial, sans-serif;
  --serif: Playfair, Georgia, "Times New Roman", serif;
}

@media (max-width: 400px)  { :root { font-size: 4vw; } }
@media (min-width: 768px) and (max-width: 1200px) { :root { font-size: 1.33vw; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

body {
  margin: 0;
  background: #fff;
  color: var(--gris);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding-left: 2.5rem; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Columna de la página */
.topbar,
main > section {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.container {
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 120%;
  text-align: center;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.btn--rosa  { background: var(--rosa);  color: #fff; }
.btn--rosa:hover  { background: var(--topo); color: #fff; }

.btn--claro { background: var(--crema); color: var(--topo); }
.btn--claro:hover { background: #fff; color: var(--rosa); }

/* --------------------------------------------------------------------------
   Barra superior con el logo
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--topo);
  height: 7.3125rem;
  padding-top: .4375rem;
}
.topbar .container { display: flex; justify-content: center; }
.topbar img { width: 12.375rem; height: 6.375rem; }

/* --------------------------------------------------------------------------
   Hero + formulario de contacto
   -------------------------------------------------------------------------- */

.hero {
  background: rgb(255, 251, 249) url("../img/fondo-hero.jpg") repeat 67% 27% / cover;
  padding: 1.625rem 0 .9375rem;
  overflow: hidden;
}

/* Velo malva del original (#AB808F al 20%) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: #AB808F;
  opacity: .2;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.375rem;
  line-height: 2.375rem;
  color: var(--crema);
  text-align: center;
}

.hero__rule {
  border: 0;
  border-bottom: 4px solid var(--rosa);
  margin: .3125rem 0 0;
}

.hero__lead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5rem;
  color: var(--crema-calida);
  text-align: center;
  margin-top: 1.375rem;
}

.card-form {
  background: var(--crema);
  border-radius: .75rem;
  width: 17.8125rem;
  margin: 1.0625rem auto 0;
  padding: .8125rem .9375rem 1rem;
}

.card-form__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.9375rem;
  color: var(--rosa);
  text-align: center;
}

.card-form__subtitle {
  font-family: var(--serif);
  font-weight: 500;
  font-size: .8125rem;
  line-height: 1.125rem;
  color: var(--gris);
  text-align: center;
}

.form { font-size: 1rem; line-height: 1.26; margin-top: 1.0625rem; }

.form input,
.form textarea {
  display: block;
  width: 100%;
  height: 3.5em;
  min-height: 28px;
  margin: .5rem 0;
  padding: .5rem .625rem .5625rem;
  font-family: inherit;
  font-size: 1em;
  color: #405364;
  background: #fff;
  border: 1px solid #302448;
  border-radius: 3px;
}
.form textarea { resize: none; vertical-align: top; }
.form ::placeholder { color: #405364; opacity: 1; }

.form .btn { height: 2.375rem; border-radius: 5px; font-size: 1.0625rem; margin-top: .5rem; }

.form__msg { margin-top: .5rem; font-size: .8125rem; color: var(--malva); text-align: center; }
.form__msg:empty { margin: 0; }

/* --------------------------------------------------------------------------
   Paneles con barra rosa (secciones "¿Por qué...?" y "¿Cómo lograr...?")
   -------------------------------------------------------------------------- */

.panel__bar {
  background: var(--rosa);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- ¿Por qué tomar esta decisión? --- */

.decision {
  background: rgb(252, 243, 236) url("../img/fondo-decision.jpg") repeat 0 65% / cover;
  padding: 1.8125rem 0 1.1875rem;
}

.panel--decision {
  background: rgba(255, 251, 249, .75);
  border-radius: .75rem .75rem 0 0;
}

.panel__bar--decision {
  /* en mobile la barra rosa cruza la sección de lado a lado */
  margin: 0 -1.25rem;
  height: 3.4375rem;
  font-size: 1.375rem;
  line-height: 1.9375rem;
  padding: 0 .625rem;
}

.panel--decision .panel__body { padding: 1.5rem 1.375rem 1.75rem; }

.decision__text {
  color: var(--malva);
  font-size: 1rem;
  line-height: 1.375rem;
  text-align: center;
}
.decision__text p + p { margin-top: 1.375rem; }

.decision__cta { display: flex; justify-content: center; }
.decision__cta .btn { width: 12.375rem; height: 2.5rem; }

/* --- ¿Cómo lograr un abdomen plano? --- */

.abdomen {
  background: rgb(190, 198, 195) url("../img/fondo-abdomen.jpg") repeat 98% 48% / cover;
  padding: 2rem 0 1.4375rem;
}

.panel--abdomen {
  background: rgba(255, 251, 249, .74);
  padding-top: 1.125rem;
}

.panel__bar--abdomen {
  height: 5.0625rem;
  font-size: 1.375rem;
  line-height: 1.375rem;
  padding: 0 .625rem;
}

.panel--abdomen .panel__body {
  padding: 1rem 1.1875rem 1.5rem;
  color: var(--gris);
  font-size: 1rem;
  line-height: 1.375rem;
}
.panel--abdomen .panel__body p + p { margin-top: 1.375rem; }

/* --------------------------------------------------------------------------
   Cirugías
   -------------------------------------------------------------------------- */

.cirugias {
  background: rgb(190, 198, 195) url("../img/fondo-cirugias.jpg") repeat 17% 58% / cover;
  padding: .875rem 0 1.1875rem;
}

.panel--cirugias {
  background: rgba(255, 251, 249, .85);
  border-radius: 0 0 .75rem .75rem;
  padding: 0 1.1875rem 1.5rem;
}

.cirugias__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.375rem;
  color: var(--malva);
  text-align: center;
  padding: 2.9375rem 0 2.375rem;
}

.tratamiento__nombre {
  /* la barra rosa ocupa todo el ancho de la tarjeta */
  margin: 0 -1.1875rem;
  padding: 0 1.1875rem;
  background: rgba(221, 197, 199, .7);
  color: var(--crema);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5625rem;
  line-height: 2.1875rem;
  display: flex;
  align-items: center;
  min-height: 2.9375rem;
}
.tratamiento__cols { padding-top: 1.375rem; }

.tratamiento__claim {
  color: var(--malva);
  font-size: 1.125rem;
  line-height: 1.375rem;
}

.tratamiento__desc {
  color: var(--gris);
  font-size: 1rem;
  line-height: 1.375rem;
  margin-top: 1.375rem;
}

.tratamiento__beneficios {
  color: var(--malva);
  font-size: 1.125rem;
  line-height: 1.5625rem;
  margin-top: 1.375rem;
}

.tratamiento__aside ul {
  color: var(--malva);
  font-size: 1rem;
  line-height: 1.625rem;
  margin: .375rem 0 0;
}

.tratamiento__nota {
  color: var(--malva);
  font-size: 1rem;
  line-height: 1.625rem;
  margin-top: 1.25rem;
}

.tratamiento__btn {
  width: 17.125rem;
  max-width: 100%;
  height: 2.6875rem;
  margin-top: 1.5rem;
}

.tratamiento + .tratamiento { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Y después de la cirugía
   -------------------------------------------------------------------------- */

.despues {
  background: rgb(255, 253, 251);
  padding: .75rem 0 1.5rem;
}

.despues__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.625rem;
  color: var(--topo);
  text-align: center;
}

.despues__subtitle {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5625rem;
  line-height: 2.1875rem;
  color: var(--rosa);
  text-align: center;
}

.despues__grid {
  list-style: none;
  margin: 1.4375rem 0 0;
  padding: 0;
}
.despues__grid li { margin-top: 2.3125rem; text-align: center; }
.despues__grid li:first-child { margin-top: 0; }
.despues__grid img {
  width: 9.625rem;
  height: 9.625rem;
  margin: 0 auto 1.3125rem;
}
.despues__grid p {
  color: var(--topo);
  font-size: 1.125rem;
  line-height: 1.5625rem;
  max-width: 16.4375rem;
  margin: 0 auto;
}

.despues__cierre {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.375rem;
  color: var(--topo);
  text-align: center;
  margin-top: 2.3125rem;
}

/* --------------------------------------------------------------------------
   Antes y después
   -------------------------------------------------------------------------- */

.antes {
  background: var(--rosa);
  padding: 4.1875rem 0 1.625rem;
}

.antes__card {
  background: rgba(255, 251, 249, .85);
  border-radius: .75rem;
  padding: 2.875rem 1.4375rem 1.625rem;
}

.antes__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4375rem;
  line-height: 1.4375rem;
  color: var(--topo);
  text-align: center;
}

.antes__subtitle {
  font-size: 1.25rem;
  line-height: 1.25rem;
  color: var(--topo);
  text-align: right;
  padding: .4375rem 2.125rem 0 0;
}

.antes__grid { margin-top: 2.5rem; }
.antes__grid img { width: 19.6875rem; max-width: 100%; height: auto; margin: 0 auto; }
.antes__grid img + img { margin-top: .4375rem; }

/* --------------------------------------------------------------------------
   Logos de tecnologías
   -------------------------------------------------------------------------- */

.tecnologias {
  background: var(--crema);
  padding: 1.5rem 0 1.6875rem;
}
.tecnologias img { width: 100%; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta {
  background: var(--topo);
  padding: 1.0625rem 0 1.8125rem;
  text-align: center;
}

.cta__title {
  color: var(--claro);
  font-size: 1.375rem;
  line-height: 1.9375rem;
}

.cta__lead {
  color: var(--claro);
  font-size: 1.1875rem;
  line-height: 1.4375rem;
  margin-top: .75rem;
}

.cta__btn {
  width: 20.75rem;
  max-width: 100%;
  height: 2.6875rem;
  margin: 1.375rem auto 0;
}

/* --------------------------------------------------------------------------
   Dra. Mariana Bouvier
   -------------------------------------------------------------------------- */

.bio {
  background: var(--crema);
  padding: 1.125rem 0 .1875rem;
}
.bio .container { padding: 0 2.125rem; }

.bio__nombre {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4375rem;
  line-height: 2rem;
  color: var(--rosa);
}

.bio__matricula {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.6875rem;
  color: var(--malva);
}

.bio__foto { width: 20rem; max-width: 100%; margin-top: .625rem; }

.bio__texto {
  margin-top: .9375rem;
  color: var(--malva);
  font-size: 1rem;
  line-height: 1.1875rem;
}
.bio__texto p + p { margin-top: 1.1875rem; }

/* --------------------------------------------------------------------------
   Botón flotante de WhatsApp
   -------------------------------------------------------------------------- */

#wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1000; }
#wa-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
#wa-popup { position: absolute; right: 0; bottom: 75px; width: 260px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.2); font-size: 14px; }
#wa-popup-header { background: #128C7E; color: #fff; padding: 12px 15px; font-weight: 600; }
#wa-popup-body { padding: 15px; }
#wa-popup-msg { margin: 0 0 12px; color: #333; }
#wa-send { width: 100%; background: #25D366; color: #fff; border: 0;
  padding: 10px; border-radius: 6px; cursor: pointer; font-size: 14px;
  font-family: inherit; }
@media (max-width: 480px) { #wa-float { right: 15px; bottom: 15px; } }

/* ==========================================================================
   DESKTOP — a partir de 768px la columna pasa a 60rem (960px)
   ========================================================================== */

@media (min-width: 768px) {

  .topbar,
  main > section { max-width: 60rem; }

  .container { padding: 0; }

  /* --- Barra superior --- */
  .topbar { height: 8.875rem; padding-top: 1.375rem; }

  /* --- Hero --- */
  .hero {
    /* `fixed` es el del original: el encuadre de la foto acompaña al viewport */
    background: rgb(255, 251, 249) url("../img/fondo-hero.jpg") repeat 98% 4% / cover fixed;
    padding: 0;
  }

  .hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: .875rem 0 1.625rem 5rem;
  }

  .card-form {
    flex: none;
    width: 17.8125rem;
    margin: 0;
    padding: .625rem .9375rem 1.125rem .75rem;
  }
  .card-form__title { font-size: 1.25rem; line-height: 1.75rem; }

  .form { margin-top: 0; }
  .form input { height: 2.6875em; }
  .form textarea { height: 6.25em; }
  .form .btn { margin-top: 2.125rem; }

  .hero__text { padding-top: 12.25rem; }

  .hero__title {
    font-size: 3.5625rem;
    line-height: 3.5625rem;
    text-align: left;
    max-width: 30.4375rem;
  }

  .hero__rule { max-width: 27.875rem; }

  .hero__lead {
    font-size: 1.625rem;
    line-height: 1.9375rem;
    text-align: left;
    max-width: 29.8125rem;
    margin-top: 1.25rem;
  }

  /* --- ¿Por qué tomar esta decisión? --- */
  .decision {
    background-position: 0 64%;
    padding: 2.625rem 0 1.1875rem;
  }

  .panel--decision {
    margin-left: 12.8125rem;
    width: 41.125rem;
    padding-top: 2.4375rem;
  }

  .panel__bar--decision {
    margin: 0;
    justify-content: flex-start;
    text-align: left;
    font-size: 2.1875rem;
    line-height: 3.5rem;
    padding: 0 1rem 0 4.75rem;
  }

  .panel--decision .panel__body { padding: 1.4375rem 3.3125rem 1.5rem 13.3125rem; }

  .decision__text { text-align: right; line-height: 1.625rem; }
  .decision__text p + p { margin-top: 1.625rem; }
  .decision__cta { justify-content: flex-end; margin-top: 1.75rem; }

  /* --- ¿Cómo lograr un abdomen plano? --- */
  .abdomen {
    background-position: 50% 50%;
    padding: 1.625rem 0 1.375rem;
  }

  .panel--abdomen {
    margin-left: 5.3125rem;
    width: 38.0625rem;
    padding-top: 1.625rem;
  }

  .panel__bar--abdomen {
    justify-content: flex-start;
    text-align: left;
    font-size: 1.75rem;
    line-height: 1.75rem;
    padding: 0 1rem 0 2.5rem;
  }

  .panel--abdomen .panel__body {
    padding: 1.25rem 3.5625rem 2.75rem 2.5rem;
    line-height: 1.625rem;
  }
  /* en desktop los dos párrafos van seguidos, sin espacio entre ellos */
  .panel--abdomen .panel__body p + p { margin-top: 0; }

  /* --- Cirugías --- */
  .cirugias {
    background-position: 21% 54%;
    padding: 1.1875rem 0 1.5625rem;
  }

  .panel--cirugias {
    margin-left: 17.5625rem;
    width: 36.5rem;
    padding: 0 1.0625rem 1.75rem;
  }

  .cirugias__title {
    text-align: left;
    font-size: 1.75rem;
    line-height: 1.75rem;
    padding: .75rem 0 .4375rem .5625rem;
  }

  .tratamiento__nombre {
    margin: 0 -1.0625rem;
    padding: 0 1.0625rem;
    font-size: 2.1875rem;
    line-height: 3.5rem;
    min-height: 3.875rem;
  }

  .tratamiento__cols {
    display: grid;
    grid-template-columns: 17.5rem 15.625rem;
    gap: 1.25rem;
    padding-top: 1.0625rem;
  }

  /* cada bajada corta en un ancho distinto en el original */
  .tratamiento__claim { font-size: 1.25rem; line-height: 1.5rem; max-width: 15.125rem; }
  .tratamiento:nth-of-type(2) .tratamiento__claim { max-width: 13.5rem; }
  .tratamiento:nth-of-type(3) .tratamiento__claim { max-width: 18.3125rem; }
  .tratamiento__desc { line-height: 1.625rem; margin-top: 1.125rem; }

  .tratamiento__aside { padding-top: 1.1875rem; }
  .tratamiento__beneficios { line-height: 1.8125rem; margin-top: 0; padding-left: 1.4375rem; }

  .tratamiento__btn { width: 16.4375rem; height: 2.0625rem; margin-top: 1rem; }

  .tratamiento + .tratamiento { margin-top: 1.8125rem; }

  /* --- Y después de la cirugía --- */
  .despues {
    background: rgb(255, 253, 251);
    padding: 1.125rem 0 1.25rem;
  }

  .despues__title { font-size: 2.375rem; line-height: 2.375rem; }
  .despues__subtitle { font-size: 2.1875rem; line-height: 3.5rem; }

  .despues__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: .5rem;
    padding: 0 1.5rem;
  }
  .despues__grid li,
  .despues__grid li:first-child { margin-top: 0; }
  .despues__grid img { margin-bottom: .4375rem; }

  .despues__cierre {
    font-size: 1.75rem;
    line-height: 2.125rem;
    margin-top: 2.9375rem;
  }

  /* --- Antes y después --- */
  .antes { padding: 2.625rem 0 3.3125rem; }

  .antes__card {
    margin-left: 5.0625rem;
    width: 48.75rem;
    padding: 1.75rem 0 1.25rem;
  }

  .antes__title { font-size: 2rem; line-height: 2.375rem; }

  .antes__subtitle {
    font-size: 1.5rem;
    line-height: 1.8125rem;
    padding: .5625rem 13.5625rem 0 0;
  }

  .antes__grid {
    display: flex;
    justify-content: center;
    gap: .3125rem;
    margin-top: 0;
  }
  .antes__grid img,
  .antes__grid img + img { width: 19.625rem; margin: 0; }

  /* --- Logos de tecnologías --- */
  .tecnologias { padding: 1.6875rem 0 1.9375rem; }

  /* --- CTA final --- */
  .cta { padding: 1.4375rem 0 1.25rem; }
  .cta__title { font-size: 1.75rem; line-height: 2.8125rem; }
  .cta__lead { font-size: 1.375rem; line-height: 1.9375rem; margin-top: 0; }
  .cta__btn { margin-top: 1.4375rem; }

  /* --- Dra. Mariana Bouvier --- */
  .bio { padding: 2.5rem 0 1.75rem; }
  .bio .container { padding: 0 5rem 0 7.25rem; }

  .bio__head {
    display: grid;
    grid-template-columns: 25.5625rem 1fr;
    align-items: baseline;
  }
  .bio__nombre { font-size: 2rem; line-height: 3.1875rem; }
  .bio__matricula { font-size: 1.375rem; line-height: 2.1875rem; }

  .bio__cols {
    display: grid;
    grid-template-columns: 21.625rem 1fr;
    gap: 3.9375rem;
    margin-top: .5625rem;
  }
  .bio__foto { width: 21.625rem; margin-top: 0; }
  .bio__texto { margin-top: .8125rem; line-height: 1.375rem; }
  .bio__texto p + p { margin-top: 1.375rem; }
}
