/* =========================================================
   MUSEO IRIARTE — Estilos del rediseño (Prototipo A)
   Archivo: museo-iriarte-style.css
   Cargar via wp_enqueue_style (ver museo-iriarte-functions.php)
   ========================================================= */

:root{
  --paper: #E7DCC0;
  --paper-light: #F2EAD3;
  --paper-dark: #D9CBA4;
  --ink: #241F1A;
  --ink-soft: #4a4137;
  --rail-green: #1F3B2C;
  --rail-green-light: #2C5240;
  --rust: #AE4F27;
  --rust-dark: #8f3f1e;
  --brass: #C0973A;
  --line: rgba(36,31,26,0.18);
  --shadow: 0 10px 30px rgba(31,59,44,0.15);
}

/* Estos estilos quedan acotados a .museo-home para no pisar el resto del sitio */
.museo-home{
  background:var(--paper);
  color:var(--ink);
  font-family:'Source Serif 4', serif;
  font-size:17px;
  line-height:1.6;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0,0,0,0.02), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.02), transparent 40%);
}
.museo-home *{box-sizing:border-box;}
.museo-home ::selection{background:var(--rust); color:var(--paper-light);}
.museo-home h1,.museo-home h2,.museo-home h3,.museo-home .display{
  font-family:'Big Shoulders Stencil', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.02em;
  font-weight:800;
  margin:0;
  line-height:0.92;
}
.museo-home .eyebrow{
  font-family:'Special Elite', monospace;
  font-size:12.5px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--rust-dark);
}
.museo-home a{color:inherit;}
.museo-home img{max-width:100%; display:block;}
.museo-home .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}

.museo-home .btn{
  font-family:'Special Elite', monospace;
  font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase;
  background:var(--rust); color:var(--paper-light);
  padding:11px 22px; border-radius:2px; text-decoration:none;
  border:1px solid var(--ink);
  box-shadow:3px 3px 0 var(--ink);
  transition:transform .15s ease, box-shadow .15s ease;
  display:inline-block;
}
.museo-home .btn:hover{transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--ink);}
.museo-home .btn.ghost{background:transparent; color:var(--ink);}

/* ===== HERO ===== */
.museo-home .hero{
  position:relative; min-height:88vh;
  display:flex; align-items:flex-end;
  background:var(--rail-green); overflow:hidden;
}
.museo-home .hero img.bg{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:.55; filter:sepia(28%) saturate(85%) contrast(105%);
}
.museo-home .hero::before{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(31,59,44,.25) 0%, rgba(24,20,16,.85) 100%);
}
.museo-home .hero-content{position:relative; z-index:2; padding:70px 32px 60px; width:100%;}
.museo-home .hero-content .wrap{padding:0;}
.museo-home .hero-eyebrow{
  font-family:'Special Elite', monospace;
  color:var(--brass); font-size:13px; letter-spacing:.2em; text-transform:uppercase;
  display:flex; align-items:center; gap:12px; margin-bottom:18px;
}
.museo-home .hero-eyebrow .rule{width:40px; height:1px; background:var(--brass);}
.museo-home .hero h1{color:var(--paper-light); font-size:clamp(52px, 9vw, 118px); max-width:900px;}
.museo-home .hero h1 em{font-style:normal; color:var(--rust); -webkit-text-stroke:1.5px var(--paper-light);}
.museo-home .hero p.lede{
  font-family:'Source Serif 4', serif; font-style:italic;
  color:var(--paper-light); opacity:.88;
  font-size:19px; max-width:520px; margin:22px 0 34px;
}
.museo-home .hero-actions{display:flex; gap:16px; flex-wrap:wrap;}

.museo-home .ticket-strip{position:relative; z-index:2; background:var(--paper-light); border-top:2px dashed var(--ink);}
.museo-home .ticket-strip .wrap{display:grid; grid-template-columns:repeat(4,1fr);}
.museo-home .ticket-cell{padding:18px 26px; border-right:2px dashed var(--line); font-family:'Special Elite', monospace; font-size:12px;}
.museo-home .ticket-cell:last-child{border-right:none;}
.museo-home .ticket-cell .label{color:var(--rust-dark); letter-spacing:.1em; text-transform:uppercase; font-size:10.5px; margin-bottom:4px;}
.museo-home .ticket-cell .val{font-family:'Source Serif 4', serif; font-size:15px; color:var(--ink);}

