/* Media Web Lab · sistema de plantillas
   Base común + firma visual por plantilla ([data-tpl]). Colores, tipografía y bordes llegan como variables. */


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body), system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { flex: none; }
.t-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* Tipografía */
.t-display, .t-h2, .t-statement__text, .t-logo { font-family: var(--font-display), system-ui, sans-serif; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.t-display { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; text-wrap: balance; overflow-wrap: break-word; }
@media (max-width: 560px) { .t-display, .t-h2 { hyphens: auto; } .t-actions .t-btn { flex: 1 1 auto; justify-content: center; } }
.t-h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; text-wrap: balance; }
.t-h3 { font-family: var(--font-body), system-ui, sans-serif; font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.t-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.t-sub { color: var(--muted); max-width: 60ch; margin-top: 14px; }
.t-body { color: var(--muted); max-width: 62ch; }
.t-note { font-size: 0.88rem; color: var(--muted); }
.t-eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* Botones (misma escala de borde de la plantilla) */
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.t-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: 600 0.98rem/1 var(--font-body), system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s, color .25s, border-color .25s; }
.t-btn:active { transform: translateY(1px) scale(.985); }
.t-btn--primary { background: var(--accent); color: var(--accent-ink); }
.t-btn--primary:hover { filter: brightness(1.08); }
.t-btn--ghost { color: var(--fg); border-color: var(--line); background: transparent; }
.t-btn--ghost:hover { border-color: var(--fg); }
.t-btn--ghost .icon { transition: transform .25s; }
.t-btn--ghost:hover .icon { transform: translateX(3px); }
.t-btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.t-btn[disabled] { opacity: .55; cursor: not-allowed; }
.t-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.t-link:hover { border-color: var(--fg); }

