/*
Theme Name: Curillas
Theme URI: https://curillas.com
Author: Curillas
Description: Tema visual para Curillas, Penillas y Fermentino.
Version: 1.0.0
Text Domain: curillas
*/

:root {
  --forest: #24483b;
  --forest-dark: #142e27;
  --leaf: #58765c;
  --clay: #a64f38;
  --sand: #d6b779;
  --stone: #e8e1d5;
  --paper: #f8f5ee;
  --ink: #202620;
  --muted: #657067;
  --line: rgba(32, 38, 32, .15);
  --shadow: 0 24px 70px rgba(25, 39, 31, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: var(--clay);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(2.5rem, 5.2vw, 4.8rem); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.45rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: .25s;
}
.button:hover { transform: translateY(-2px); background: var(--forest-dark); border-color: var(--forest-dark); }
.button--outline { background: transparent; border-color: rgba(255,255,255,.65); }
.button--outline:hover { background: #fff; color: var(--forest-dark); border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--clay); font-size: .77rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.text-link::after { content: "→"; font-size: 1.15rem; transition: transform .2s; }
.text-link:hover::after { transform: translateX(5px); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: #fff; border-bottom: 1px solid rgba(255,255,255,.22); }
.site-header--solid { position: relative; background: var(--paper); color: var(--ink); border-color: var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .85rem; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.brand img { width: 52px; height: 58px; object-fit: contain; }
.brand small { display: block; margin-top: .1rem; font-family: Inter, sans-serif; font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .72; }
.nav { display: flex; align-items: center; gap: 1.65rem; }
.nav a { position: relative; font-size: .75rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.nav a::after { content: ""; position: absolute; right: 0; bottom: -.45rem; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 850; text-transform: uppercase; }

.hero { position: relative; min-height: min(880px, 94vh); display: flex; align-items: flex-end; overflow: hidden; background: var(--forest-dark); color: #fff; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,34,27,.82) 0%, rgba(12,34,27,.43) 51%, rgba(12,34,27,.12) 78%),
    linear-gradient(0deg, rgba(12,34,27,.66), transparent 55%),
    url("https://curillas.com/wp-content/uploads/2026/07/file_79-9ace615b-bc6e-4d7a-959f-0b31de446c1a.jpg") center 44%/cover no-repeat;
  transform: scale(1.02);
}
.hero-content { position: relative; z-index: 2; max-width: 840px; padding: 180px 0 96px; }
.hero .eyebrow { color: #e6c98e; }
.hero h1 { max-width: 820px; font-size: clamp(4.2rem, 9vw, 8rem); text-wrap: balance; }
.hero-copy { max-width: 650px; margin: 1.4rem 0 2.1rem; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.7vw, 1.27rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-place { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1200px)/2)); bottom: 65px; padding-left: 1rem; border-left: 2px solid #e6c98e; color: rgba(255,255,255,.8); font-family: Georgia, serif; font-size: 1rem; }

.welcome { padding: 120px 0; }
.welcome-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(3rem, 8vw, 8rem); }
.welcome-copy h2 { max-width: 780px; }
.welcome-copy .lead { margin: 1.5rem 0 0; max-width: 690px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 4.5rem; background: var(--line); border: 1px solid var(--line); }
.fact { padding: 1.8rem; background: var(--paper); }
.fact span { display: block; margin-bottom: .45rem; color: var(--clay); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.fact strong { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }

.portal { padding: 105px 0; background: var(--stone); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.section-head h2 { max-width: 700px; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.portal-card { position: relative; min-height: 430px; display: flex; align-items: end; overflow: hidden; color: #fff; background: var(--forest); }
.portal-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,25,20,.88), rgba(10,25,20,.05) 65%); }
.portal-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portal-card:hover img { transform: scale(1.04); }
.portal-card-content { position: relative; z-index: 2; padding: 1.6rem; }
.portal-card small { color: #e6c98e; font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.portal-card h3 { margin-top: .35rem; font-size: 2rem; }
.portal-card p { margin-bottom: 0; color: rgba(255,255,255,.72); font-size: .92rem; }

.landscape { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 700px; background: var(--forest-dark); color: #fff; }
.landscape-photo { background: url("https://curillas.com/wp-content/uploads/2026/07/file_86-db3db643-bb2d-4688-8e26-2672009b4ad9.jpg") center/cover no-repeat; }
.landscape-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); }
.landscape .eyebrow { color: #e6c98e; }
.landscape p { color: rgba(255,255,255,.72); font-size: 1.08rem; }
.landscape .text-link { color: #e6c98e; }

.seasons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px; background: var(--forest-dark); }
.seasons figure { position: relative; min-height: 460px; margin: 0; overflow: hidden; }
.seasons img { height: 100%; object-fit: cover; transition: transform .6s; }
.seasons figure:hover img { transform: scale(1.035); }
.seasons figcaption { position: absolute; right: 1.4rem; bottom: 1.2rem; left: 1.4rem; color: #fff; font-family: Georgia, serif; font-size: 1.5rem; text-shadow: 0 2px 14px #000; }

.memory { padding: 120px 0; }
.memory-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.memory-image { position: relative; }
.memory-image::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--clay); }
.memory-image img { position: relative; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.memory-copy p { color: var(--muted); font-size: 1.08rem; }

.cta { position: relative; padding: 110px 0; text-align: center; background: var(--clay); color: #fff; overflow: hidden; }
.cta::before { content: "CURILLAS"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); color: rgba(255,255,255,.055); font-family: Georgia, serif; font-size: min(20vw, 17rem); white-space: nowrap; }
.cta-inner { position: relative; }
.cta h2 { max-width: 820px; margin-inline: auto; }
.cta p { max-width: 660px; margin: 1.2rem auto 2rem; color: rgba(255,255,255,.8); }

.page-hero { padding: 105px 0 85px; background: var(--stone); }
.page-hero h1 { max-width: 900px; font-size: clamp(3.8rem, 8vw, 7.2rem); }
.page-hero .lead { max-width: 720px; margin-top: 1.3rem; }
.page-section { padding: 100px 0; }
.activity-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.activity-grid figure { margin: 0; overflow: hidden; }
.activity-grid figure:nth-child(1) { grid-column: span 7; }
.activity-grid figure:nth-child(2) { grid-column: span 5; }
.activity-grid figure:nth-child(3), .activity-grid figure:nth-child(4), .activity-grid figure:nth-child(5) { grid-column: span 4; }
.activity-grid img { height: 100%; min-height: 360px; object-fit: cover; }
.news-empty { padding: clamp(3rem, 8vw, 7rem); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.news-empty h2 { max-width: 650px; }
.news-empty p { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.route-card { padding: clamp(2rem, 5vw, 4rem); background: #fff; box-shadow: var(--shadow); }
.route-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.route-head h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.route-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2.5rem 0; border: 1px solid var(--line); }
.route-stat { padding: 1.4rem; border-right: 1px solid var(--line); }
.route-stat:last-child { border: 0; }
.route-stat span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.route-stat strong { font-family: Georgia, serif; font-size: 1.5rem; }
.map-frame { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--stone); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.route-copy { columns: 2; column-gap: 3rem; margin: 3rem 0; color: var(--muted); }
.photo-wall { columns: 4 240px; column-gap: 9px; padding: 9px; background: var(--forest-dark); }
.photo-wall figure { break-inside: avoid; margin: 0 0 9px; overflow: hidden; background: var(--forest); }
.photo-wall img { transition: transform .5s ease, filter .5s; }
.photo-wall figure:hover img { transform: scale(1.025); filter: saturate(1.08); }
.route-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.route-gallery figure { margin: 0; overflow: hidden; }
.route-gallery img { height: 320px; object-fit: cover; }

.site-footer { padding: 75px 0 30px; background: var(--forest-dark); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 3rem; padding-bottom: 55px; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 74px; height: 82px; object-fit: contain; }
.footer-title { max-width: 520px; margin-top: 1.4rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; }
.footer-heading { margin-bottom: 1rem; color: #e6c98e; font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: grid; gap: .65rem; color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.45); font-size: .8rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column; justify-content: center; background: var(--forest-dark); color: #fff; }
  .nav.is-open { display: flex; }
  .nav a { font-family: Georgia, serif; font-size: 2rem; text-transform: none; }
  .menu-toggle { position: relative; z-index: 31; }
  .hero-place { display: none; }
  .welcome-grid, .landscape, .memory-grid, .route-head { grid-template-columns: 1fr; }
  .facts, .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .landscape-photo { min-height: 65vw; }
  .seasons { grid-template-columns: 1fr; }
  .seasons figure { min-height: 65vw; }
  .route-stats { grid-template-columns: repeat(2, 1fr); }
  .route-stat:nth-child(2) { border-right: 0; }
  .route-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .route-copy { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap, .narrow { width: min(100% - 28px, 1200px); }
  .header-inner { min-height: 76px; }
  .brand img { width: 42px; height: 48px; }
  .brand { font-size: 1.08rem; }
  .brand small { display: none; }
  .hero { min-height: 760px; }
  .hero-content { padding: 140px 0 70px; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .welcome, .portal, .memory, .page-section { padding: 78px 0; }
  .facts, .portal-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .landscape-copy { padding: 60px 24px; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-grid figure:nth-child(n) { grid-column: auto; }
  .activity-grid img { min-height: 90vw; }
  .route-gallery { grid-template-columns: 1fr; }
  .route-gallery img { height: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.cookie-banner[hidden]{display:none}
.cookie-banner{position:fixed;z-index:9999;left:50%;bottom:20px;transform:translateX(-50%);width:min(920px,calc(100% - 32px));display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:#17352e;color:#fff;box-shadow:0 18px 55px rgba(0,0,0,.3)}
.cookie-banner__copy{max-width:620px}.cookie-banner__copy strong{display:block;margin-bottom:5px;font-size:1.05rem}.cookie-banner__copy p{margin:0;color:rgba(255,255,255,.82);font-size:.92rem;line-height:1.5}.cookie-banner a{color:#fff;text-decoration:underline}
.cookie-banner__actions{display:flex;gap:10px;flex-shrink:0}.cookie-button{min-height:42px;padding:9px 15px;border:1px solid #fff;border-radius:999px;font:inherit;font-weight:700;cursor:pointer}.cookie-button--primary{background:#fff;color:#17352e}.cookie-button--secondary{background:transparent;color:#fff}
@media(max-width:720px){.cookie-banner{bottom:10px;display:block;padding:18px}.cookie-banner__actions{margin-top:15px;display:grid;grid-template-columns:1fr 1fr}.cookie-button{padding-inline:10px;font-size:.84rem}}
