/* ============================================
   XOTX STUDIO — Tokens
   ============================================ */
:root{
  --black: #0a0a0a;
  --ink: #141311;
  --white: #f7f5f1;
  --paper: #efece5;
  --orange: #ff5a1f;
  --gray: #8a877f;
  --line: rgba(10,10,10,0.14);
  --line-inv: rgba(247,245,241,0.18);

  --display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --body: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(20px, 4vw, 64px);
  --dur-slow: 1.1s;
  --ease: cubic-bezier(.16,.8,.24,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ background: var(--white); }
html.lenis{ height: auto; }
html.lenis, html.lenis body{ height: auto; }

body{
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  cursor: default;
}

::selection{ background: var(--orange); color: var(--white); }

a{ color: inherit; text-decoration: none; }
ul,ol{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }
img{ max-width: 100%; display: block; }

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--black); color: var(--white); padding: 12px 20px; z-index: 999;
}
.skip-link:focus{ left: var(--edge); top: var(--edge); }

:focus-visible{ outline: 2px solid var(--orange); outline-offset: 3px; }

/* ============================================
   Cursor
   ============================================ */
.cursor{
  position: fixed; top:0; left:0; width: 9px; height: 9px;
  background: var(--orange); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), opacity .2s;
  mix-blend-mode: normal;
  opacity: 0;
}
.cursor.active{ opacity: 1; }
.cursor.grow{ width: 46px; height: 46px; background: transparent; border: 1.4px solid var(--orange); }
@media (hover:none){ .cursor{ display:none; } }

/* ============================================
   Progress rail (signage tube)
   ============================================ */
.rail{
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: transparent; z-index: 998;
}
.rail-fill{
  height: 100%; width: 100%;
  background: var(--orange);
  box-shadow: 0 0 8px 1px rgba(255,90,31,.6);
  transform-origin: left;
  transform: scaleX(0);
}

/* ============================================
   Intro
   ============================================ */
.intro{
  position: fixed; inset: 0; z-index: 1000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.intro-mark{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 12vw, 160px);
  letter-spacing: -0.02em;
  color: rgba(247,245,241,0.14);
}
.intro-mark .lit{ color: var(--white); }
.intro-mark .lit.orange{ color: var(--orange); }

/* ============================================
   Header
   ============================================ */
.site-header{
  position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--edge);
  background: rgba(247,245,241,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo{
  font-family: var(--display); font-weight: 600;
  font-size: 18px; letter-spacing: 0.02em; color: var(--black);
}
.logo .dot{ color: var(--orange); }
.site-nav{ display: flex; gap: 36px; align-items: center; }
.site-nav a{
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--black); position: relative; padding-bottom: 3px;
}
.site-nav a::after{
  content:''; position:absolute; left:0; bottom:0; width:0; height:1px;
  background: var(--black); transition: width .3s var(--ease);
}
.site-nav a:hover::after{ width: 100%; }
.nav-cta{ opacity: 0.9; }