.museo-home section{padding:110px 0;}
.museo-home .section-head{max-width:640px; margin-bottom:60px;}
.museo-home .section-head h2{font-size:clamp(36px,5vw,58px); margin-top:10px;}
.museo-home .section-head p{color:var(--ink-soft); margin-top:16px; font-size:18px;}

/* ===== NOVEDADES ===== */
.museo-home .novedades .section-head{display:flex; justify-content:space-between; align-items:flex-end; max-width:100%;}
.museo-home .news-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.museo-home .news-card{text-decoration:none; color:var(--ink); display:block;}
.museo-home .news-photo{aspect-ratio:16/11; overflow:hidden; border-radius:2px; margin-bottom:18px;}
.museo-home .news-photo img{width:100%; height:100%; object-fit:cover; filter:sepia(10%); transition:transform .4s ease;}
.museo-home .news-card:hover .news-photo img{transform:scale(1.05);}
.museo-home .news-card h3{font-family:'Big Shoulders Stencil'; font-size:23px; text-transform:none; letter-spacing:0; color:var(--rail-green); line-height:1.15;}
.museo-home .news-card p{font-size:14.5px; color:var(--ink-soft); margin:10px 0 0;}

/* ===== INTRO / EL MUSEO ===== */
.museo-home .intro{background:var(--paper-light); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.museo-home .intro-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:70px; align-items:stretch;}
.museo-home .intro-photo{position:relative; height:100%;}
.museo-home .intro-photo img{border-radius:2px; box-shadow:var(--shadow); filter:sepia(15%); width:100%; height:100%; object-fit:cover;}
.museo-home .intro-photo .stamp{
  position:absolute; bottom:-26px; left:-26px;
  background:var(--paper-light); border:2px solid var(--rust);
  border-radius:50%; width:110px; height:110px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  transform:rotate(-12deg);
  font-family:'Special Elite', monospace; font-size:10.5px; color:var(--rust-dark);
  letter-spacing:.05em; line-height:1.3; padding:8px;
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}
.museo-home .intro-text p{font-size:18px; color:var(--ink-soft); margin:0 0 18px;}
.museo-home .intro-text .quote{
  font-family:'Big Shoulders Stencil', sans-serif; font-size:28px;
  color:var(--rail-green); line-height:1.15; margin:26px 0 26px;
  border-left:4px solid var(--rust); padding-left:22px;
  text-transform:none; letter-spacing:0;
}

/* Tarjetas y paradas que funcionan como enlace */
.museo-home a.station, .museo-home a.card{display:block; text-decoration:none; color:inherit;}
.museo-home a.station:hover, .museo-home a.card:hover{text-decoration:none; color:inherit;}

/* ===== RECORRIDO ===== */
.museo-home .recorrido{background:var(--paper); position:relative;}
.museo-home .rail-track{position:relative; margin-top:40px;}
.museo-home .rail-svg{width:100%; height:auto; display:block;}
.museo-home .stations{display:grid; grid-template-columns:repeat(6,1fr); gap:0; margin-top:-14px;}
.museo-home .station{padding:0 14px 0 0; cursor:pointer;}
.museo-home .station-num{font-family:'Special Elite', monospace; font-size:12px; color:var(--rust-dark); letter-spacing:.1em;}
.museo-home .station-dot{
  width:16px; height:16px; border-radius:50%;
  background:var(--paper); border:3px solid var(--rail-green);
  margin:10px 0 16px; transition:transform .2s ease, background .2s ease;
}
.museo-home .station:hover .station-dot{background:var(--rust); border-color:var(--rust); transform:scale(1.25);}
.museo-home .station h3{
  font-size:20px; color:var(--rail-green); margin-bottom:8px; line-height:1.05;
  min-height:44px; /* reserva 2 líneas de alto para que todas las paradas alineen igual */
}
.museo-home .station p{font-size:14.5px; color:var(--ink-soft); margin:0; min-height:37px;}
.museo-home .station-photo{margin-top:16px; aspect-ratio:4/5; overflow:hidden; border-radius:2px; box-shadow:0 6px 18px rgba(0,0,0,.12);}
.museo-home .station-photo img{width:100%; height:100%; object-fit:cover; filter:sepia(20%); transition:transform .4s ease;}
.museo-home .station:hover .station-photo img{transform:scale(1.06);}

