/* Propuesta de renovación: solo lo que se agrega o cambia sobre css/styles.css */

/* Aviso de vista previa */
.preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1500; display: flex; align-items: center; gap: 14px; background: var(--on-turquoise); color: var(--white); font-size: 12px; padding: 8px 10px 8px 16px; border-radius: 24px; box-shadow: 0 6px 24px rgba(11,46,44,0.25); }
.preview-bar button { font: 600 11px 'Open Sans', sans-serif; letter-spacing: 1px; text-transform: uppercase; background: var(--yellow); color: var(--dark); border: 0; border-radius: 18px; padding: 7px 14px; cursor: pointer; }
.chg { display: none; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 12px; margin-left: 8px; vertical-align: middle; }
.chg.cambia { background: var(--yellow); color: var(--dark); }
.chg.nuevo { background: var(--on-turquoise); color: var(--white); }
body.show-changes .chg { display: inline-block; }
body.show-changes .is-changed { outline: 2px dashed var(--yellow); outline-offset: 10px; border-radius: 6px; }

/* Portada: texto BLANCO sobre el turquesa oficial de We! (#00B7AF), como pidió la dueña.
   El blanco sobre este turquesa tiene poco contraste: se compensa con peso y una sombra suave. */
:root { --teal-manual: #00B7AF; --text-on-brand: 0 1px 2px rgba(0,70,66,0.4); }
.hero-overlay { background: linear-gradient(90deg, rgba(0,183,175,0.97) 0%, rgba(0,183,175,0.94) 38%, rgba(0,183,175,0.6) 62%, rgba(0,183,175,0.2) 82%, rgba(0,183,175,0.05) 100%); }
.hero-label { background: rgba(255,255,255,0.18); color: var(--white); border: 1px solid rgba(255,255,255,0.5); font-weight: 700; text-shadow: var(--text-on-brand); }
.hero-title, .hero-title em { color: var(--white); text-shadow: var(--text-on-brand); }
.hero-desc { color: var(--white); font-size: 16px; font-weight: 600; text-shadow: var(--text-on-brand); }
.btn-outline { border: 1.5px solid var(--white); color: var(--white); font-weight: 700; }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--turquoise-text); }
.hero a:focus-visible { outline-color: var(--yellow); }
@media (max-width: 768px) { .hero-overlay { background: rgba(0,183,175,0.95); } }

/* Cierre de "Cómo trabajamos": blanco sobre turquesa We! */
.method-result { background: var(--turquoise); }
.method-result p, .method-result p em { color: var(--white); font-weight: 600; text-shadow: var(--text-on-brand); }
.method-result p em { font-weight: 800; }

/* Páginas internas: franja superior más baja */
.hero.page-hero { height: auto; min-height: 340px; padding-top: 56px; padding-bottom: 56px; }
.page-hero .hero-title { font-size: clamp(26px, 3.4vw, 42px); }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--turquoise-text); }
.nav-links a[aria-current="page"]:not(.nav-cta)::after { width: 100%; }

/* Inicio: accesos a cada servicio */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--dark); }
.tile-img { position: relative; display: block; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.72); color: var(--white); font-size: 11px; font-style: normal; font-weight: 600; padding: 4px 9px; border-radius: 4px; }
.tile b { font-size: 16px; font-weight: 800; line-height: 1.3; }
.tile > span:last-child { font-size: 13px; font-weight: 700; color: var(--turquoise-text); }
.tile:hover > span:last-child { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more-link { margin-top: 28px; }
.more-link a { font-size: 14px; font-weight: 700; color: var(--turquoise-text); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Franja de cierre con llamado a cotizar */
.cta-band { background: var(--turquoise); padding: 64px 5vw; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; text-transform: uppercase; color: var(--white); max-width: 620px; text-shadow: var(--text-on-brand); }
@media (max-width: 1024px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .hero.page-hero { height: auto; min-height: 280px; } }

/* Quiénes somos: la diferencia está en la pregunta */
.ask-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 0; margin-top: 40px; border-top: 1px solid var(--border); }
.ask { padding: 28px 28px 30px 0; display: flex; flex-direction: column; gap: 10px; }
.ask + .ask { padding-left: 28px; border-left: 1px solid var(--border); }
.ask-who { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); }
.ask-quote { font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; line-height: 1.35; color: var(--dark); }
.ask-then { font-size: 14px; color: var(--text-light); margin-top: auto; }
.ask.we { background: var(--turquoise); border-radius: 8px; padding: 30px 32px 32px; border-left: 0; margin: -1px 0 0 12px; }
.ask.we .ask-who { color: var(--white); display: flex; align-items: center; gap: 8px; text-shadow: var(--text-on-brand); }
.ask.we .ask-who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.ask.we .ask-quote { color: var(--white); font-size: clamp(20px, 2vw, 25px); font-weight: 700; text-shadow: var(--text-on-brand); }
.ask.we .ask-then { color: var(--white); font-weight: 600; text-shadow: var(--text-on-brand); }
.who-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; margin-top: 46px; align-items: start; }
.who-body p { font-size: 15px; line-height: 1.85; color: var(--text); margin-bottom: 14px; }
.who-body .highlight { color: var(--turquoise-text); font-weight: 600; }
.chain { display: flex; flex-direction: column; gap: 14px; }
.chain-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.chain-row:last-child { border-bottom: 0; }
.chain-row b { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.chain-row b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.chain-row span { font-size: 14px; color: var(--text-light); line-height: 1.6; }
@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; border-top: 0; }
  .ask, .ask + .ask { padding: 20px 0; border-left: 0; border-top: 1px solid var(--border); }
  .ask.we { margin: 10px 0 0; padding: 24px; border-top: 0; }
  .who-body { grid-template-columns: 1fr; gap: 30px; }
}