/* Barra de demo / previsualización (no forma parte del sitio del cliente) */
.mwl-demo-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: #141414; color: #f1f1ee; font: 500 0.85rem/1 "Geist", system-ui, sans-serif; }
.mwl-demo-bar p { flex: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mwl-demo-bar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mwl-demo-bar__choose { background: #f1f1ee; color: #141414 !important; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.mwl-demo-bar--preview { background: #20242b; }

/* Navegación */
.is-bare .t-nav { top: 0; }
.t-nav { position: sticky; top: 44px; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.t-nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.t-logo { font-size: 1.3rem; text-decoration: none; margin-right: auto; }
.t-logo img { max-height: 40px; width: auto; }
.t-nav ul { display: flex; gap: 26px; font-size: 0.95rem; }
.t-nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.t-nav nav a:hover { color: var(--fg); }
@media (max-width: 860px) { .t-nav nav { display: none; } .t-nav .t-btn span { display: none; } .t-nav .t-btn { padding: 0 12px; } }

/* Secciones */
.t-section { padding-block: clamp(72px, 10vw, 128px); }
.t-section--hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.t-head { margin-bottom: clamp(32px, 5vw, 56px); }
.t-head--row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }

/* Hero: variantes */
.t-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.t-hero__text .t-lead { margin-top: 22px; }
.t-hero__media { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.t-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.t-hero--split { grid-template-columns: 1.05fr 1fr; }
.t-hero--split .t-hero__media { order: 2; aspect-ratio: 4 / 5; }
.t-hero--editorial { grid-template-columns: repeat(12, 1fr); align-items: end; }
.t-hero--editorial .t-hero__text { grid-column: 1 / span 7; grid-row: 1; padding-bottom: 24px; }
.t-hero--editorial .t-hero__media { grid-column: 8 / span 5; grid-row: 1; aspect-ratio: 4 / 5; }
.t-hero--overlay { position: relative; min-height: min(78dvh, 720px); align-items: end; }
.t-hero--overlay .t-hero__media { position: absolute; inset: 0; }
.t-hero--overlay .t-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.28) 55%, rgba(10,10,10,0) 80%), linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,.6) 100%); }
.t-hero--overlay .t-hero__text { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); color: #f6f5f2; }
.t-hero--overlay .t-lead { color: rgba(246,245,242,.86); }
.t-hero--overlay .t-btn--ghost { color: #f6f5f2; border-color: rgba(246,245,242,.45); }
.t-hero--overlay .t-btn--ghost:hover { border-color: #f6f5f2; }
.t-hero--poster .t-hero__text { order: -1; }
.t-hero--poster .t-hero__media { aspect-ratio: 21 / 9; }
.t-hero--minimal { max-width: 860px; }
@media (max-width: 860px) {
  .t-hero--split, .t-hero--editorial { grid-template-columns: 1fr; }
  .t-hero--split .t-hero__media { order: 0; aspect-ratio: 4 / 3; }
  .t-hero--editorial .t-hero__text, .t-hero--editorial .t-hero__media { grid-column: 1; grid-row: auto; }
  .t-hero--editorial .t-hero__media { aspect-ratio: 4 / 3; }
  .t-hero--poster .t-hero__media { aspect-ratio: 4 / 3; }
  .t-hero--overlay { min-height: 76dvh; }
}

/* Declaración */
.t-statement { max-width: 940px; }
.t-statement__text { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.22; text-transform: none; text-wrap: pretty; }
.t-statement .t-note { margin-top: 24px; }

/* Servicios */
.t-services--rows .t-services__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.t-services--rows .t-service { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.t-services--columns .t-services__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.t-services--columns .t-service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.t-services--index .t-services__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.t-services--index .t-service { display: grid; gap: 10px; padding-top: 22px; border-top: 2px solid var(--fg); }
.t-service__n { font: 500 0.85rem/1 "Geist Mono", ui-monospace, monospace; color: var(--accent); }
.t-service__desc { color: var(--muted); }
.t-service__price { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.t-services--columns .t-service__price { margin-top: 6px; color: var(--accent); }
@media (max-width: 760px) {
  .t-services--rows .t-service { grid-template-columns: 1fr; }
  .t-services--columns .t-services__list, .t-services--index .t-services__list { grid-template-columns: 1fr; gap: 16px; }
  .t-services--index .t-services__list { gap: 32px; }
}

/* Acerca de */
.t-about { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; }
.t-about.has-media { grid-template-columns: 1fr 1.1fr; }
.t-about--portrait .t-about__media { aspect-ratio: 4 / 5; max-height: 640px; }
.t-about--wide .t-about__media { aspect-ratio: 4 / 3; }
.t-about__media { overflow: hidden; border-radius: var(--radius); }
.t-about__media img { width: 100%; height: 100%; object-fit: cover; }
.t-about__text { display: grid; gap: 18px; }
.t-about:not(.has-media) .t-about__text { grid-template-columns: 1fr 1.2fr; gap: 18px 64px; }
.t-about:not(.has-media) .t-h2 { grid-row: span 3; }
.t-facts { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.t-facts dt { font-size: 0.82rem; color: var(--muted); }
.t-facts dd { font-weight: 600; }
@media (max-width: 860px) { .t-about.has-media, .t-about:not(.has-media) .t-about__text { grid-template-columns: 1fr; } .t-about:not(.has-media) .t-h2 { grid-row: auto; } }

/* Proceso */
.t-process .t-h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.t-process__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; counter-reset: s; }
.t-step { display: grid; gap: 10px; align-content: start; }
.t-step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--line); font: 600 0.95rem/1 "Geist Mono", ui-monospace, monospace; color: var(--accent); margin-bottom: 8px; }

/* Galería */
.t-gallery .t-h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.t-gallery__item { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.t-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.t-gallery__item:hover img { transform: scale(1.04); }
.t-gallery--mosaic .t-gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px); grid-auto-flow: dense; gap: 12px; }
.t-gallery--mosaic .t-gallery__item { grid-column: span 2; }
.t-gallery--mosaic [data-count="4"] .t-gallery__item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.t-gallery--mosaic [data-count="4"] .t-gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.t-gallery--mosaic [data-count="4"] .t-gallery__item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.t-gallery--mosaic [data-count="4"] .t-gallery__item:nth-child(4) { grid-column: span 6; grid-row: span 1; }
.t-gallery--mosaic [data-count="5"] .t-gallery__item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.t-gallery--mosaic [data-count="5"] .t-gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.t-gallery--mosaic [data-count="5"] .t-gallery__item:nth-child(n+3) { grid-column: span 2; grid-row: span 1; }
.t-gallery--strip .t-gallery__grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.t-gallery--strip .t-gallery__item { aspect-ratio: 3 / 4; scroll-snap-align: start; }
@media (max-width: 760px) {
  .t-gallery--mosaic .t-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .t-gallery--mosaic .t-gallery__grid .t-gallery__item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .t-gallery--mosaic .t-gallery__grid .t-gallery__item:first-child { grid-column: span 2 !important; grid-row: span 2 !important; }
  .t-gallery--strip .t-gallery__grid { grid-auto-columns: 78%; }
}

/* Carta */
.t-menu .t-h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.t-menu__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 72px; }
.t-menu__group .t-h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; }
.t-menu__item { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.t-menu__name { font-weight: 600; }
.t-menu__desc { font-size: 0.92rem; color: var(--muted); }
.t-menu__price { font: 600 0.98rem/1.6 "Geist Mono", ui-monospace, monospace; white-space: nowrap; }
.t-menu > .t-note { margin-top: 28px; }

/* Productos */
.t-products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
.t-product { display: grid; gap: 12px; }
.t-product__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.t-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.t-product:hover .t-product__media img { transform: scale(1.04); }
.t-product__tag { position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--fg); font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: var(--radius); }
.t-product__info { display: flex; justify-content: space-between; gap: 12px; }
.t-product__name { font-weight: 600; }
.t-product__price { font-family: "Geist Mono", ui-monospace, monospace; }
.t-product .t-btn { justify-self: start; background: transparent; border-color: var(--line); color: var(--fg); }
@media (max-width: 860px) { .t-products__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }

/* Fechas */
.t-dates .t-h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.t-date { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.t-date:last-child { border-bottom: 1px solid var(--line); }
.t-date__when { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; }
.t-date__where { display: grid; }
.t-date__where span { color: var(--muted); font-size: 0.95rem; }
.t-date__status { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; }
.t-date--tickets .t-date__status { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.t-date--soldout { opacity: .55; }
@media (max-width: 640px) { .t-date { grid-template-columns: 1fr auto; } .t-date__when { grid-column: 1 / -1; } }

/* Testimonios */
.t-testimonials .t-h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.t-testimonials__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; }
.t-quote blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; text-wrap: pretty; }
.t-quote figcaption { display: grid; margin-top: 16px; font-size: 0.95rem; }
.t-quote figcaption span { color: var(--muted); }
.t-testimonials > .t-note { margin-top: 28px; }

/* Preguntas */
.t-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 72px; }
.t-faq__item { border-bottom: 1px solid var(--line); }
.t-faq__item summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 600; cursor: pointer; list-style: none; }
.t-faq__item summary::-webkit-details-marker { display: none; }
.t-faq__item summary .icon { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.t-faq__item[open] summary .icon { transform: rotate(45deg); }
.t-faq__item .t-body { padding-bottom: 22px; }
@media (max-width: 860px) { .t-faq { grid-template-columns: 1fr; } }

/* Llamado a la acción */
.t-cta { display: grid; gap: 32px; padding: clamp(32px, 6vw, 72px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.t-cta.has-media { grid-template-columns: 1fr 1.1fr; padding: clamp(16px, 2vw, 20px); }
.t-cta.has-media .t-cta__text { padding: clamp(16px, 4vw, 48px); }
.t-cta__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.t-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.t-cta__text { display: grid; gap: 16px; justify-items: start; }
.t-cta__text .t-btn { margin-top: 12px; }
@media (max-width: 860px) { .t-cta.has-media { grid-template-columns: 1fr; } }

/* Contacto */
.t-contact { display: grid; gap: 48px; }
.t-contact.has-form { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.t-contact__info { display: grid; gap: 22px; align-content: start; }
.t-contact__list { display: grid; gap: 14px; }
.t-contact__list li { display: flex; gap: 12px; align-items: center; }
.t-contact__list a { text-decoration: none; }
.t-contact__list a:hover { text-decoration: underline; }
.t-contact__list .icon { color: var(--accent); }
.t-theme-dark .t-contact__list .icon { color: var(--fg); }
.t-hours { display: grid; gap: 6px; max-width: 420px; padding-top: 18px; border-top: 1px solid var(--line); }
.t-hours div { display: flex; justify-content: space-between; gap: 16px; }
.t-hours dt { color: var(--muted); }
.t-hours dd { font-weight: 600; }
.t-contact .t-link { justify-self: start; }
.t-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); align-content: start; }
.t-form label { display: grid; gap: 8px; font-size: 0.92rem; font-weight: 600; }
.t-form input, .t-form textarea { width: 100%; font: 400 1rem/1.4 var(--font-body), system-ui, sans-serif; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); padding: 13px 14px; }
.t-form input:focus, .t-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.t-form .t-btn { justify-self: start; }
@media (max-width: 860px) { .t-contact.has-form { grid-template-columns: 1fr; } }

/* Pie y WhatsApp flotante */
.t-footer { border-top: 1px solid var(--line); padding-block: 40px 96px; }
.t-footer__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.t-footer__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.15rem; }
.t-social { display: flex; gap: 14px; }
.t-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); }
.t-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1f7a4d; color: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.t-wa-float:hover { transform: translateY(-2px); }