.menu-btn{
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 20px; position: relative; z-index: 600;
  flex-direction: column; justify-content: space-between; padding: 0;
}
.menu-btn span{
  display:block; height: 1.4px; width: 100%; background: var(--black);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-btn[aria-expanded="true"] span:first-child{ transform: translateY(9px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child{ transform: translateY(-9px) rotate(-45deg); }

.mobile-nav{
  position: fixed; inset: 0; background: var(--black); z-index: 490;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 18px; padding: var(--edge);
  transform: translateY(-100%); transition: transform .55s var(--ease);
}
.mobile-nav.open{ transform: translateY(0); }
.mobile-nav a{
  color: var(--white); font-family: var(--display); font-size: 34px; font-weight: 500;
}

/* ============================================
   Section labels / shared
   ============================================ */
.section-label{
  display: inline-block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gray); margin-bottom: 18px;
}
.accent{ color: var(--orange); }
.strike{ position: relative; color: var(--gray); }
.strike::after{
  content:''; position:absolute; left:-2%; right:-2%; top: 52%; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
}
.strike.struck::after{ transform: scaleX(1); transition: transform .7s var(--ease); }

main, footer{ position: relative; background: var(--white); }

/* ============================================
   01 HERO
   ============================================ */
.hero{
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--edge) 56px;
  position: relative;
}
.hero-eyebrow{
  position: absolute; top: 110px; left: var(--edge);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gray); max-width: 220px;
}
.hero-title{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(52px, 10.4vw, 168px);
  line-height: 0.92; letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.hero-title .line{ display: block; overflow: hidden; }
.hero-title em{ font-style: normal; color: var(--orange); }
.hero-foot{
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero-sub{ font-size: 16px; color: var(--ink); max-width: 320px; }
.hero-scroll{
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
.hero-scroll svg{ animation: bob 1.8s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(4px);} }

/* ============================================
   02 MANIFESTO
   ============================================ */
.manifesto{
  min-height: 90svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px var(--edge);
}
.manifesto-text{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(38px, 7.2vw, 104px); line-height: 1.02; letter-spacing: -0.015em;
}
.manifesto-note{
  margin-top: 34px; max-width: 420px; color: var(--gray);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -0.01em; line-height: 1.15;
}

/* ============================================
   03 SHIFT
   ============================================ */
.shift{ position: relative; }
.shift-track{
  height: 100svh; display: flex; position: sticky; top: 0; overflow: hidden;
}
.shift-panel{
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 64px var(--edge); position: relative;
}
.shift-before{ background: var(--paper); color: var(--black); }
.shift-after{ background: var(--black); color: var(--white); }
.shift-tag{ font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .55; margin-bottom: 14px; }
.shift-panel h2{
  font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5.2vw, 76px);
  letter-spacing: -0.02em; margin-bottom: 16px;
}
.shift-panel p{ max-width: 320px; font-size: 15px; opacity: .78; }

/* ============================================
   04 SERVICES
   ============================================ */
.services{ padding: 160px var(--edge) 80px; position: relative; }
.services-head h2{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 5.6vw, 68px); letter-spacing: -0.02em; margin-bottom: 90px;
}
.services-list{ border-top: 1px solid var(--line); }
.service-row{
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; overflow: hidden; position: relative;
}
.service-name{
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 4.4vw, 52px); letter-spacing: -0.01em;
  transition: transform .5s var(--ease), color .4s;
}
.service-desc{
  font-size: 14px; color: var(--gray); max-width: 260px; text-align: right;
  transition: color .4s;
}
.service-row:hover .service-name{ color: var(--orange); transform: translateX(14px); }

/* ============================================
   05 TICKER
   ============================================ */
.ticker{
  background: var(--black); color: var(--white);
  padding: 26px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track{ display: inline-flex; will-change: transform; }
.ticker-track span{
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 3vw, 30px); letter-spacing: 0.01em;
  color: var(--orange); padding-right: 6px;
}

/* ============================================
   06 WORK
   ============================================ */