/* ===== PLANO INTERACTIVO ===== */
.museo-home .plano{background:var(--paper-light); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.museo-home .plano-frame{
  position:relative; padding-bottom:56.25%; height:0;
  border:3px solid var(--ink); box-shadow:8px 8px 0 var(--ink); background:var(--paper-dark);
}
.museo-home .plano-frame iframe{position:absolute; top:0; left:0; width:100%; height:100%; border:0;}

/* ===== GALERÍA ===== */
.museo-home .galeria{background:var(--paper);}
.museo-home .gallery-grid{
  display:grid; grid-template-columns:repeat(6,1fr); grid-auto-rows:clamp(110px, 9vw, 180px); gap:6px;
  width:100%; margin:0; padding:0; /* a todo el ancho de pantalla */
}
.museo-home .gal-item{position:relative; display:block; overflow:hidden; border-radius:0; cursor:zoom-in;}
/* Mosaico: cada imagen ocupa un tamaño distinto (columnas / filas) */
.museo-home .gal-item:nth-child(1){grid-column:1 / span 2; grid-row:1 / span 3;}
.museo-home .gal-item:nth-child(2){grid-column:3 / span 2; grid-row:1 / span 2;}
.museo-home .gal-item:nth-child(3){grid-column:5 / span 2; grid-row:1;}
.museo-home .gal-item:nth-child(4){grid-column:5; grid-row:2 / span 2;}
.museo-home .gal-item:nth-child(5){grid-column:6; grid-row:2 / span 2;}
.museo-home .gal-item:nth-child(6){grid-column:3 / span 2; grid-row:3 / span 2;}
.museo-home .gal-item:nth-child(7){grid-column:1 / span 2; grid-row:4;}
.museo-home .gal-item:nth-child(8){grid-column:5 / span 2; grid-row:4;}
.museo-home .gal-item img{width:100%; height:100%; object-fit:cover; filter:sepia(20%); transition:transform .5s ease;}
.museo-home .gal-item:hover img{transform:scale(1.07);}
.museo-home .gal-cap{
  position:absolute; left:0; right:0; bottom:0; padding:26px 10px 8px;
  background:linear-gradient(180deg, transparent, rgba(24,20,16,.88));
  color:var(--paper-light); font-family:'Special Elite', monospace; font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  opacity:0; transform:translateY(6px); transition:opacity .25s ease, transform .25s ease;
}
.museo-home .gal-item:hover .gal-cap, .museo-home .gal-item:focus .gal-cap{opacity:1; transform:none;}

/* ===== LIGHTBOX ===== */
.museo-home .lightbox{
  position:fixed; inset:0; z-index:999999; background:rgba(18,15,12,.94);
  display:flex; align-items:center; justify-content:center; padding:40px 70px;
}
.museo-home .lightbox[hidden]{display:none;}
.museo-home .lb-figure{margin:0; max-width:1200px; width:100%; text-align:center;}
.museo-home .lb-figure img{max-width:100%; max-height:78vh; margin:0 auto; border:3px solid var(--paper-light);}
.museo-home .lb-figure figcaption{font-family:'Special Elite', monospace; color:var(--paper-light); margin-top:14px; letter-spacing:.1em; text-transform:uppercase; font-size:13px;}
.museo-home .lb-btn{
  position:absolute; background:transparent; border:1px solid rgba(242,234,211,.5); color:var(--paper-light);
  width:46px; height:46px; border-radius:50%; font-size:28px; line-height:1; cursor:pointer; padding:0;
}
.museo-home .lb-btn:hover{background:var(--rust); border-color:var(--rust);}
.museo-home .lb-close{top:22px; right:22px;}
.museo-home .lb-prev{left:18px; top:50%; transform:translateY(-50%);}
.museo-home .lb-next{right:18px; top:50%; transform:translateY(-50%);}

/* ===== INFO CARDS ===== */
.museo-home .info-cards{background:var(--rail-green); color:var(--paper-light);}
.museo-home .info-cards .section-head h2{color:var(--paper-light);}
.museo-home .info-cards .section-head p{color:rgba(242,234,211,0.75);}
.museo-home .info-cards .eyebrow{color:var(--brass);}
.museo-home .cards-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.museo-home .card{
  background:var(--rail-green-light); border:1px solid rgba(242,234,211,0.18);
  border-radius:3px; padding:34px; transition:transform .2s ease, border-color .2s ease;
}
.museo-home .card:hover{transform:translateY(-6px); border-color:var(--brass);}
.museo-home .card .num{font-family:'Special Elite', monospace; color:var(--brass); font-size:13px; letter-spacing:.15em;}
.museo-home .card h3{font-size:26px; margin:14px 0 12px; color:var(--paper-light);}
.museo-home .card p{font-size:15px; color:rgba(242,234,211,0.8); margin:0 0 20px;}
.museo-home .card a, .museo-home .card .more{
  font-family:'Special Elite', monospace; font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--brass); text-decoration:none; border-bottom:1px solid var(--brass); padding-bottom:2px;
}