/* Detalle amarillo: el punto final de los títulos */
.dot { color: var(--yellow); }
.hero-title .dot { color: var(--yellow); }
.section-heading .dot { -webkit-text-stroke: 0; }

/* Quiénes somos: Marca → Espacio → Realidad */
.mer { display: flex; flex-direction: column; gap: 18px; }
.mer-step { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.mer-circle { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mer-circle.c-turquoise { border: 2px solid var(--turquoise); background: var(--turquoise-light); }
.mer-circle.c-yellow { border: 2px solid var(--yellow); background: var(--yellow-soft); }
.mer-step h3 { font-size: 15px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); margin-bottom: 2px; }
.mer-step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.mer-arrow { width: 96px; display: flex; justify-content: center; }
.mer-arrow span { width: 2px; height: 22px; background: var(--yellow); position: relative; }
.mer-arrow span::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 8px; height: 8px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: translateX(-50%) rotate(45deg); }
.intro-quote { margin-top: 26px; padding-left: 18px; border-left: 1px solid var(--turquoise); font-size: 16px !important; font-weight: 600; color: var(--dark) !important; }

/* Servicios: subtítulo */
.services-sub { font-size: 15px; color: var(--text); margin-top: 12px; max-width: 620px; line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.service-tags span { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--turquoise-text); border: 1px solid rgba(0,116,126,0.35); border-radius: 16px; padding: 4px 12px; }

/* Proyectos destacados */
.projects { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 24px; margin-top: 44px; }
.project { position: relative; border-radius: 8px; overflow: hidden; background: var(--off-white); display: flex; flex-direction: column; }
.project:first-child { grid-row: span 2; }
.project-img { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.project:first-child .project-img { aspect-ratio: auto; flex: 1; min-height: 360px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.project:hover .project-img img { transform: scale(1.04); }
.project-body { padding: 20px 22px 24px; }
.project-meta { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquoise-text); margin-bottom: 6px; }
.project-body h3 { font-size: 19px; font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 8px; }
.project-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.project-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,0.72); color: var(--white); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 4px; }
.projects-note { margin-top: 18px; font-size: 13px; color: var(--text-light); }

/* Marcas que confían */
.brands { background: var(--off-white); padding-top: 60px; padding-bottom: 60px; }
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; margin-top: 26px; }
.brands-row span { font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; color: var(--dark); letter-spacing: 0.5px; white-space: nowrap; }
.brands-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); display: inline-block; }
.brands .section-label { justify-content: center; }
.brands .section-label::after { content: ''; width: 28px; height: 2px; background: var(--turquoise); }

/* Cómo trabajamos: número de paso */
.step-num { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--dark); background: var(--yellow); border-radius: 12px; padding: 2px 10px; display: inline-block; margin-bottom: 10px; }

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project:first-child { grid-row: auto; }
  .project:first-child .project-img { min-height: 0; aspect-ratio: 3/2; }
}
@media (max-width: 768px) {
  .preview-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; bottom: 86px; }
  .mer-step { grid-template-columns: 76px 1fr; }
  .mer-circle { width: 76px; height: 76px; }
  .mer-arrow { width: 76px; }
}

/* ============ LENGUAJE DE PLANO (líneas tipo plano del manual de marca) ============ */

/* Iconos isométricos propios */
.iso { display: block; width: 88px; height: 88px; }
.svc-ico .iso { width: 72px; height: 72px; margin: 0 0 10px -6px; }
.chain-row { grid-template-columns: 44px 100px 1fr; align-items: center; }
.chain-ico .iso { width: 44px; height: 44px; }
.chain-row b::before { display: none; }

/* Cómo trabajamos: pasos sobre una línea de cota */
.steps-wrap { position: relative; margin-top: 10px; padding-top: 34px; }
.steps-wrap::before { content: ''; position: absolute; top: 12px; left: 0; right: 0; height: 1px; background: var(--turquoise); }
.steps-wrap::after { content: ''; position: absolute; top: 5px; right: 0; width: 1px; height: 15px; background: var(--turquoise); }
.steps-dim { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); background: var(--white); padding: 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquoise-text); white-space: nowrap; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; }
.step::before { content: ''; position: absolute; top: -29px; left: 0; width: 1px; height: 15px; background: var(--turquoise); }
.step .iso { margin: 0 0 14px -8px; }
.step h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-light); line-height: 1.7; max-width: 240px; }
.method .method-result { margin-top: 56px; }

.service-images .render-badge, .project-tag, .tile-badge { top: 12px; left: 12px; }
.steps-dim { background: var(--white); }

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps-dim { font-size: 10px; letter-spacing: 1px; }
}