.work{ padding: 140px 0 60px; }
.work-head{ padding: 0 var(--edge); margin-bottom: 70px; }
.work-head h2{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 5.6vw, 68px); letter-spacing: -0.02em;
}
.project{
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 60px var(--edge); border-top: 1px solid var(--line); position: relative;
}
.project-plate{
  width: 100%; aspect-ratio: 16/8.5; position: relative; overflow: hidden;
  margin-bottom: 36px; background: var(--black);
  display: flex; align-items: center; justify-content: center;
}
.plate-label{
  font-family: var(--display); font-weight: 700; color: rgba(247,245,241,0.16);
  font-size: clamp(48px, 9vw, 130px); letter-spacing: 0.01em;
}
.plate-a{ background: linear-gradient(135deg,#171512,#0a0a0a 60%); }
.plate-b{ background: linear-gradient(135deg,#12100e,#241d16 70%); }
.plate-c{ background: linear-gradient(135deg,#0e0d0c,#1c1a17 65%); }
.plate-d{ background: linear-gradient(135deg,#181410,#2a1a10 70%); }
.plate-e{ background: linear-gradient(135deg,#14120f,#1f1a12 65%); }
.plate-f{ background: linear-gradient(135deg,#100f0d,#221d1a 70%); }
.plate-a .plate-label, .plate-b .plate-label, .plate-c .plate-label, .plate-d .plate-label{ color: rgba(255,90,31,0.14); }

/* ---- Work list: índice editorial compacto y escalable ---- */
.work-list{ border-top: 1px solid var(--line); }
.work-row{
  display: grid;
  grid-template-columns: 50px 1fr auto 28px;
  align-items: center; gap: 28px;
  padding: 26px var(--edge); border-bottom: 1px solid var(--line);
  position: relative;
}
.row-num{ font-size: 13px; color: var(--gray); }
.row-title{
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px); letter-spacing: -0.01em;
  transition: transform .4s var(--ease), color .4s;
}
.row-tags{ font-size: 13px; color: var(--gray); text-align: right; white-space: nowrap; }
.row-arrow{
  font-size: 18px; color: var(--gray); justify-self: end;
  transition: transform .4s var(--ease), color .4s;
}
.work-row:hover .row-title{ color: var(--orange); transform: translateX(10px); }
.work-row:hover .row-arrow{ color: var(--orange); transform: rotate(45deg); }

/* ---- Marcas que confían ---- */
.trust{
  background: var(--black); color: var(--white);
  padding: 120px var(--edge) 100px; text-align: center;
}
.trust .section-label{ color: rgba(247,245,241,0.45); }
.trust-title{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 5.2vw, 60px);
  letter-spacing: -0.02em;
  margin-bottom: 64px;

  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.trust-logos{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; max-width: 900px; margin: 0 auto;
}
.trust-logos li{
  flex: 1 1 auto; min-width: 140px;
  padding: 34px 20px; 
  border-right: 1px solid var(--line-inv);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.01em;
  color: rgba(247,245,241,0.85);
  transition: color .35s;
}
.trust-logos li:hover{ color: var(--orange); }

/* ============================================
   PROJECT PAGE (proyecto-*.html)
   ============================================ */
.back-link{
  position: fixed; top: 24px; right: var(--edge); z-index: 480;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--black);
}
.p-hero{
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--edge) 56px;
}
.p-eyebrow{
  position: absolute; top: 110px; left: var(--edge);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray);
}
.p-title{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(42px, 8.6vw, 128px); line-height: 0.96; letter-spacing: -0.02em;
  margin-bottom: 28px; overflow: hidden;
}
.p-title span{ display: block; }
.p-tagline{ font-size: clamp(16px,1.8vw,20px); color: var(--ink); max-width: 480px; margin-bottom: 34px; }
.p-meta{ display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.p-meta div span{ display:block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 6px; }
.p-meta div p{ font-size: 14px; }

.p-plate{
  width: 100%; aspect-ratio: 16/9; background: var(--black);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.p-plate span{
  font-family: var(--display); font-weight: 700; color: rgba(255,90,31,0.14);
  font-size: clamp(60px, 11vw, 160px);
}
.p-plate.tall{ aspect-ratio: 3/4; }

.p-section{ padding: 130px var(--edge); }
.p-text{
  max-width: 560px; font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -0.01em;
}
.p-gallery{ display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--edge); padding: 0 var(--edge) 130px; align-items: end; }

.p-next{
  min-height: 60svh; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px var(--edge); gap: 20px;
}
.p-next span{ font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray); }
.p-next a{
  font-family: var(--display); font-weight: 600; font-size: clamp(30px,6vw,70px);
  letter-spacing: -0.02em; border-bottom: 2px solid transparent; transition: border-color .3s;
}
.p-next a:hover{ border-color: var(--orange); }

@media (max-width: 860px){
  .p-gallery{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .p-eyebrow{ top: 88px; }
  .p-title{ font-size: clamp(32px, 10vw, 52px); }
  .p-meta{ gap: 24px; }
  .p-section{ padding: 90px var(--edge); }
}

.project-info{ display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.project-num{ font-size: 13px; color: var(--gray); letter-spacing: 0.1em; }
.project-info h3{
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.01em;
}
.project-info p{ font-size: 14px; color: var(--gray); text-align: right; }

/* ============================================
   07 PROCESS
   ============================================ */
.process{ padding: 140px var(--edge) 120px; }
.process .section-label{ margin-bottom: 60px; }
.process-list li{
  display: grid; grid-template-columns: 60px 1fr 1fr; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.process-list li:first-child{ border-top: 1px solid var(--line); }
.p-num{ font-size: 13px; color: var(--orange); }
.p-name{ font-family: var(--display); font-weight: 500; font-size: clamp(22px,3vw,36px); }
.p-desc{ font-size: 14px; color: var(--gray); max-width: 380px; }

/* ============================================
   08 STUDIO
   ============================================ */
.studio{
  min-height: 80svh; background: var(--black); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px var(--edge);
}
.studio-text{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 5.6vw, 64px); line-height: 1.12; letter-spacing: -0.015em;
}
.studio-note{ margin-top: 32px; max-width: 440px; color: rgba(247,245,241,0.55); font-size: 15px; }

/* ============================================
   09 CONTACT
   ============================================ */

.contact {
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--edge) 60px;
  position: relative;
}



/* Título principal */
.contact h2 {
  font-size: clamp(32px, 8vw, 72px);
  line-height: 1.05;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* Email */
.contact-email {
  font-size: clamp(22px, 6vw, 42px);
  line-height: 1.1;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* En móvil, menos padding lateral */
@media (max-width: 768px) {
  .contact {
    padding: 100px 16px 50px;
  }
}
.contact-eyebrow{
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray);
  margin-bottom: 26px;
}
.contact-title {
  display: block;              /* hace que el <a> ocupe una línea */
  width: 100%;
  max-width: 100%;
  font-size: clamp(28px, 7vw, 64px);
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0 auto;
}
.contact-title:hover{ border-color: var(--orange); }
.contact-meta{
  position: absolute; bottom: 40px; left: var(--edge); right: var(--edge);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.contact-col span{
  display:block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gray); margin-bottom: 8px;
}
.contact-col p{ font-size: 13px; color: rgba(247,245,241,0.75); }
.contact-col a:hover{ color: var(--orange); }

/* ============================================
   Reveal / split-type helpers
   ============================================ */
.split-line{ overflow: hidden; }
.reveal-up{ opacity: 0; transform: translateY(100%); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px){
  .site-nav{ display: none; }
  .menu-btn{ display: flex; }
  .shift-track{ flex-direction: column; height: auto; min-height: 100svh; }
  .shift-panel{ min-height: 50svh; }
  .process-list li{ grid-template-columns: 40px 1fr; }
  .p-desc{ grid-column: 1 / -1; max-width: 100%; }
  .service-desc{ display: none; }
  .project-info{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .project-info p{ text-align: left; }
  .work-row{ grid-template-columns: 32px 1fr; row-gap: 6px; }
  .row-tags, .row-arrow{ display: none; }
  .trust-logos li{ flex: 1 1 50%; min-width: 0; }
  .contact-meta{ position: static; margin-top: 70px; flex-direction: column; gap: 26px; text-align: left; }
}

@media (max-width: 560px){
  .hero{ padding-bottom: 32px; }
  .hero-eyebrow{ top: 88px; max-width: 160px; }
  .hero-title{ font-size: clamp(30px, 9.6vw, 46px); line-height: 1.04; }
  .hero-foot{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .manifesto{ padding: 90px var(--edge); }
  .manifesto-text{ font-size: clamp(28px, 9vw, 44px); }
  .shift-track{ flex-direction: column; }
  .shift-panel{ min-height: 60svh; padding: 40px var(--edge); }
  .shift-panel p{ display: block; max-width: 100%; }
.studio-text{
  font-size: clamp(20px, 7vw, 32px);
  line-height: 1.1;
  padding: 0 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
  .contact-title{ font-size: clamp(22px, 8.6vw, 36px); word-break: break-word; }
}

@media (max-width: 400px){
  .hero-title{ font-size: clamp(26px, 9vw, 38px); }
  .hero-title .line{ overflow: visible; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

.trust{
    background:#000;
    color:#fff;
    padding:clamp(5rem,10vw,10rem) 8%;
}

.section-label{
    display:block;
    margin-bottom:1rem;
    text-transform:uppercase;
    letter-spacing:.25em;
    color:#7b7b7b;
    font-size:.9rem;
}

.trust-title{
    font-size:clamp(3rem,7vw,6rem);
    line-height:.92;
    font-weight:700;
    margin-bottom:5rem;
    max-width:900px;
}

.trust-logos{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:4rem 3rem;

    align-items:center;
}

.trust-logos img{

    width:100%;
    max-width:180px;

    margin:auto;

    opacity:.55;

    filter:brightness(0) invert(1);

    transition:.35s;
}

.trust-logos img:hover{

    opacity:1;
    transform:scale(1.05);

}

@media (max-width:900px){

.trust{

    padding:6rem 7%;

}

.trust-title{

    margin-bottom:4rem;

}

.trust-logos{

    grid-template-columns:repeat(3,1fr);

    gap:3rem;

}

}

@media (max-width:600px){

.trust{

    padding:5rem 6%;

}

.trust-title{

    font-size:3rem;

}

.trust-logos{

    grid-template-columns:repeat(2,1fr);

    gap:2.5rem 2rem;

}

.trust-logos img{

    max-width:120px;

}

}

/* ============================================
   FOTOGRAFÍA — teaser en la home
   ============================================ */
.photo-teaser{
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch;
  min-height: 90svh;
}
.photo-teaser-media{ background: var(--black); overflow: hidden; }
.photo-teaser-media img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.15);
}
.photo-teaser-info{
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px var(--edge);
}
.photo-teaser-info h2{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -0.02em; margin: 18px 0 22px;
}
.photo-teaser-text{ color: var(--gray); font-size: 15px; max-width: 340px; margin-bottom: 32px; }
.photo-teaser-link{
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--black); padding-bottom: 4px; transition: color .3s, border-color .3s;
}
.photo-teaser-link:hover{ color: var(--orange); border-color: var(--orange); }

@media (max-width: 860px){
  .photo-teaser{ grid-template-columns: 1fr; min-height: auto; }
  .photo-teaser-media{ aspect-ratio: 4/3; }
  .photo-teaser-info{ padding: 56px var(--edge); }
}

/* ============================================
   GALERÍA (galeria.html) — índice de álbumes
   ============================================ */
.album-nav{
  position: sticky; top: 0; z-index: 60; background: var(--white);
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 18px var(--edge); border-bottom: 1px solid var(--line);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
}
.album-nav a{ color: var(--gray); transition: color .3s; }
.album-nav a:hover, .album-nav a.active{ color: var(--orange); }

.album{ padding: 110px var(--edge) 40px; }
.album-head{
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line); padding-bottom: 22px;
}
.album-head .row-num{ font-size: 13px; color: var(--gray); }
.album-head h2{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 4.2vw, 52px); letter-spacing: -0.02em;
}
.album-count{ font-size: 13px; color: var(--gray); margin-left: auto; }

.photo-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding-bottom: 90px;
}
.photo{
  position: relative; display: block; width: 100%; aspect-ratio: 4/5;
  overflow: hidden; background: var(--black); border: none; padding: 0; margin: 0;
  cursor: pointer; grid-column: span 1;
}
.photo.wide{ grid-column: span 2; aspect-ratio: 16/10; }
.photo img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.photo:hover img{ transform: scale(1.05); }

/* Variante uniforme: todas las fotos al mismo tamaño (p. ej. álbum Motorsport) */
.photo-grid--uniform{ grid-template-columns: repeat(3, 1fr); }
.photo-grid--uniform .photo{ aspect-ratio: 3/2; grid-column: span 1; }

@media (max-width: 860px){
  .photo-grid{ grid-template-columns: repeat(2, 1fr); }
  .photo.wide{ grid-column: span 2; }
  .photo-grid--uniform{ grid-template-columns: repeat(2, 1fr); }
  .album-nav{ overflow-x: auto; gap: 20px; }
}

/* ---- Lightbox ---- */
.lightbox{
  position: fixed; inset: 0; z-index: 900; background: rgba(10,10,10,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.lightbox.open{ opacity: 1; pointer-events: auto; }
.lightbox-img{
  max-width: 86vw; max-height: 84vh; object-fit: contain;
  opacity: 0; transform: scale(0.98); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lightbox-img.show{ opacity: 1; transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: fixed; background: none; border: none; color: var(--white);
  cursor: pointer; z-index: 910; transition: color .25s;
}
.lightbox-close{ top: 26px; right: var(--edge); font-size: 22px; }
.lightbox-prev{ left: var(--edge); top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox-next{ right: var(--edge); top: 50%; transform: translateY(-50%); font-size: 30px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ color: var(--orange); }
.lightbox-counter{
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(247,245,241,0.6); font-size: 12px; letter-spacing: 0.08em; z-index: 910;
}
@media (max-width: 560px){
  .lightbox-prev{ left: 12px; }
  .lightbox-next{ right: 12px; }
}

/* ============================================
   Índice de álbumes (galeria.html) — solo portadas
   ============================================ */
.album-index{ padding: 40px var(--edge) 120px; border-top: 1px solid var(--line); }
.album-card{
  display: grid; grid-template-columns: 220px 1fr auto;
  align-items: center; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.album-cover{ width: 220px; aspect-ratio: 4/3; overflow: hidden; background: var(--black); }
.album-cover img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.album-card-info{ display: flex; flex-direction: column; gap: 6px; }
.album-card-info .row-num{ font-size: 13px; color: var(--gray); }
.album-card-info h2{
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 4vw, 44px); letter-spacing: -0.01em;
  transition: color .4s, transform .4s var(--ease);
}
.album-card-info .album-count{ font-size: 13px; color: var(--gray); }
.album-card .row-arrow{
  font-size: 22px; color: var(--gray); justify-self: end;
  transition: transform .4s var(--ease), color .4s;
}
.album-card:hover .album-cover img{ transform: scale(1.06); }
.album-card:hover h2{ color: var(--orange); transform: translateX(8px); }
.album-card:hover .row-arrow{ color: var(--orange); transform: rotate(45deg); }

@media (max-width: 700px){
  .album-card{ grid-template-columns: 96px 1fr; }
  .album-cover{ width: 96px; }
  .album-card .row-arrow{ display: none; }
}

/* ============================================
   COOKIES — banner + botón de configuración
   ============================================ */
.cookie-banner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--black); color: var(--white);
  padding: 22px var(--edge); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px;
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.cookie-banner.show{ transform: translateY(0); }
.cookie-text{ font-size: 13px; max-width: 560px; color: rgba(247,245,241,0.82); line-height: 1.5; }
.cookie-text a{ color: var(--white); border-bottom: 1px solid var(--orange); }
.cookie-actions{ display: flex; gap: 22px; align-items: center; flex-shrink: 0; }
.cookie-btn{
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid transparent; padding-bottom: 3px; cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
  color: rgba(247,245,241,0.75); transition: color .3s, border-color .3s;
  font-family: var(--body);
}
.cookie-btn:hover{ color: var(--white); border-color: rgba(247,245,241,0.4); }
.cookie-btn.primary{ color: var(--orange); border-color: var(--orange); }
.cookie-btn.primary:hover{ color: var(--white); border-color: var(--white); }

.cookie-settings-link{
  position: fixed; left: var(--edge); bottom: 18px; z-index: 400;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gray); background: var(--white); padding: 6px 10px;
  border: 1px solid var(--line); cursor: pointer; font-family: var(--body);
}
.cookie-settings-link:hover{ color: var(--orange); border-color: var(--orange); }

@media (max-width: 560px){
  .cookie-banner{ flex-direction: column; align-items: flex-start; padding: 20px var(--edge) 24px; }
  .cookie-actions{ width: 100%; justify-content: space-between; }
  .cookie-settings-link{ left: 16px; bottom: 16px; font-size: 10px; padding: 5px 8px; }
}

/* ============================================
   LEGAL (legal.html) — texto legible, no display
   ============================================ */
.legal-nav{
  position: sticky; top: 0; z-index: 60; background: var(--white);
  display: flex; gap: 28px; padding: 18px var(--edge); border-bottom: 1px solid var(--line);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
}
.legal-nav a{ color: var(--gray); transition: color .3s; }
.legal-nav a:hover{ color: var(--orange); }

.legal-disclaimer{
  margin: 60px var(--edge) 0; padding: 20px 24px; max-width: 720px;
  border: 1px solid var(--line); font-size: 13px; color: var(--gray); line-height: 1.6;
}

.legal-section{ padding: 90px var(--edge) 20px; max-width: 720px; }
.legal-section h2{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.01em; margin-bottom: 26px;
}
.legal-section h3{
  font-family: var(--display); font-weight: 500; font-size: 18px;
  margin: 34px 0 10px;
}
.legal-section p{ font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 16px; }
.legal-section ul{ margin: 0 0 16px; padding-left: 20px; }
.legal-section li{ font-size: 15px; line-height: 1.7; color: var(--ink); list-style: disc; margin-bottom: 6px; }
.legal-section strong{ font-weight: 600; }
.legal-section + .legal-section{ border-top: 1px solid var(--line); }






.plate-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.plate-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* o contain si no quieres recortar */
  display: block;
}

.p-text-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.p-text {
  flex: 1;
  max-width: 500px;
}

.horizontal {
  flex: 1;
  max-width: 700px;
  height: 350px;
}

.horizontal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* En móvil se pone debajo */
@media (max-width: 768px) {
  .p-text-image {
    flex-direction: column;
  }

  .horizontal {
    width: 100%;
    max-width: 100%;
    height: 250px;
  }
}