/* Aparición al hacer scroll (sin movimiento si el usuario lo prefiere) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .t-section--hero[data-reveal] { opacity: 1; transform: none; }
  .js .t-section--hero .t-hero__text > * { animation: t-rise .9s cubic-bezier(.16,1,.3,1) both; }
  .js .t-section--hero .t-hero__text > *:nth-child(2) { animation-delay: .08s; }
  .js .t-section--hero .t-hero__text > *:nth-child(3) { animation-delay: .16s; }
  .js .t-section--hero .t-hero__text > *:nth-child(4) { animation-delay: .24s; }
}
@keyframes t-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ====== Firmas por plantilla ====== */

/* Atelier: editorial serena, cursiva en la declaración */
[data-tpl="atelier"] .t-display { font-size: clamp(2.7rem, 5.6vw, 4.9rem); line-height: 1.04; }
[data-tpl="atelier"] .t-statement__text { font-style: italic; font-weight: 380; }
[data-tpl="atelier"] .t-hero--editorial .t-hero__media { transform: translateY(40px); }
@media (max-width: 860px) { [data-tpl="atelier"] .t-hero--editorial .t-hero__media { transform: none; } }

/* Ledger: rigor técnico, numeración y reglas */
[data-tpl="ledger"] .t-display { font-size: clamp(2.4rem, 4.6vw, 4rem); }
[data-tpl="ledger"] .t-section--services { background: var(--surface); border-block: 1px solid var(--line); }
[data-tpl="ledger"] .t-step { padding-top: 20px; border-top: 1px solid var(--fg); }
[data-tpl="ledger"] .t-step__n { border: 0; width: auto; height: auto; justify-content: start; margin: 0; }

/* Mesa: cálida, foto protagonista */
[data-tpl="mesa"] .t-section--hero .t-wrap { width: min(1320px, 100% - 24px); }
[data-tpl="mesa"] .t-hero--overlay { border-radius: var(--radius); overflow: hidden; }
[data-tpl="mesa"] .t-display { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 13ch; }
[data-tpl="mesa"] .t-section--menu { background: var(--surface); }

/* Calma: arco y suavidad */
[data-tpl="calma"] .t-hero--editorial .t-hero__media { border-radius: 999px 999px var(--radius) var(--radius); }
[data-tpl="calma"] .t-display { font-size: clamp(3rem, 6.4vw, 5.4rem); line-height: 1; }
[data-tpl="calma"] .t-quote blockquote { font-style: italic; }
[data-tpl="calma"] .t-btn { border-radius: 999px; }
[data-tpl="calma"] .t-section--gallery { background: var(--surface); }

/* Obra: cartel industrial, acento de seguridad */
[data-tpl="obra"] .t-display { font-size: clamp(2.2rem, 9.6vw, 7rem); line-height: .92; }
[data-tpl="obra"] .t-hero--poster .t-hero__text { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px 48px; align-items: end; }
[data-tpl="obra"] .t-hero--poster .t-display { grid-column: 1 / -1; }
[data-tpl="obra"] .t-hero--poster .t-actions { margin-top: 0; justify-content: end; }
[data-tpl="obra"] .t-hero--poster .t-hero__media { border-bottom: 10px solid var(--accent); }
[data-tpl="obra"] .t-h2 { text-transform: uppercase; }
[data-tpl="obra"] .t-step__n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-tpl="obra"] .t-cta { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-tpl="obra"] .t-cta .t-sub { color: inherit; opacity: .8; }
[data-tpl="obra"] .t-cta .t-btn--primary { background: var(--fg); color: var(--bg); }
@media (max-width: 860px) { [data-tpl="obra"] .t-hero--poster .t-hero__text { grid-template-columns: 1fr; } [data-tpl="obra"] .t-hero--poster .t-actions { justify-content: start; } }