/* ============ PROYECTOS: lista estilo estudio ============ */
.pj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; }
.pj-filter button { font: 700 12px 'Open Sans', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dark); background: var(--white); border: 1px solid rgba(0,0,0,0.18); border-radius: 20px; padding: 9px 18px; cursor: pointer; transition: all .25s; }
.pj-filter button:hover { border-color: var(--turquoise); }
.pj-filter button[aria-pressed="true"] { background: var(--turquoise); border-color: var(--turquoise); color: var(--white); }
.pj-list { display: flex; flex-direction: column; gap: 110px; }
.pj { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pj:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.pj:nth-child(even) .pj-img { order: 2; }
.pj:nth-child(even) .pj-text { text-align: right; align-items: flex-end; }
.pj-img { position: relative; display: block; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.pj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.16,1,0.3,1); }
.pj:hover .pj-img img { transform: scale(1.04); }
.pj-badge { position: absolute; top: 12px; left: 12px; z-index: 5; background: rgba(0,0,0,0.72); color: var(--white); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 4px; }
.pj-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 6px; }
.pj-meta { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--turquoise-text); }
.pj-title { font-size: clamp(40px, 5.6vw, 84px); font-weight: 800; line-height: 0.95; letter-spacing: -1px; text-transform: uppercase; color: var(--dark); }
.pj-title a { color: inherit; text-decoration: none; }
.pj-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 6px; text-underline-offset: 8px; }
.pj-sub { font-size: 15px; color: var(--text-light); }
.pj-more { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--turquoise-text); text-decoration: none; }
.pj-more:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.pj-page .projects-note { margin-top: 90px; }

/* ============ PROYECTO: ficha ============ */
.pd { padding: 120px 5vw 40px; }
.pd-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--turquoise-text); text-decoration: none; margin-bottom: 40px; }
.pd-back:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.pd-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: start; margin-bottom: 64px; }
.pd-title { font-size: clamp(46px, 7vw, 104px); font-weight: 800; line-height: 0.92; letter-spacing: -1.5px; text-transform: uppercase; color: var(--dark); }
.pd-sub { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 22px; }
.pd-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--turquoise); margin-bottom: 26px; }
.pd-data div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.pd-data dt { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquoise-text); margin-bottom: 2px; }
.pd-data dd { font-size: 15px; color: var(--dark); font-weight: 600; }
.pd-text { font-size: 16px; line-height: 1.8; color: var(--text); max-width: 60ch; }
.pd-draft { margin-top: 14px; font-size: 12px; color: var(--text-light); font-style: italic; }
.tbd { display: inline-block; font-size: 12px; font-weight: 600; font-style: italic; color: #6b5800; background: var(--yellow-soft); border: 1px dashed var(--yellow); border-radius: 12px; padding: 1px 10px; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pd-shot { position: relative; border-radius: 6px; overflow: hidden; margin: 0; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.pd-shot .pj-badge { top: 16px; left: 16px; }
.pd-related { background: var(--off-white); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles-3 .tile-img { aspect-ratio: 4/3; }
.tile > span:last-child { color: var(--text-light); font-weight: 400; }

@media (max-width: 900px) {
  .pj, .pj:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .pj:nth-child(even) .pj-img { order: 0; }
  .pj:nth-child(even) .pj-text { text-align: left; align-items: flex-start; }
  .pj-list { gap: 70px; }
  .pd-head { grid-template-columns: 1fr; gap: 30px; }
  .pd-gallery, .tiles-3 { grid-template-columns: 1fr; }
}


/* ============ CLIENTES: franja en movimiento (logos a color; nombre mientras llega el logo) ============ */
.brands { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-left: 0; padding-right: 0; }
.logo-marquee { overflow: hidden; margin-top: 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { flex: 0 0 auto; height: 64px; display: flex; align-items: center; }
.logo-item img { max-height: 64px; max-width: 190px; width: auto; height: auto; }
.logo-item.word { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: var(--dark); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 30px 50px; } }

.brands .logo-marquee { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.project-body h3 a { color: inherit; text-decoration: none; }
.project-body h3 a::after { content: ""; position: absolute; inset: 0; }
.project:hover .project-body h3 a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ============ FRANJAS CON VIDEO: tres reels verticales detrás del texto ============ */
.hero-reels { position: absolute; top: 0; bottom: 0; right: 0; width: min(64%, 980px); z-index: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--turquoise); }
.hero-reels video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-reels video:nth-child(2) { transform: translateY(-4%); height: 108%; }
.hero.has-reels .hero-overlay { background: linear-gradient(90deg, rgba(0,183,175,1) 0%, rgba(0,183,175,0.98) 34%, rgba(0,183,175,0.55) 50%, rgba(0,183,175,0.12) 66%, rgba(0,183,175,0) 80%); }
/* Fotos con movimiento lento en las franjas sin video */
.kenburns img.active { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateX(-1.5%); } }
@media (max-width: 768px) {
  .hero-reels { width: 100%; grid-template-columns: repeat(3, 1fr); opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) { .kenburns img.active { animation: none; } }

/* ============ BLOG: próximamente ============ */
.soon-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.soon-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border-radius: 8px; background: var(--off-white); border: 1px dashed rgba(0,116,126,0.35); min-height: 210px; }
.soon-tag { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquoise-text); }
.soon-card b { font-size: 17px; line-height: 1.35; color: var(--dark); }
.soon-when { margin-top: auto; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--yellow); color: var(--dark); padding: 4px 10px; border-radius: 12px; }
.soon-note { margin-top: 30px; font-size: 15px; color: var(--text); }
.soon-note a { color: var(--turquoise-text); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 1024px) { .soon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .soon-list { grid-template-columns: 1fr; } }

