/* Tienda DANNY FOTO LAB. Se carga después de pro/styles.css: usa sus configuradores
   (vista previa, molduras, libros, álbumes) con la identidad de la portada. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800.woff2) format("woff2"); }

:root {
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  --navy: #0b3d91;
  --brand: #0b3d91;
  --blue: #1e90ff;
  --sky: #49b6ff;
  --orange: #f5a623;
  --ink: #0a1f47;
  --muted: #5e6b7d;
  --line: #e0e7f0;
  background: #fff;
  color: #2c3440;
}
body.t-site { margin: 0; padding: 0; background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.t-site img { max-width: 100%; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.t-site h1, .t-site h2, .t-site h3 { color: var(--ink); letter-spacing: -.02em; }
.t-site .eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.t-site .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); margin-right: 9px; vertical-align: 1px; }
.t-site .primary { background: var(--navy); color: #fff; border-radius: 999px; }
.t-site .primary:hover { background: var(--blue); }
.t-site .secondary { border-radius: 999px; }

/* Encabezado: el mismo de la portada */
.home-strip { background: #0b3d91; color: #fff; text-align: center; padding: 9px 20px; font-size: 12px; letter-spacing: .02em; }
.home-strip a { color: #fff; margin-left: 24px; text-decoration: none; }
.t-top { position: relative; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.home-header { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.home-header .logo { flex-shrink: 0; }
.home-header .logo img { width: 118px; height: auto; display: block; }
.home-search { display: flex; flex: 1; max-width: 650px; margin-left: auto; background: #f3f7fc; border: 1px solid #dce5f1; border-radius: 8px; overflow: hidden; }
.home-search input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 13px 16px; font: inherit; font-size: 13px; color: #0b3d91; }
.home-search button { border: 0; border-radius: 0; background: #0b3d91; color: #fff; font: inherit; font-size: 12px; padding: 0 18px; white-space: nowrap; }
.home-ideas { color: #0b3d91; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.home-ideas span:not(:empty) { background: var(--orange); color: var(--ink); border-radius: 20px; padding: 2px 8px; margin-left: 4px; }
.btn { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; text-decoration: none; }
.btn-pro-mini { padding: 9px 18px; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 500; }
.btn-pro-mini b { color: var(--orange); font-weight: 800; }
.home-navigation::-webkit-scrollbar { display: none; }
.home-navigation { scrollbar-width: none; margin-block: 0; display: flex; align-items: center; justify-content: center; gap: 34px; padding-block: 12px; border-top: 1px solid #e9eef5; overflow-x: auto; }
.home-navigation a { text-decoration: none; color: #183657; font-size: 13px; font-weight: 600; white-space: nowrap; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.home-navigation a:hover { color: var(--blue); }
.home-navigation a.activo { color: var(--navy); border-bottom-color: var(--orange); }

/* Páginas */
.t-page { padding-block: 28px 64px; }
.t-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.t-crumbs a { color: var(--navy); text-decoration: none; }
.t-hero { display: grid; gap: 32px; align-items: center; padding: 28px 0 8px; }
.t-hero.con-foto { grid-template-columns: 1.1fr 1fr; background: #eef5fb; border-radius: 14px; padding: 32px; }
.t-hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; margin: 6px 0 14px; letter-spacing: -.035em; }
.t-hero p:not(.eyebrow) { color: #55708b; font-size: 16px; max-width: 560px; margin: 0; }
.t-hero img { width: 100%; max-height: 340px; object-fit: contain; border-radius: 10px; }
.t-section { margin-top: 44px; }
.t-section h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
.t-sub { color: #64809b; font-size: 14px; margin: 0 0 20px; max-width: 720px; }
.t-section h2 + .t-grid { margin-top: 18px; }
.t-paso { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 16px; flex-shrink: 0; }
.t-section:nth-of-type(3n) .t-paso { background: var(--blue); }
.t-section:nth-of-type(3n+1) .t-paso { background: var(--orange); color: var(--ink); }

/* Tarjetas */
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.t-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t-card { display: flex; flex-direction: column; text-decoration: none; color: #15395d; min-width: 0; }
.t-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #f4f1ec; }
.t-card-img img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .25s; display: block; }
/* Fondo: la misma foto desenfocada, así las fotos verticales no quedan con franjas lisas a los costados. */
.t-card-img::before { content: ""; position: absolute; inset: -24px; background: var(--bg, none) center / cover; filter: blur(22px) saturate(1.05); opacity: .6; }
.t-card:hover .t-card-img img { transform: scale(1.03); }
.t-chip { position: absolute; z-index: 1; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .94); color: var(--navy); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.t-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 2px 0; }
.t-card-body strong { font-size: 17px; color: var(--ink); line-height: 1.25; }
.t-card-body small { font-size: 13px; color: #66819a; line-height: 1.55; }
.t-card-body em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.t-ramas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.t-rama { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; }
.t-rama img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform .3s; }
.t-rama:hover img { transform: scale(1.03); }
.t-rama span { position: absolute; inset: auto 0 0 0; padding: 70px 22px 22px; background: linear-gradient(transparent, rgba(8, 26, 60, .88)); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.t-rama small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.t-rama strong { font-size: 21px; line-height: 1.2; }
.t-rama em { font-style: normal; font-size: 13px; color: #d6e3f7; }
.t-rama b { font-size: 13px; margin-top: 4px; }

/* Producto: vista previa grande y opciones al costado (como PRO) */
.t-studio { margin-top: 4px; align-items: start; }
.t-studio .frame-preview-card { position: sticky; top: 12px; }
.t-studio { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr); }
.t-studio .frame-config h1 { font-size: 26px; margin: 0 0 6px; line-height: 1.15; }
.t-lead { color: #55708b; margin: 0 0 6px; }
.t-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.t-tabs button { border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; padding: 8px 16px; }
.t-tabs button.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.t-galeria-main { height: min(56vh, 520px); border-radius: 12px; overflow: hidden; background: #f4f1ec; }
.t-galeria-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.t-galeria-thumbs { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.t-galeria-thumbs button { padding: 0; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f4f1ec; }
.t-galeria-thumbs button.selected { border-color: var(--navy); }
.t-galeria-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-mini-galeria { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.t-mini-galeria img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.t-prints { display: flex; flex-wrap: wrap; gap: 14px; align-content: center; justify-content: center; overflow: auto; }
.t-prints span { width: calc(25% - 14px); background: #fff; box-shadow: 0 6px 16px rgba(10, 31, 71, .18); overflow: hidden; }
.t-prints img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-need { font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.t-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-upload .notice { margin: 0; }
.t-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 12px; }
.t-thumbs span { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #eef2f7; }
.t-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-thumbs button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; line-height: 1; }
.t-molduras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.t-moldura { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.t-moldura:hover { border-color: #9cc3f5; background: #fff; }
.t-moldura.selected { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.t-moldura canvas { width: 64px; height: 64px; border-radius: 4px; margin-bottom: 4px; }
.t-moldura strong { font-size: 13px; color: var(--ink); }
.t-moldura small { font-size: 11px; color: var(--muted); font-weight: 400; }
.t-moldura em { font-style: normal; font-size: 11px; color: var(--navy); }
.t-quote { position: sticky; bottom: 0; background: #fff; }
.t-quote strong { font-size: 24px; color: var(--ink); }
.t-quote small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.5; }
.t-quote button { border-radius: 999px; }
.t-studio .stepper button { border-radius: 8px; }

/* Pedido */
.t-pedido { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin-top: 18px; }
.t-linea { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.t-linea img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.t-linea strong { color: var(--ink); }
.t-linea small { display: block; color: var(--muted); font-size: 12px; }
.t-linea p { margin: 4px 0 0; font-size: 13px; }
.t-linea-precio { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; font-size: 18px; }
.t-total strong { font-size: 24px; color: var(--ink); }
.t-enviar input, .t-enviar textarea { width: 100%; }
.t-enviar .primary { width: 100%; margin-top: 14px; }
.btn-t { display: inline-block; padding: 12px 22px; text-decoration: none; font-weight: 600; }

/* Pie */
.footer { background: var(--ink); color: #9fb0cc; padding-block: 32px; font-size: .86rem; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer img { width: 104px; height: auto; }
.footer p { flex: 1; margin: 0; }
.footer a { color: #fff; text-decoration: none; font-weight: 500; }

@media (max-width: 1100px) {
  .t-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .home-header { flex-wrap: wrap; gap: 14px; }
  .home-search { order: 4; flex-basis: 100%; max-width: none; }
  .home-ideas { margin-left: auto; }
  .home-navigation { justify-content: flex-start; gap: 24px; }
  .t-hero.con-foto, .t-pedido { grid-template-columns: 1fr; }
  .t-studio .frame-preview-card { position: static; }
  .t-ramas { grid-template-columns: 1fr; }
  .t-rama { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .home-strip { font-size: 10px; }
  .home-header { padding-block: 10px; }
  .home-header .logo img { width: 96px; }
  .home-navigation a { font-size: 12px; }
  .t-grid, .t-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .t-card-body strong { font-size: 15px; }
  .t-card-body small { font-size: 12px; }
  .t-hero.con-foto { padding: 20px; }
  .t-molduras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-linea { grid-template-columns: 56px 1fr; }
  .t-linea img { width: 56px; height: 56px; }
  .t-linea-precio { grid-column: 2; flex-direction: row; justify-content: space-between; }
  .t-prints span { width: calc(33% - 14px); }
}

/* La vista previa nunca es más alta que la pantalla */
.t-studio .frame-wall { height: min(56vh, 520px); }
.t-studio .frame-wall.scene, .t-studio .frame-wall.bt-scene, .t-studio .frame-wall.ff-scene, .t-studio .frame-wall.bn-scene { height: auto; }
.t-studio .scene-box, .t-studio .bt-escena, .t-studio .ff-escena { width: min(100%, 56vh, 520px); }
.t-studio .bn-salon { width: min(100%, 56vh, 520px); margin-inline: auto; }
.t-studio .studio-photo img { object-fit: contain; }
.t-studio .frame-caption { font-size: 12.5px; margin-top: 8px; }
.t-studio .view-switch, .t-tabs { margin-bottom: 8px; }
.t-prints-diseno span { position: relative; width: 26%; height: auto; }
.t-prints-diseno span:only-child { width: 46%; }
.t-prints-diseno { align-items: center; }

/* Diseño en vivo (ideas.js: PLANTILLAS). Medidas relativas al producto: cqw = % de su ancho. */
.t-dzc { position: absolute; inset: 0; container-type: size; }
.t-dz { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 2.5cqw; padding: 6cqw 6cqw 5cqw; background: #fbf9f5; color: #2a2a2a; text-align: center; overflow: hidden; }
.t-dz img { position: static !important; display: block; width: 100%; height: 100%; object-fit: cover; }
.t-dz-t { font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 8cqw; line-height: 1.15; color: #26334a; }
.t-dz-grid { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 2cqw; }
.t-dz-f { position: relative; min-height: 0; display: flex; flex-direction: column; gap: .8cqw; }
.t-dz-f img { flex: 1; min-height: 0; }
.t-dz-f i { flex: 1; display: grid; place-items: center; background: #e9e4dc; color: #a39a8c; font-style: normal; font-size: 3cqw; border-radius: .5cqw; }
.t-dz-f small { font-family: Georgia, serif; font-size: 2.6cqw; color: #6b6255; }
.t-dz-p { display: flex; flex-wrap: wrap; justify-content: center; gap: .6cqw 2.5cqw; font-family: Georgia, serif; font-size: 3.4cqw; line-height: 1.3; }
.t-dz-p b { font-weight: 400; color: #2a2a2a; }
.t-dz-p em { color: #b3aa9c; }
.t-dz-play { width: 70%; font-size: 3cqw; color: #444; }
.t-dz-play i { display: block; height: .6cqw; margin: 1cqw 0; background: linear-gradient(90deg, #333 40%, #ccc 40%); border-radius: 1cqw; }
/* Foto a sangre con el texto encima (bienvenidas, mascota, número, portada de revista) */
.t-dz-foto, .t-dz-numero, .t-dz-revista { padding: 0; gap: 0; }
.t-dz-foto .t-dz-grid, .t-dz-numero .t-dz-grid, .t-dz-revista .t-dz-grid { gap: 0; }
.t-dz-over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 6cqw; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.t-dz-over .t-dz-t { color: #fff; }
.t-dz-over .t-dz-p, .t-dz-over .t-dz-p b { color: #fff; }
.t-dz-over .t-dz-p em { color: rgba(255, 255, 255, .75); }
.t-dz-numero .t-dz-over { justify-content: center; background: rgba(255, 255, 255, .35); }
.t-dz-numero .t-dz-t { font-family: Poppins, sans-serif; font-weight: 800; font-size: 40cqw; color: #fff; }
.t-dz-revista .t-dz-t { font-family: Georgia, serif; font-weight: 700; font-size: 11cqw; letter-spacing: -.02em; }
.t-dz-revista .t-dz-over { justify-content: flex-start; align-items: flex-start; text-align: left; }
/* Invitación y foto estilo Polaroid */
.t-dz-invitacion .t-dz-grid { flex: 0 0 55%; }
.t-dz-invitacion .t-dz-t { font-size: 11cqw; }
.t-dz-invitacion .t-dz-p { flex-direction: column; font-size: 5cqw; }
.t-dz-polaroid { padding: 6cqw 6cqw 4cqw; background: #fff; }
.t-dz-polaroid .t-dz-p { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 6cqw; min-height: 14cqw; align-items: center; }
/* Texto sobre la tapa de libros y álbumes */
.t-tapa { position: absolute; left: 0; right: 0; bottom: 0; padding: 22% 8% 7%; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); color: #fff; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(11px, 1.2vw, 19px); line-height: 1.2; text-shadow: 0 1px 4px rgba(0, 0, 0, .45); pointer-events: none; }
@media (max-width: 960px) {
  .t-studio { grid-template-columns: 1fr; }
  .t-studio .frame-wall { height: min(48vh, 420px); }
  .t-galeria-main { height: min(48vh, 420px); }
}
.t-tapa small { display: block; margin-top: .35em; font-style: normal; font-size: .55em; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
/* Libros y álbumes más grandes en la vista previa (todos a la misma escala entre sí). */
.t-studio .book-wall .book-stage { transform: scale(1.5); margin: 80px 0 60px; }
@media (max-width: 960px) { .t-studio .book-wall .book-stage { transform: scale(1.15); margin: 30px 0; } }

/* Escenas a escala de la tienda (cuadros por tamaño, portarretratos, fotos impresas) */
.t-escena { position: relative; width: min(100%, 56vh, 520px); aspect-ratio: 1; margin: 0 auto; background: #efe9df center / cover no-repeat; border-radius: 12px; overflow: hidden; }
.t-escena .frame-object { position: absolute; max-width: none; }
.t-de-pie .frame-object { filter: drop-shadow(6px 8px 6px rgba(60, 45, 30, .35)) drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.t-foto-impresa { position: absolute; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 8px 18px rgba(40, 30, 20, .18); }
.t-foto-impresa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-arriba .t-foto-impresa { box-shadow: 2px 3px 5px rgba(0, 0, 0, .3); }

/* Envío del pedido */
.t-progreso { margin-top: 12px; }
.t-progreso > div { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.t-progreso i { display: block; height: 100%; width: 0; background: var(--blue, #1e90ff); transition: width .2s; }
.t-progreso span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.t-enviado { max-width: 560px; display: grid; gap: 10px; justify-items: start; }
.t-enviado .btn-t { margin-right: 8px; }

/* Las fotos de muestra son ilustrativas: una marca chiquita en la esquina (sin editar cada imagen). */
.t-galeria-main, .studio-photo, .t-hero-img, .t-rama { position: relative; }
.t-hero-img { display: block; }
.t-card-img::after, .t-rama::after, .t-galeria-main::after, .studio-photo::after, .t-hero-img::after { content: "Imagen ilustrativa"; position: absolute; top: 8px; right: 8px; z-index: 1; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .85); font-size: 10px; font-weight: 500; letter-spacing: .02em; pointer-events: none; bottom: auto; }
.t-total.t-sub { font-size: 14px; padding-top: 8px; color: var(--muted); }