/* Encuadre: el trabajo manda */
[data-tpl="encuadre"] .t-section--hero { padding: 0; }
[data-tpl="encuadre"] .t-section--hero .t-wrap { width: 100%; }
[data-tpl="encuadre"] .t-hero--overlay { min-height: calc(100dvh - 112px); }
[data-tpl="encuadre"] .t-hero--overlay .t-hero__media { border-radius: 0; }
[data-tpl="encuadre"] .t-hero--overlay .t-hero__text { width: min(1200px, 100% - 40px); margin-inline: auto; padding-inline: 0; }
[data-tpl="encuadre"] .t-display { font-size: clamp(2.3rem, 4.4vw, 3.8rem); max-width: 18ch; }
[data-tpl="encuadre"] .t-gallery--mosaic .t-gallery__grid { gap: 6px; }
[data-tpl="encuadre"] .t-services--columns .t-service { background: transparent; }

/* Escena: cartel de concierto */
[data-tpl="escena"] .t-section--hero { padding-top: 0; }
[data-tpl="escena"] .t-section--hero .t-wrap { width: 100%; }
[data-tpl="escena"] .t-hero--poster { position: relative; min-height: calc(92dvh - 112px); align-items: end; }
[data-tpl="escena"] .t-hero--poster .t-hero__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
[data-tpl="escena"] .t-hero--poster .t-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,13,.15) 20%, var(--bg) 100%); }
[data-tpl="escena"] .t-hero--poster .t-hero__text { position: relative; z-index: 1; width: min(1200px, 100% - 40px); margin: 0 auto; padding-bottom: 40px; }
[data-tpl="escena"] .t-display { font-size: clamp(3rem, 9.5vw, 8.5rem); line-height: .9; }
[data-tpl="escena"] .t-section--cta .t-cta { background: var(--accent); color: var(--accent-ink); border: 0; }
[data-tpl="escena"] .t-section--cta .t-sub { color: inherit; opacity: .8; }
[data-tpl="escena"] .t-section--cta .t-btn--primary { background: var(--bg); color: var(--fg); }

/* Vitrina: producto primero, imagen a la izquierda */
[data-tpl="vitrina"] .t-hero--split { grid-template-columns: 1.15fr 1fr; }
[data-tpl="vitrina"] .t-hero--split .t-hero__media { order: 0; aspect-ratio: 5 / 6; }
[data-tpl="vitrina"] .t-display { font-size: clamp(2.4rem, 4.2vw, 3.7rem); }
[data-tpl="vitrina"] .t-statement { margin-inline: auto; text-align: center; }
@media (max-width: 860px) { [data-tpl="vitrina"] .t-hero--split { grid-template-columns: 1fr; } }