/* Franja con UN video a todo lo ancho (reemplaza los tres reels) */
.hero-video { position: absolute; inset: 0; z-index: 0; background: var(--turquoise); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.has-reels .hero-overlay { background: linear-gradient(90deg, rgba(0,183,175,0.96) 0%, rgba(0,183,175,0.9) 32%, rgba(0,183,175,0.5) 55%, rgba(0,183,175,0.12) 78%, rgba(0,183,175,0.02) 100%); }
@media (max-width: 768px) { .hero.has-reels .hero-overlay { background: rgba(0,183,175,0.9); } }

/* ============ APROVECHAR EL ANCHO: fotos a todo lo ancho, textos contenidos ============ */
/* Lista de proyectos: la foto llega al borde de la pantalla por su lado */
.pj-page .section-narrow { max-width: none; }
.pj-list { gap: 9vw; }
.pj, .pj:nth-child(even) { gap: 4vw; align-items: center; }
.pj { grid-template-columns: minmax(0, 64vw) minmax(0, 1fr); margin-left: -5vw; }
.pj:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 64vw); margin-left: 0; margin-right: -5vw; }
.pj-img { aspect-ratio: 3 / 2; border-radius: 0; }
.pj .pj-text { max-width: 460px; }
.pj:nth-child(even) .pj-text { justify-self: end; }
.pj-filter { max-width: 1100px; margin-left: auto; margin-right: auto; }
.pj-page .projects-note { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Ficha de proyecto: galería de borde a borde */
.pd-gallery { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 1.2vw; gap: 1.2vw; }
.pd-shot { border-radius: 0; }
.pd-wide { aspect-ratio: 21 / 9; }

/* Inicio: proyectos destacados y accesos a servicios más anchos */
.projects .projects-grid, .services .tiles { margin-left: calc(50% - 47vw); margin-right: calc(50% - 47vw); }
.projects .projects-grid { gap: 1.2vw; }
.project, .tile-img { border-radius: 4px; }
.projects-grid .project:first-child .project-img { min-height: 520px; }

/* Servicios: la galería crece hacia el borde */
@media (min-width: 1025px) {
  .services .service-block { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); margin-right: calc(50% - 50vw); gap: 4vw; }
  .services .service-block.reverse { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); margin-right: 0; margin-left: calc(50% - 50vw); }
  .services .service-images { border-radius: 0; aspect-ratio: 16 / 10; }
  .services .service-images img { border-radius: 0; }
}
@media (max-width: 900px) {
  .pj, .pj:nth-child(even) { grid-template-columns: 1fr; margin: 0 -5vw; }
  .pj-text, .pj:nth-child(even) .pj-text { padding: 0 5vw; justify-self: start; }
  .projects .projects-grid, .services .tiles { margin-left: 0; margin-right: 0; }
}

.pd-gallery .pd-shot:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* Fotos grandes pero con aire: margen fino hasta el borde de la pantalla */
:root { --aire: clamp(14px, 2.2vw, 36px); }
.pj { margin-left: calc(-5vw + var(--aire)); }
.pj:nth-child(even) { margin-left: 0; margin-right: calc(-5vw + var(--aire)); }
.pj-img, .pd-shot, .services .service-images, .services .service-images img { border-radius: 6px; }
.pd-gallery { padding: 0 var(--aire); gap: var(--aire); }
.projects .projects-grid, .services .tiles { margin-left: calc(50% - 50vw + var(--aire)); margin-right: calc(50% - 50vw + var(--aire)); }
@media (min-width: 1025px) {
  .services .service-block { margin-right: calc(50% - 50vw + var(--aire)); }
  .services .service-block.reverse { margin-right: 0; margin-left: calc(50% - 50vw + var(--aire)); }
}
@media (max-width: 900px) {
  .pj, .pj:nth-child(even) { margin: 0 calc(-5vw + var(--aire)); }
}

/* Solo fotos horizontales: los accesos del Inicio pasan de 4:5 a 4:3 */
.tile-img { aspect-ratio: 4 / 3; }

/* ============ Página de cliente con varios stands (Fajas M&D) ============ */
.md-stand { margin-top: 96px; }
.md-stand-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px; align-items: end; margin-bottom: 24px; border-top: 1px solid var(--turquoise); padding-top: 18px; }
.md-meta { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquoise-text); }
.md-stand-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.1; color: var(--dark); }
.md-stand-head p { font-size: 16px; line-height: 1.6; color: var(--text); max-width: 56ch; }
.md-grid { display: grid; gap: 12px; grid-template-columns: var(--cols); align-items: start; margin-right: -5vw; }
.md-shot { position: relative; margin: 0; border-radius: 4px; overflow: hidden; background: var(--border); }
.md-shot img, .md-shot video { width: 100%; height: auto; display: block; }
.md-shot .pj-badge { position: absolute; top: 12px; left: 12px; z-index: 1; }
.md-mas { margin-top: 96px; border-top: 1px solid var(--turquoise); padding-top: 18px; }
.md-mas-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.md-mini-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.md-mini { margin: 0; }
.md-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.md-mini figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--dark); }
@media (max-width: 900px) {
  .md-stand { margin-top: 64px; }
  .md-stand-head { grid-template-columns: 1fr; }
  .md-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-right: 0; }
  .md-mini-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Franja de Proyectos: render a todo lo ancho (2:1), título blanco abajo a la izquierda sobre el fondo oscuro del render */