/* ===== TESTIMONIOS (encabezado propio; las reseñas las renderiza el plugin [grw]) ===== */
.museo-home .testimonios{background:var(--paper-light);}
.museo-home .grw-embed{margin-top:20px;}

/* Overrides best-effort para el widget "Rich Showcase for Google Reviews" (shortcode [grw]).
   Verificar clases reales con el inspector una vez publicado el widget y ajustar si difieren. */
.museo-home .grw-embed .grw-container{font-family:'Source Serif 4', serif !important;}
.museo-home .grw-embed .grw-review{
  background:var(--paper) !important;
  border:1px solid var(--line) !important;
  border-radius:2px !important;
}
.museo-home .grw-embed .grw-name, .museo-home .grw-embed .grw-title{
  font-family:'Special Elite', monospace !important;
  color:var(--rail-green) !important;
}
.museo-home .grw-embed .grw-stars svg, .museo-home .grw-embed .grw-star-svg{
  color:var(--rust) !important; fill:var(--rust) !important;
}

/* ===== FOOTER ===== */
.museo-home footer{background:var(--ink); color:var(--paper-light); padding:70px 0 30px;}
.museo-home .footer-grid{display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:50px; padding-bottom:50px; border-bottom:1px solid rgba(242,234,211,.15);}
.museo-home footer h4{font-family:'Special Elite', monospace; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--brass); margin-bottom:18px;}
.museo-home footer .brand{display:flex; align-items:center; gap:14px; font-family:'Big Shoulders Stencil', sans-serif; font-size:26px; letter-spacing:0.03em; color:var(--paper-light);}
.museo-home footer .brand .mark{
  width:42px;height:42px;border:2.5px solid var(--paper-light); border-radius:50%;
  display:flex;align-items:center;justify-content:center; font-size:16px; transform:rotate(-6deg);
}
.museo-home footer p{font-size:14.5px; color:rgba(242,234,211,.65); max-width:280px;}
.museo-home footer ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px;}
.museo-home footer a{text-decoration:none; font-size:14.5px; color:rgba(242,234,211,.8);}
.museo-home footer a:hover{color:var(--brass);}
.museo-home .footer-bottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 24px; padding-top:26px; font-family:'Special Elite', monospace; font-size:11.5px; color:rgba(242,234,211,.5);}
.museo-home .footer-bottom a{color:rgba(242,234,211,.75); text-decoration:none; border-bottom:1px solid rgba(242,234,211,.35);}
.museo-home .footer-bottom a:hover{color:var(--brass); border-color:var(--brass);}

@media(max-width:980px){
  .museo-home .intro-grid{grid-template-columns:1fr; gap:40px;}
  .museo-home .intro-photo{height:auto;}
  .museo-home .intro-photo img{height:auto; aspect-ratio:4/3;}
  .museo-home .cards-grid, .museo-home .news-grid{grid-template-columns:1fr;}
  .museo-home .gallery-grid{grid-template-columns:repeat(2,1fr); grid-auto-rows:110px; gap:8px; grid-auto-flow:dense;}
  .museo-home .gal-item:nth-child(n){grid-column:auto; grid-row:auto;}
  .museo-home .gal-item:nth-child(1){grid-column:span 2; grid-row:span 2;}
  .museo-home .gal-item:nth-child(2), .museo-home .gal-item:nth-child(3){grid-row:span 2;}
  .museo-home .gal-item:nth-child(6){grid-column:span 2;}
  .museo-home .gal-cap{display:none;}
  .museo-home .plano-frame{box-shadow:5px 5px 0 var(--ink);}
  .museo-home .lightbox{padding:60px 14px 30px;}
  .museo-home .lb-prev{left:6px;} .museo-home .lb-next{right:6px;}
  .museo-home .stations{grid-template-columns:1fr 1fr; row-gap:36px;}
  .museo-home .footer-grid{grid-template-columns:1fr 1fr; gap:34px;}
  .museo-home .ticket-strip .wrap{grid-template-columns:1fr 1fr;}
  .museo-home .ticket-cell{border-bottom:1px dashed var(--line);}
}