/* ---- Detalles que conectan (v4) ---- */
/* Reseñas: resumen de calificación, estrellas e iniciales */
.t-testimonials__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.t-testimonials__head .t-h2 { margin-bottom: 0; }
.t-rating { display: flex; align-items: center; gap: 14px; }
.t-rating__value { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; margin: 0; }
.t-rating__count { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.t-stars { display: inline-flex; gap: 2px; color: color-mix(in srgb, var(--fg) 18%, transparent); }
.t-stars .is-on { color: #e5a00d; }
.t-quote { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.t-quote blockquote { margin: 0; }
.t-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.t-quote figcaption > span:last-child { display: grid; }
.t-quote__avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); font: 600 0.85rem/1 var(--font-body); }

/* Abierto ahora / Cerrado (estado real calculado con la hora de Colombia) */
.t-open { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.t-open[hidden] { display: none; }
.t-open__dot { width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; }
.t-open.is-open .t-open__dot { background: #1f9d55; box-shadow: 0 0 0 4px color-mix(in srgb, #1f9d55 20%, transparent); }
.t-open.is-open .t-open__txt strong { color: #1f7a4d; }
.t-open--contact { width: fit-content; margin: 4px 0 18px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.t-open--nav { margin-left: auto; margin-right: 14px; }
@media (max-width: 1080px) { .t-open--nav { display: none !important; } }

/* Galería ampliable */
.t-zoom { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.t-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.t-zoom__ic { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--fg); opacity: 0; transform: translateY(6px); transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1); }
.t-zoom:hover .t-zoom__ic, .t-zoom:focus-visible .t-zoom__ic { opacity: 1; transform: none; }
.t-lightbox { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 10, 0.9); display: grid; place-items: center; }
.t-lightbox:not([open]) { display: none; }
.t-lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.t-lightbox__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.t-lightbox__btn:hover { background: rgba(255,255,255,.22); }
.t-lightbox__close { top: 18px; right: 18px; }
.t-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.t-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.t-lightbox__cap { position: fixed; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 0.9rem; padding: 0 70px; }

/* Menú: marca la sección visible */
.t-nav nav a.is-active { color: var(--fg); }
.t-nav nav a { position: relative; }
.t-nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.t-nav nav a.is-active::after { transform: scaleX(1); }

/* Barra de acciones en celular */
.t-actionbar { display: none; }
@media (max-width: 760px) {
  .has-actionbar .t-wa-float { display: none; }
  .has-actionbar { padding-bottom: 76px; }
  .t-actionbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px;
    border-radius: 18px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid var(--line); box-shadow: 0 14px 40px -16px rgba(0,0,0,.35); }
  .t-actionbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 13px; text-decoration: none; color: var(--fg); font-size: 0.78rem; font-weight: 600; }
  .t-actionbar a:first-child { background: #1f7a4d; color: #fff; }
  .t-actionbar a:active { transform: scale(.97); }
}

/* Entrada más suave: sube y se enfoca */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { filter: blur(6px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1); }
  .js [data-reveal].is-in { filter: none; }
  .js .t-section--hero[data-reveal] { filter: none; }
  .t-hero__media img { animation: t-kenburns 14s cubic-bezier(.2,.6,.2,1) both; }
  @keyframes t-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
}

/* Equipo */
.t-team__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); gap: 32px 24px; margin-top: clamp(28px, 4vw, 44px); }
.t-member__media { margin: 0 0 16px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.t-member__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.t-member:hover .t-member__media img { transform: scale(1.04); }
.t-member__initials { font-family: var(--font-display); font-size: 3rem; color: var(--accent); }
.t-member__name { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; letter-spacing: var(--display-tracking); }
.t-member__role { margin: 4px 0 0; color: var(--muted); }
.t-member__cred { display: flex; gap: 6px; align-items: center; margin: 10px 0 0; font-size: 0.85rem; color: var(--accent); }

/* Catálogo con fichas (inmuebles, habitaciones) */
.t-filter { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.t-filter button { border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.t-filter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.t-listings__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(24px, 3vw, 40px); }
.t-listing { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s cubic-bezier(.16,1,.3,1); }
.t-listing:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--fg) 45%, transparent); }
.t-listing[hidden] { display: none; }
.t-listing__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.t-listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.t-listing:hover .t-listing__media img { transform: scale(1.05); }
.t-listing__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.t-listing__tag { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.t-listing .t-h3 { margin: 0; }
.t-listing__sub { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--muted); font-size: 0.92rem; }
.t-listing__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.88rem; color: var(--muted); }
.t-listing__meta li { display: inline-flex; gap: 6px; align-items: center; }
.t-listing__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.t-listing__price { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.3rem; letter-spacing: var(--display-tracking); }
.t-listing__price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
@media (max-width: 960px) { .t-listings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .t-listings__grid { grid-template-columns: 1fr; } }

/* Horario de clases */
.t-schedule__tabs { display: none; }
.js .t-schedule__tabs { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin: clamp(24px, 3vw, 36px) 0 18px; padding-bottom: 4px; }
.t-schedule__tabs button { flex: none; scroll-snap-align: start; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.t-schedule__tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.t-schedule__day + .t-schedule__day { margin-top: 28px; }
.js .t-schedule__day + .t-schedule__day { margin-top: 0; }
.js .t-schedule__day[hidden] { display: none; }
.js .t-schedule__dayname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.t-schedule__day ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.t-class { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; }
.t-class + .t-class { border-top: 1px solid var(--line); }
.t-class__time { font-variant-numeric: tabular-nums; font-weight: 600; }
.t-class__name { font-weight: 600; }
.t-class__name em { font-style: normal; font-weight: 500; font-size: 0.8rem; color: var(--accent); margin-left: 10px; }
.t-class__coach { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .t-class { grid-template-columns: 70px 1fr; } .t-class__coach { grid-column: 2; margin-top: -10px; } }

/* Servicios en columnas: 3 o 6 elementos ocupan 3 columnas para no dejar huecos */
@media (min-width: 761px) {
  .t-services--columns .t-services__list:has(> :nth-child(3):last-child),
  .t-services--columns .t-services__list:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