.hero.hero-split { width: 100%; height: auto; min-height: 0; aspect-ratio: 2 / 1; max-height: 82vh; padding: 0; background: #0b0b0f; display: flex; align-items: flex-end; }
.hero.hero-split .hero-video { background: #0b0b0f; }
.hero.hero-split .hero-video video { object-position: center 20%; }
.hero.hero-split .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 32%, rgba(0,0,0,0) 55%), linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 45%); }
.hero.hero-split .hero-content { margin: 0 0 0 6vw; max-width: 46vw; padding-bottom: clamp(28px, 5vw, 64px); }
.hero.hero-split .hero-title { color: #fff; }
@media (max-width: 768px) {
  .hero.hero-split { aspect-ratio: auto; min-height: 460px; }
  .hero.hero-split .hero-content { max-width: none; margin: 0 20px; }
  .hero.hero-split .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0) 75%); }
}

/* ============ Proyecto contado como historia (Fajas M&D) ============ */
.st { padding: 120px 5vw 40px; }
.st-head { max-width: 980px; }
.st-client { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--turquoise-text); margin-bottom: 14px; }
.st-title { font-size: clamp(44px, 7vw, 104px); font-weight: 800; line-height: 0.95; letter-spacing: -1.5px; text-transform: uppercase; color: var(--dark); }
.st-title em { font-style: normal; color: var(--turquoise-text); }
.st-bajada { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--text-light); }
.st-cover { margin: 48px -5vw 0; }
.st-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 58%; display: block; }
.st-entrada { font-size: clamp(26px, 3.4vw, 48px); font-weight: 700; line-height: 1.18; color: var(--dark); max-width: 24ch; margin: clamp(64px, 9vw, 130px) 0; }
.st-moment { margin-bottom: clamp(72px, 9vw, 130px); }
.st-h { display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.1; color: var(--dark); margin-bottom: 14px; }
.st-n { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--turquoise-text); }
.st-p { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 54ch; margin-bottom: 28px; }
.st-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; margin-right: calc(-5vw + var(--aire)); }
.st-shot { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--border); }
.st-shot img, .st-shot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-shot .pj-badge { z-index: 1; }
.st-gal .st-h { margin-bottom: 24px; }
.st-masonry { columns: 3 260px; column-gap: 12px; margin-right: calc(-5vw + var(--aire)); }
.st-g { margin: 0 0 12px; break-inside: avoid; border-radius: 4px; overflow: hidden; }
.st-g img { width: 100%; height: auto; display: block; }
.st-cierre { font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; color: var(--dark); max-width: 30ch; margin: clamp(72px, 9vw, 120px) 0 18px; border-top: 1px solid var(--turquoise); padding-top: 28px; }
@media (max-width: 768px) {
  .st { padding-top: 96px; }
  .st-bajada { font-size: 14px; }
  .st-cover img { aspect-ratio: 4 / 3; }
  .st-row { grid-template-columns: 1fr 1fr; margin-right: 0; }
  .st-row .st-shot:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .st-masonry { columns: 2; margin-right: 0; }
  .st-p { font-size: 16px; }
}

/* Historia: fotos en pareja más bajas; video vertical junto a su texto */
.st-row[style*="--n: 2"] .st-shot { aspect-ratio: 1 / 1; }
.st-reel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(72px, 9vw, 130px); }
.st-reel-media { margin: 0; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.st-reel-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .st-reel { grid-template-columns: 1fr; }
  .st-reel-media { max-width: 360px; width: 100%; justify-self: center; }
  .st-row[style*="--n: 2"] .st-shot:first-child { aspect-ratio: 1 / 1; }
}

