/* =========================================================
   Dra. Sabrina Spizzamiglio — Medicina Estética
   Réplica 1:1 del sitio original de Canva.

   Cómo está armado:
   - Cada sección tiene un "escenario" (.stage) con medidas fijas de diseño
     (escritorio: 1367.4 px de ancho / celular: 375.2 px de ancho).
   - Los elementos se ubican con coordenadas exactas dentro del escenario.
   - js/main.js calcula la escala (--s) según el ancho de pantalla,
     igual que hace Canva.
   - Primero están las medidas de CELULAR; más abajo, dentro de
     @media (min-width:1108px), las de ESCRITORIO.
   ========================================================= */

/* ---------- Fuentes (mismos archivos que usa Canva) ---------- */
@font-face { font-family: "SS Titulos"; src: url("../assets/fonts/17bf2c0289a0315c35428e4164035c41.woff") format("woff"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "SS Texto";   src: url("../assets/fonts/e1db3c08762b48e1ba20b5ee70922289.woff") format("woff"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "SS Serif";   src: url("../assets/fonts/6e260fd8d7788404627f8139588df061.woff") format("woff"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "SS Lato";    src: url("../assets/fonts/e148ef0409429054fe31b0a4d2d4a866.woff") format("woff"); font-weight: 100 900; font-display: block; }

/* ---------- Colores ---------- */
:root {
  --arena: rgb(224, 210, 199);   /* fondo beige */
  --tinta: rgb(82, 84, 96);      /* gris oscuro de textos y botones */
  --menu:  rgb(48, 66, 84);      /* texto del menú */
  --s: 1;                        /* escala (la calcula main.js) */
  --W: 375;                      /* ancho de diseño (lo ajusta main.js) */
  --nav-h: 48px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #fff; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; }
a { color: inherit; }

/* ---------- Menú ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 20;
  background: var(--arena); border-bottom: 0.8px solid rgba(0, 0, 0, 0.07);
  display: flex; justify-content: flex-end; align-items: center;
}
.nav-links { display: none; list-style: none; margin: 0; padding: 0 0 0 40px; }
.nav a, .drawer a {
  display: block; padding: 16px; text-decoration: none; white-space: nowrap;
  font: 700 15px/normal "SS Texto", sans-serif; color: var(--menu);
}
.nav-toggle {
  width: 40px; height: 40px; margin-right: 0; padding: 8px; border: 0; background: none;
  color: var(--menu); cursor: pointer;
}
.nav-toggle svg { display: block; }
html.nav-full .nav-links { display: flex; }
html.nav-full .nav-toggle, html.nav-full .drawer, html.nav-full .drawer-overlay { display: none; }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transition: opacity .2s ease-out, visibility .2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 205px; z-index: 31;
  background: var(--arena); transform: translateX(100%); transition: transform .2s ease-out;
}
.drawer ul { list-style: none; margin: 0; padding: 8px 0; }
.drawer a { padding: 12px 24px; }
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-overlay { opacity: 1; visibility: visible; }

/* ---------- Contenedor con scroll (igual que Canva) ---------- */
.scroller {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  overflow-y: auto; overflow-x: hidden;
}

/* ---------- Secciones y escenario ---------- */
.sec {
  position: relative; overflow: hidden; background: var(--arena);
  height: calc(var(--h) * var(--s) * 1px);
}
#acerca, #contacto { background: #fff; }
.sec-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bg-acerca   { background-image: url("../assets/media/99a741d9e9a854331757cde8563371d4.jpg"); opacity: .33; }
.bg-contacto { background-image: url("../assets/media/85fed58050e383c58dc5075540636b5a.png"); opacity: .45; }

.stage {
  position: absolute; top: 0; left: 50%;
  width: calc(var(--W) * 1px); height: calc(var(--h) * 1px);
  margin-left: calc(var(--W) * var(--s) * -0.5px);
  transform: scale(var(--s)); transform-origin: 0 0;
}
/* mismo motor de texto que Canva: sin kerning ni ligaduras */
.stage * {
  font-kerning: none !important; font-feature-settings: "calt" 0, "clig" 0, "liga" 0 !important;
  font-synthesis: none !important; text-rendering: geometricPrecision !important;
}
.el { position: absolute; margin: 0; }
.txt { white-space: nowrap; color: var(--tinta); font-weight: 400; }

/* Saltos de línea: .d = solo escritorio, .m = solo celular */
br.d { display: none; }

/* Botones */
.btn { display: block; text-decoration: none; }
.btn-bg { position: absolute; inset: 0; background: var(--tinta); border-radius: var(--r, 10.5px); }
.btn-ico { position: absolute; }
.btn-txt {
  position: absolute; white-space: nowrap; text-align: center; text-decoration: underline;
  color: var(--arena); font-family: "SS Texto", sans-serif; font-weight: 500;
}

/* Tarjetas de tratamientos */
.card { overflow: hidden; }
.card img { position: absolute; opacity: .41; max-width: none; }
.card-label { font-family: "SS Texto", sans-serif; font-weight: 600; text-align: center; }

/* =========================================================
   TIPOGRAFÍA DE CADA ELEMENTO (vale para celular y escritorio).
   Las posiciones y tamaños de celular están en css/mobile.css
   ========================================================= */
.hero-photo, .foot-photo, .about-logo, .foot-logo { overflow: hidden; }
.hero-photo img, .foot-photo img, .about-logo img, .foot-logo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hero-sub    { text-align: center; color: #000; font-family: "SS Texto", sans-serif; font-weight: 100; }
.hero-title  { text-align: center; font-family: "SS Titulos", sans-serif; }
.about-title { text-align: center; font-family: "SS Titulos", sans-serif; }
.about-text  { text-align: center; font-family: "SS Texto", sans-serif; }
.trat-kicker { text-transform: uppercase; font-family: "SS Serif", serif; }
.trat-lead   { font-family: "SS Texto", sans-serif; font-weight: 600; }
.ct-kicker   { text-transform: uppercase; font-family: "SS Serif", serif; }
.ct-label    { font-family: "SS Titulos", sans-serif; }
.ct-value    { font-family: "SS Lato", sans-serif; }
.ct-value a  { text-decoration: underline; }
.foot-title  { text-align: center; font-family: "SS Titulos", sans-serif; }
.foot-sub    { text-align: center; font-family: "SS Lato", sans-serif; }
@media (max-width: 1107.98px) { .txt { white-space: normal; } .about-text, .trat-lead { white-space: nowrap; } }

/* =========================================================
   ESCRITORIO (diseño 1367.4 × 768 px por sección)
   ========================================================= */
@media (min-width: 1108px) {
  :root { --W: 1367.4; }
  .sec { --h: 768 !important; }
  .txt { white-space: nowrap; }
  .nav-links { display: flex; }
  .nav-toggle, .drawer, .drawer-overlay { display: none; }
  br.d { display: inline; }
  br.m { display: none; }
  .btn { --r: 13.3px; }
  .card { border-radius: 16px; }
  .card-label { font-size: 26.67px; line-height: 34px; }

  /* 1. Inicio */
  .hero-photo { left: 705.5px; top: 0; width: 661.2px; height: 881.6px; }
  .hero-sub   { left: 184.8px; top: 85.6px; width: 331.3px; font-size: 49.33px; line-height: 64px; }
  .hero-title { left: 40.4px; top: 243.2px; width: 635.7px; font-size: 68px; line-height: 67px; }
  .hero-btn   { left: 152.2px; top: 463.4px; width: 396.5px; height: 76.3px; }
  .hero-btn .btn-ico { left: 22px; top: 16.7px; width: 40.5px; height: 40.7px; }
  .hero-btn .btn-txt { left: 67.9px; top: 15.6px; width: 307.8px; font-size: 40px; line-height: 45px; }

  /* 2. Acerca de mi */
  .about-logo  { left: 532.1px; top: 59.8px; width: 273px; height: 273px; }
  .about-title { left: 28.3px; top: 281.2px; width: 1310.8px; font-size: 68px; line-height: 68px; }
  .about-text  { left: 131.1px; top: 402.5px; width: 1075px; font-size: 22.67px; line-height: 36px; }
  .ig-btn { left: 310.3px; top: 611.5px; width: 318.4px; height: 76.3px; }
  .ig-btn .btn-ico { left: 44.9px; top: 11px; width: 54.4px; height: 54.4px; }
  .ig-btn .btn-txt { left: 17.4px; top: 17.4px; width: 366.1px; font-size: 41.33px; line-height: 47px; }
  .li-btn { left: 729.6px; top: 611.5px; width: 268.9px; height: 76.3px; }
  .li-btn .btn-ico { left: 30.4px; top: 11px; width: 48.6px; height: 48.6px; }
  .li-btn .btn-txt { left: 75.5px; top: 17.4px; width: 185.1px; font-size: 41.33px; line-height: 47px; }

  /* 3. Tratamientos */
  .trat-kicker { left: 77.5px; top: 78.7px; font-size: 25.33px; line-height: 25px; letter-spacing: 2.027px; }
  .trat-lead   { left: 77.5px; top: 137.7px; font-size: 28px; line-height: 36px; }
  .c1 { left: 338.4px; top: 254.6px; width: 200.5px; height: 200.5px; }
  .c2 { left: 588.2px; top: 254.6px; width: 194.1px; height: 200.5px; }
  .c3 { left: 831.5px; top: 254.6px; width: 194.1px; height: 200.5px; }
  .c4 { left: 341.6px; top: 490.7px; width: 194.1px; height: 200.5px; }
  .c5 { left: 585px;   top: 490.7px; width: 194.1px; height: 200.5px; }
  .c6 { left: 831.5px; top: 490.7px; width: 194.1px; height: 200.5px; }
  .c1 img { left: -50.1px; width: 300.8px; height: 200.5px; }
  .c2 img, .c5 img { left: -53.5px; width: 301px; height: 200.5px; }
  .c3 img, .c6 img { left: -53.4px; width: 301px; height: 200.5px; }
  .c4 img { left: 0; top: -45.5px; width: 194.1px; height: 291.4px; }
  .l1 { left: 359.1px; top: 394.3px; width: 152.7px; }
  .l2 { left: 585px;   top: 394.3px; width: 194.1px; }
  .l3 { left: 834.9px; top: 394.3px; width: 194.1px; }
  .l4 { left: 338.4px; top: 627.1px; width: 194.1px; }
  .l5 { left: 605.7px; top: 627.1px; width: 152.7px; }
  .l6 { left: 855.6px; top: 627.1px; width: 152.7px; }

  /* 4. Contacto */
  .ct-kicker { left: 57px; top: 94.3px; font-size: 37.33px; line-height: 37px; letter-spacing: 2.987px; }
  .ct-label  { font-size: 37.33px; line-height: 48px; }
  .ct-value  { font-size: 28px; line-height: 39px; }
  .ct-l1 { left: 57px;   top: 194.7px; }
  .ct-v1 { left: 57px;   top: 244.7px; }
  .ct-l2 { left: 52.4px; top: 329.7px; }
  .ct-v2 { left: 52.4px; top: 379.8px; }
  .ct-l3 { left: 57px;   top: 465.1px; }
  .ct-v3 { left: 57px;   top: 515.2px; }

  /* 5. Turnos */
  .foot-logo  { left: 221.7px; top: -11.2px; width: 273px; height: 273px; }
  .foot-title { left: 94px; top: 226.9px; width: 528.4px; font-size: 56px; line-height: 56px; }
  .foot-sub   { left: 94px; top: 338.9px; width: 528.4px; font-size: 41.33px; line-height: 41px; }
  .foot-btn   { left: 160px; top: 467.2px; width: 396.5px; height: 76.3px; }
  .foot-btn .btn-ico { left: 22px; top: 16.8px; width: 40.5px; height: 40.7px; }
  .foot-btn .btn-txt { left: 67.9px; top: 15.7px; width: 307.8px; font-size: 40px; line-height: 45px; }
  .foot-photo { left: 705.5px; top: 0; width: 661.2px; height: 881.6px; }
}

/* Imágenes espejadas horizontalmente (así estaban en Canva) */
.hero-photo img, .foot-photo img, .bg-contacto { transform: scaleX(-1); }