/* ============ Historias v2: sin recortes, composición editorial alternada ============ */
.st-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; margin-right: calc(-5vw + var(--aire)); }
.st-hero.tall { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.st-hero-text { max-width: 620px; }
.st-hero .st-title { font-size: clamp(40px, 5.6vw, 92px); }
.st-hero .st-entrada { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; line-height: 1.45; max-width: 34ch; margin: 28px 0 0; color: var(--text); }
.st-hero-media { margin: 0; justify-self: end; }
.st-hero-media img { display: block; width: auto; max-width: 100%; max-height: 84vh; height: auto; border-radius: 4px; }
.st-hero-media.is-video { width: min(100%, calc(84vh * 9 / 16)); aspect-ratio: 9 / 16; background: #000; border-radius: 6px; overflow: hidden; }
.st-hero-media.is-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.st-reto { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; line-height: 1.3; color: var(--dark); max-width: 30ch; margin: clamp(80px, 10vw, 150px) 0; }
.st-reto::before { content: ""; display: block; width: 56px; height: 4px; background: var(--yellow); margin-bottom: 22px; }
.acc + .section-narrow > .st-moment:first-of-type, .st-hero + .section-narrow > .st-moment:first-child, .st-hero + .section-narrow > .st-moment:first-of-type { margin-top: clamp(80px, 10vw, 150px); }

.st-moment { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: clamp(90px, 11vw, 170px); }
.st-text { grid-column: 1 / span 4; grid-row: 1; position: sticky; top: 110px; }
.st-text .st-n { display: block; margin-bottom: 10px; }
.st-text .st-h { display: block; }
.st-text .st-p { margin-bottom: 0; }
.st-media { grid-column: 5 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; margin-right: calc(-5vw + var(--aire)); }
.st-moment.flip .st-text { grid-column: 9 / -1; }
.st-moment.flip .st-media { grid-column: 1 / span 8; margin-right: 0; margin-left: calc(-5vw + var(--aire)); }
.st-shot { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: auto; background: none; }
.st-shot img, .st-shot video { width: 100%; height: auto; display: block; }
.st-shot.is-video { background: #000; }
.st-media .s1 { grid-column: 1 / span 7; }
.st-media .s2 { grid-column: 8 / -1; margin-top: 22%; }
.st-media .s3 { grid-column: 3 / span 6; }
.st-media .s4 { grid-column: 9 / -1; margin-top: 14%; }
.st-moment.flip .st-media .s1 { grid-column: 6 / -1; }
.st-moment.flip .st-media .s2 { grid-column: 1 / span 5; grid-row: 1; margin-top: 22%; }
.st-moment.flip .st-media .s3 { grid-column: 4 / span 6; }
.st-gal { margin-top: clamp(40px, 6vw, 90px); }
@media (max-width: 900px) {
  .st-hero, .st-hero.tall { grid-template-columns: 1fr; margin-right: 0; }
  .st-hero-media { justify-self: stretch; }
  .st-hero-media img { width: 100%; max-height: none; }
  .st-hero-media.is-video { width: min(100%, 380px); justify-self: center; }
  .st-moment { grid-template-columns: 1fr; gap: 20px; }
  .st-text, .st-moment.flip .st-text { grid-column: 1; position: static; }
  .st-media, .st-moment.flip .st-media { grid-column: 1; grid-row: 2; margin: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-media .st-shot, .st-moment.flip .st-media .st-shot { grid-column: auto; grid-row: auto; margin-top: 0; }
  .st-media .s1, .st-moment.flip .st-media .s1 { grid-column: 1 / -1; }
}

/* ============ Historias v2: carrusel de fotos (una foto completa a la vez, sin recortes) ============ */
.st-carr { --h: min(76vh, 700px); align-items: center; }
.st-carr .st-text { position: static; }
.st-carrusel { grid-column: 5 / -1; grid-row: 1; min-width: 0; }
.st-carr.flip .st-carrusel { grid-column: 1 / span 8; }
.st-stage { position: relative; height: var(--h); }
.st-slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.st-slide.on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.st-slide img, .st-slide video { display: block; max-width: 100%; max-height: calc(100% - 32px); width: auto; height: auto; border-radius: 4px; }
.st-slide.is-video video { height: calc(100% - 32px); aspect-ratio: 9 / 16; background: #000; }
.st-slide .pj-badge { z-index: 1; }
.st-slide figcaption { font-size: 13px; letter-spacing: .04em; color: var(--text); margin-top: 12px; line-height: 20px; }
.st-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.st-count { font-size: 13px; letter-spacing: .08em; color: var(--text); min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; }
.st-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--dark); background: transparent; color: var(--dark); font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.st-ctrl button:hover, .st-ctrl button:focus-visible { background: var(--dark); color: #fff; }
@media (max-width: 900px) {
  .st-carr { --h: min(66vh, 125vw); grid-template-columns: minmax(0, 1fr); }
  .st-carrusel, .st-carr.flip .st-carrusel { grid-column: 1; grid-row: 2; }
}

/* ============ Historias v2: portada en acordeón (un panel por feria que se despliega) ============ */
.st-hero.wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; margin-right: 0; }
.st-hero.wide .st-hero-text { max-width: none; display: contents; }
.st-hero.wide .st-client, .st-hero.wide .st-title, .st-hero.wide .st-bajada { grid-column: 1; }
.st-hero.wide .st-title { font-size: clamp(40px, 4.8vw, 80px); margin-bottom: 14px; }
.st-hero.wide .st-entrada { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0 0 6px; }
.acc { --H: clamp(400px, 64vh, 660px); display: flex; gap: 10px; height: var(--H); margin: clamp(28px, 3vw, 44px) calc(-5vw + var(--aire)) 0; }
.acc-panel { position: relative; flex: 1 1 0; min-width: 34px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--dark); color: #fff; text-align: left; font: inherit; transition: flex-grow .8s cubic-bezier(.2,.7,.2,1), flex-basis .8s cubic-bezier(.2,.7,.2,1); }
.acc-panel.on { flex: 0 1 calc(var(--H) * var(--ar, 1)); cursor: default; background: #efeaf6; }
.acc-panel.on img { object-fit: contain; }
.acc-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.75) brightness(.8); }
.acc-panel.on img { filter: none; }
.acc-panel:not(.on):hover img { filter: saturate(.9) brightness(.9); scale: 1.04; }
.acc-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 30, .72), rgba(12, 10, 30, 0) 45%); pointer-events: none; }
.acc-panel:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.acc-panel.on .acc-info { position: absolute; left: clamp(20px, 2.4vw, 36px); right: 20px; bottom: clamp(20px, 2.4vw, 32px); z-index: 1; display: flex; flex-direction: column; gap: 4px; opacity: 0; translate: 0 14px; transition: opacity .4s, translate .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.acc-panel.on .acc-info { opacity: 1; translate: 0 0; transition-delay: .35s; }
.st-hero.side { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
.st-hero.side .st-title { font-size: clamp(38px, 4vw, 66px); }
.st-hero.side .acc { --H: min(76vh, 660px, calc(58vw - 290px)); margin: 0; gap: 6px; }
.st-hero.side .acc-panel { min-width: 22px; }
.st-opc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: 24px; font-size: 12px; color: var(--text); }
.st-opc a { padding: 5px 12px; border: 1px solid var(--dark); border-radius: 20px; color: var(--dark); text-decoration: none; }
.st-opc a[aria-current] { background: var(--dark); color: #fff; }
.acc-sector { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.acc-feria { font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; line-height: 1.05; }
.acc-anio { font-size: 15px; opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .acc-panel, .acc-panel img, .acc-info { transition: none; }
}
@media (max-width: 900px) {
  .st-hero.wide, .st-hero.side { grid-template-columns: 1fr; }
  .st-hero.side .acc { height: auto; margin-top: 28px; }
  .st-opc { margin: 12px 0 0; }
  .st-hero.wide .st-entrada { grid-column: 1; grid-row: auto; margin-top: 20px; }
  .acc { flex-direction: column; height: auto; margin: 32px 0 0; gap: 8px; }
  .acc-panel { flex: none; height: 56px; transition: height .7s cubic-bezier(.2,.7,.2,1); }
  .acc-panel.on { height: calc((100vw - 32px) / var(--ar, 1)); flex: none; }
  }

/* ============ Historias v2: video de portada con audio ============ */
.st-hero-media.is-video { position: relative; }
.st-sound { position: absolute; left: 50%; bottom: 64px; translate: -50% 0; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 28px; background: var(--yellow); color: var(--dark); font: 700 14px 'Open Sans', sans-serif; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); white-space: nowrap; }
.st-sound::before { content: "▶"; font-size: 11px; line-height: 1; }
.st-sound:hover, .st-sound:focus-visible { background: #fff; }
.st-sound[hidden] { display: none; }

/* ============ Historias v2: mood board de dirección de arte (vertical, al lado del texto) ============ */
.st-mood { align-items: center; }
.st-mood .st-text { grid-column: 1 / span 5; position: static; }
.mbd-board { grid-column: 7 / -1; grid-row: 1; margin: 0; justify-self: center; }
.mbd-board img { display: block; width: 100%; max-width: 560px; max-height: 88vh; height: auto; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 900px) {
  .st-mood { grid-template-columns: minmax(0, 1fr); }
  .st-mood .st-text { grid-column: 1; }
  .mbd-board { grid-column: 1; grid-row: 2; }
}

/* ============ Historias v2: portada en díptico, bloque de video y tarjetas de experiencias ============ */
.st-dip { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; margin: clamp(28px, 3vw, 44px) calc(-5vw + var(--aire)) 0; }
.st-dip img { display: block; width: calc(min(82vh, 900px) * .75); max-width: calc(50% - 6px); height: auto; border-radius: 4px; }
.st-vid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; margin: 0 0 clamp(90px, 11vw, 170px); }
.st-vid .st-hero-media.is-video { width: min(100%, calc(78vh * 9 / 16)); justify-self: start; }
.st-vid-text { max-width: 44ch; }
.st-cards .st-text { grid-column: 1 / span 7; position: static; }
.st-cardgrid { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.st-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(40, 30, 60, .08), 0 8px 24px rgba(40, 30, 60, .06); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.st-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(40, 30, 60, .08), 0 16px 36px rgba(40, 30, 60, .12); }
.st-card img { display: block; width: 100%; height: auto; }
.st-card-k { margin: 16px 18px 2px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise-text); }
.st-card h3 { margin: 0 18px 6px; font-size: 20px; color: var(--dark); }
.st-card p:last-child { margin: 0 18px 20px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.st-cards.active .st-card { animation: mbd-in .8s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 120ms) both; }
@media (max-width: 900px) {
  .st-dip { margin: 28px 0 0; }
  .st-vid { grid-template-columns: 1fr; }
  .st-vid .st-hero-media.is-video { justify-self: center; width: min(100%, 380px); }
  .st-cards .st-text { grid-column: 1; }
  .st-cardgrid { grid-column: 1; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 520px) { .st-cardgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .st-cards.active .st-card { animation: none; } .st-card { transition: none; } }

/* Protección básica de imágenes (ver propuesta.js) */
img, video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ============ Historias v2: portada diagramada (título arriba, ficha técnica abajo, alineados con la imagen) ============ */
.st-hero.side, .st-hero.tall { align-items: stretch; }
.st-hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 4vh, 56px); }
.st-hero-top .st-entrada { margin-top: clamp(18px, 2.4vh, 28px); }
.st-ficha { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid rgba(40, 30, 60, .16); }
.st-ficha div { padding: 14px 0 13px; border-bottom: 1px solid rgba(40, 30, 60, .16); }
.st-ficha dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.st-ficha dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--dark); }
.st-hero.side .st-hero-text, .st-hero.tall .st-hero-text { max-width: 560px; }
@media (max-width: 900px) {
  .st-hero-text { gap: 28px; }
}
.st-hero .st-title, .st-hero.side .st-title { font-size: clamp(38px, 4.4vw, 70px); }
.st-hero.tall { grid-template-columns: minmax(0, 1fr) auto; }
.st-hero.tall .st-hero-media.is-video { width: calc(min(76vh, 760px) * 9 / 16); }
@media (max-width: 900px) {
  .st-hero.tall { grid-template-columns: 1fr; }
  .st-hero.tall .st-hero-media.is-video { width: min(100%, 380px); }
}

/* ============ Historias v2: lámina (mood board al lado del texto) con fotos debajo ============ */
.st-lam { align-items: center; }
.st-lam .st-text { grid-column: 1 / span 5; grid-row: 1; position: static; }
.st-lamina { grid-column: 7 / -1; grid-row: 1; margin: 0; }
.st-lamina img { display: block; width: 100%; height: auto; border-radius: 4px; }
.st-row { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 16px; align-items: flex-start; margin-top: clamp(24px, 3vw, 44px); }
.st-rowshot { flex: 1 1 0; min-width: 0; margin: 0; }
.st-rowshot img { display: block; width: 100%; height: auto; border-radius: 4px; }
.st-card h3 { margin-bottom: 20px; }
@media (max-width: 900px) {
  .st-lam { grid-template-columns: minmax(0, 1fr); }
  .st-lam .st-text, .st-lamina, .st-row { grid-column: 1; grid-row: auto; }
  .st-row { flex-wrap: wrap; }
  .st-rowshot { flex: 1 1 calc(50% - 8px); }
}

.st-hero:not(.tall):not(.side) { align-items: stretch; }
.st-hero:not(.tall):not(.side) .st-hero-media img { max-height: 80vh; }
.pj[hidden] { display: none !important; }
.footer-rights { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.5; opacity: .8; max-width: 70ch; }

/* Proyecto sin página propia: fotos y descripción en la lista */
.pj-ficha .pj-fotos { aspect-ratio: auto; display: flex; gap: 10px; align-items: flex-start; border-radius: 0; overflow: visible; }
.pj-ficha .pj-fotos img { min-width: 0; width: 100%; height: auto; border-radius: 6px; transition: none; }
.pj-ficha:hover .pj-fotos img { transform: none; }
/* Ficha ancha (Pamodiz): texto arriba y fotos a todo el ancho para que se vean grandes */
.pj.pj-ancha, .pj.pj-ancha:nth-child(even) { grid-template-columns: minmax(0, 1fr); margin: 0; gap: 28px; }
.pj.pj-ancha .pj-text, .pj.pj-ancha:nth-child(even) .pj-text { order: -1; max-width: none; justify-self: start; text-align: left; align-items: flex-start; }
.pj.pj-ancha .pj-fotos { order: 0; gap: 14px; width: 100%; max-width: calc(min(78vh, 760px) * var(--r, 3)); }
.pj-desc { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--text); max-width: 46ch; }
@media (max-width: 700px) {
  .pj-ficha .pj-fotos { flex-wrap: wrap; }
  .pj-ficha .pj-fotos img { flex: 1 1 calc(50% - 5px) !important; }
}
.con-badge { position: relative; }
/* Carrusel sin texto (solo imágenes, a todo el ancho) */
.st-carr.solo .st-carrusel { grid-column: 1 / -1; grid-row: 1; }
/* Títulos de la lista de proyectos: todos del mismo tamaño, que quepa la palabra más larga (Technologies) */
.pj .pj-title, .pj .pj-title.pj-title-s { font-size: clamp(30px, 3.1vw, 56px); }
/* Franja con imagen fija (mientras llegan los videos) */
.hero-video.hero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Franja final "¿Tienes una feria…?": el signo de cierre en blanco, como el resto del texto */
.cta-band h2 .dot { color: var(--white); }
/* Logos redondos o compactos: un poco más grandes para que se lean igual que los alargados */
.logo-item { height: 88px; }
.logo-item img[src*="kbs-laboratorio"] { max-height: 88px; }

/* Inicio: proyectos destacados (30/09/2026) — tres tarjetas iguales, sin ocupar todo el ancho */
.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hp-head .section-heading { margin-bottom: 0; }
.hp-head .more-link { margin: 0 0 6px; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.hp-card { display: flex; flex-direction: column; text-decoration: none; color: var(--dark); }
.hp-img { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.hp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.hp-card:hover .hp-img img { transform: scale(1.04); }
.hp-meta { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--turquoise-text); margin-bottom: 6px; }
.hp-card b { font-size: 19px; font-weight: 800; line-height: 1.25; }
.hp-sub { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-top: 4px; }
.hp-card:hover b { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 900px) { .hp-grid { grid-template-columns: 1fr; gap: 36px; } }
