/*
 * Lestonnac 330 · Love Nature direction 3.0
 * Lenguaje visual fotográfico, ligero y editorial.
 */

:root {
  --nature-body: "Avenir Next", Avenir, Montserrat, "Segoe UI", sans-serif;
  --nature-radius: .25rem;
  --nature-radius-media: .45rem;
  --nature-yellow: #ffd45a;
  --nature-yellow-hover: #f7c63b;
  --nature-line: rgba(27, 52, 34, .13);
  --nature-shadow: 0 18px 55px rgba(12, 38, 19, .09);
}

html { scroll-padding-top: 5.5rem; }
body { overflow-x: clip; color: var(--ink); background: var(--white); font-family: var(--nature-body); letter-spacing: 0; }
body::selection { color: var(--pine-950); background: var(--nature-yellow); }
h1, h2, h3, h4 { font-family: var(--nature-body); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(3.35rem, 7.8vw, 7rem); line-height: .96; }
h2 { font-size: clamp(2.2rem, 4.25vw, 4rem); line-height: 1.06; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
p { text-wrap: pretty; }
.l330-container { width: min(calc(100% - clamp(2rem, 7vw, 8rem)), 74rem); }
.l330-section { padding-block: clamp(5.5rem, 10vw, 9rem); }
.eyebrow { display: block; margin: 0 0 1rem; color: var(--pine-700); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { display: none; }

/* Cabecera estable y siempre legible */
body .site-header { min-height: 5.35rem; border: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--nature-line); backdrop-filter: blur(16px); transition: box-shadow .25s ease; }
body .site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 8px 28px rgba(12, 38, 19, .08); }
body.l330-front-page .site-header { position: fixed; z-index: 200; top: 0; right: 0; left: 0; color: var(--pine-950); background: rgba(255, 255, 255, .97); }
.admin-bar .site-header { top: 32px; }
body.l330-front-page .site-header.is-scrolled { color: var(--pine-950); background: rgba(255, 255, 255, .97); box-shadow: 0 8px 28px rgba(12, 38, 19, .08); }
.header-inner { min-height: 5.35rem; }
.brand img, .brand .custom-logo { width: clamp(11.5rem, 16vw, 14.4rem); max-height: 3.75rem; transition: filter .3s ease; }
.l330-front-page .brand img,
.l330-front-page .brand .custom-logo { filter: none; }
.primary-navigation { gap: 1.1rem; }
.primary-navigation ul { gap: clamp(.45rem, 1.4vw, 1.25rem); }
.primary-navigation .menu > li > a { padding-block: 1.2rem; color: var(--pine-950); font-size: .82rem; font-weight: 600; letter-spacing: .015em; }
.l330-front-page .primary-navigation .menu > li > a { color: var(--pine-950); }
.primary-navigation .menu > li > a::after { right: 25%; bottom: .95rem; left: 25%; height: 1px; background: currentColor; }
.button { min-height: 3.15rem; padding: .82rem 1.45rem; border: 1px solid transparent; border-radius: var(--nature-radius); color: var(--pine-950); background: var(--nature-yellow); box-shadow: none; font-size: .83rem; font-weight: 700; letter-spacing: .02em; }
.button:hover { color: var(--pine-950); background: var(--nature-yellow-hover); box-shadow: none; transform: translateY(-2px); }
.button-small { min-height: 2.7rem; padding: .62rem 1rem; }
.button-private { color: var(--pine-950); background: var(--nature-yellow); }
.l330-front-page .button-private { color: var(--pine-950); background: var(--nature-yellow); }
.site-account { border-radius: 50%; }
.l330-front-page .site-account { color: #fff; border-color: rgba(20,99,51,.22); background: var(--pine-700); }
.site-account:hover { box-shadow: 0 10px 24px rgba(7,35,18,.18); transform: translateY(-1px); }

/* Portada tipo Love Nature */
.hero { min-height: 100svh; isolation: isolate; border-radius: 0; }
.l330-front-page:not(.l330-custom-hero) .hero {
  background-image: linear-gradient(rgba(5, 25, 11, .29), rgba(5, 25, 11, .38)), url("../images/hero-nature-v2.png");
  background-position: center;
  background-size: cover;
}
.hero::before { position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 50% 38%, transparent 0, rgba(4, 17, 8, .08) 65%, rgba(4, 17, 8, .2)); content: ""; pointer-events: none; }
.hero::after { display: none; }
.hero-content { position: relative; z-index: 3; min-height: 100svh; max-width: 58rem; align-items: center; justify-content: center; padding-block: 9rem 6rem; text-align: center; }
.hero-content .eyebrow { margin-bottom: 1.35rem; color: rgba(255,255,255,.88); }
.hero h1 { max-width: 11.5ch; margin: 0 auto .32em; color: #fff; font-size: clamp(3.65rem, 8.4vw, 7.35rem); font-weight: 500; letter-spacing: -.055em; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero-lead { max-width: 43rem; margin: 0 auto 2rem; color: rgba(255,255,255,.91); font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.7; }
.hero-actions { justify-content: center; gap: .75rem; }
.hero-actions .button { min-width: 10.75rem; }
.hero-actions .button-ghost { color: #fff; border-color: rgba(255,255,255,.72); background: transparent; }
.hero-actions .button-ghost:hover { color: var(--pine-950); border-color: #fff; background: #fff; }
.hero-sky { display: none; }

/* Secciones: fotografía primero, contenido ligero */
.sections-section { background: var(--white); }
.section-heading { display: block; max-width: 45rem; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.section-heading h2 { max-width: none; margin: 0 0 .45em; }
.section-heading > p { max-width: 38rem; margin: 0 auto; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.section-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.section-card { min-height: 0; grid-column: span 2; display: block; padding: 0; overflow: visible; color: var(--ink); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.section-card:nth-child(4) { grid-column: 2 / span 2; }
.section-card:nth-child(5) { grid-column: 4 / span 2; }
.section-card::before, .section-card::after { display: none; }
.section-card-photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 1.35rem; overflow: hidden; border-radius: var(--nature-radius-media); background: var(--pine-100); }
.section-card-photo img { position: static; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; filter: none; transform: scale(1.002); transition: transform .75s cubic-bezier(.22,.61,.36,1), filter .4s ease; }
.section-card:hover { box-shadow: none; transform: none; }
.section-card:hover .section-card-photo img { filter: saturate(1.04); transform: scale(1.045); }
.section-card-body { position: relative; display: grid; min-height: 8.9rem; grid-template-columns: 1fr auto; align-content: start; column-gap: 1rem; }
.section-card-mark { position: static; width: auto; height: 3rem; max-width: 3.25rem; grid-column: 2; grid-row: 1 / span 3; margin: 0; object-fit: contain; filter: none; opacity: .88; transition: transform .35s ease; }
.section-card:hover .section-card-mark { transform: translateY(-3px); }
.section-card .section-age { width: max-content; margin: 0 0 .6rem; padding: 0; align-self: auto; color: color-mix(in srgb, var(--section-color) 70%, var(--pine-950)); background: transparent; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.section-card strong { display: block; margin: 0 0 .3rem; color: var(--pine-950); font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.section-card .section-name { color: var(--muted); font-size: .82rem; }
.section-arrow { grid-column: 1 / -1; display: flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--pine-700); font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.section-arrow b { font-size: 1rem; font-weight: 400; transition: transform .25s ease; }
.section-card:hover .section-arrow b { transform: translateX(.3rem); }

/* Valores como manifiesto, no como tarjetas */
.values-section { position: relative; overflow: hidden; color: var(--pine-950); background: color-mix(in srgb, var(--pine-100) 50%, #f8f5eb); }
.values-section::before { position: absolute; top: 3.5rem; left: 50%; color: color-mix(in srgb, var(--pine-700) 25%, transparent); content: "“"; font-family: Georgia, serif; font-size: 8rem; line-height: 1; transform: translateX(-50%); }
.values-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 3.5rem; background: transparent; }
.value { min-height: 0; padding: clamp(1.5rem, 4vw, 3.5rem); border-right: 1px solid var(--nature-line); background: transparent; text-align: center; }
.value:last-child { border-right: 0; }
.value > span { display: none; }
.value h2 { margin-bottom: .65rem; color: var(--pine-900); font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 600; }
.value p { max-width: 21rem; margin: 0 auto; color: var(--muted); font-size: .91rem; line-height: 1.75; }

/* Presentación de dos columnas, limpia */
.intro-section { background: var(--white); }
.intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(19rem, .82fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.intro-media { position: relative; min-height: clamp(27rem, 52vw, 39rem); overflow: hidden; border-radius: var(--nature-radius-media); box-shadow: none; }
.intro-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 68%, rgba(4,25,11,.48)); content: ""; }
.intro-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.intro-media:hover img { transform: scale(1.035); }
.intro-media > span { position: absolute; z-index: 1; right: 1.35rem; bottom: 1.2rem; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.intro-copy { max-width: 32rem; }
.intro-copy h2 { margin-bottom: .5em; }
.intro-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.text-link { position: relative; display: inline-flex; align-items: center; gap: .55rem; color: var(--pine-700); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.text-link::after { position: absolute; right: 0; bottom: -.3rem; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(.22); transform-origin: left; transition: transform .35s ease; }
.text-link:hover::after { transform: scaleX(1); }

/* Noticias sin cajas pesadas */
.news-section { background: #f7f6f1; }
.news-section .section-heading.compact { display: flex; max-width: none; align-items: end; justify-content: space-between; text-align: left; }
.news-section .section-heading.compact h2 { margin-bottom: 0; }
.news-grid { gap: clamp(1.5rem, 3vw, 2.4rem); }
.news-card { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.news-card:hover { border-color: transparent; box-shadow: none; transform: none; }
.news-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--nature-radius-media); background: var(--pine-100); }
.news-image img, .news-image-placeholder { transition: transform .75s cubic-bezier(.22,.61,.36,1); }
.news-card:hover .news-image img, .news-card:hover .news-image-placeholder { transform: scale(1.045); }
.news-card-body { padding: 1.35rem 0 0; }
.news-card h3 { margin-bottom: .55rem; font-size: 1.35rem; font-weight: 600; }
.news-card-body > p:not(.post-meta, .eyebrow) { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.post-meta { color: var(--pine-700); font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.placeholder-card { min-height: 16rem; padding: 2rem; border: 1px solid var(--nature-line); border-radius: var(--nature-radius-media); }

/* CTA fotográfica a ancho completo */
.cta-section { min-height: clamp(31rem, 62vw, 45rem); display: grid; align-items: center; padding-block: clamp(6rem, 12vw, 10rem); background-image: linear-gradient(rgba(5,24,10,.44), rgba(5,24,10,.54)), url("../images/forest-nature-v2.png"); background-position: center; background-size: cover; }
.cta-inner { display: block; max-width: 47rem; padding: 0; color: #fff; background: transparent; box-shadow: none; text-align: center; }
.cta-inner::after { display: none; }
.cta-inner img { width: clamp(4.25rem, 7vw, 6.3rem); margin: 0 auto 1.5rem; filter: brightness(0) invert(1); opacity: .94; }
.cta-inner h2 { max-width: 13ch; margin: 0 auto .4em; color: #fff; font-size: clamp(2.5rem, 5.5vw, 5rem); }
.cta-inner p { max-width: 39rem; margin: 0 auto 1.8rem; color: rgba(255,255,255,.86); line-height: 1.75; }
.cta-inner .eyebrow { color: rgba(255,255,255,.85); }
.cta-inner .button-light { color: var(--pine-950); border-color: var(--nature-yellow); background: var(--nature-yellow); }

/* Páginas interiores con la misma identidad */
.page-hero, .single-header { min-height: clamp(25rem, 52vw, 39rem); display: flex; align-items: center; padding-block: 8rem 5rem; border-radius: 0; color: #fff; text-align: center; }
body:not(.l330-custom-page-background) .page-hero,
body:not(.l330-custom-page-background) .single-header { background-image: linear-gradient(rgba(5,25,11,.38), rgba(5,25,11,.5)), url("../images/forest-nature-v2.png"); background-position: center; background-size: cover; }
.page-hero::after, .single-header::after { display: none; }
.page-hero .l330-container, .single-header .l330-container { position: relative; z-index: 2; }
.page-hero h1, .single-header h1 { max-width: 12ch; margin: 0 auto; color: #fff; font-size: clamp(3.1rem, 7vw, 6.2rem); }
.page-hero .eyebrow, .single-header .eyebrow { color: rgba(255,255,255,.84); }
.content-layout, .archive-layout { padding-block: clamp(4.5rem, 9vw, 8rem); }
.l330-private-area-page .page-hero { min-height: 12rem; padding-block: 3rem; color: var(--pine-950); background: var(--white) !important; text-align: left; }
.l330-private-area-page .page-hero h1 { margin-left: 0; color: var(--pine-950); font-size: clamp(2.4rem, 5vw, 4.4rem); }
.l330-private-area-page .page-hero .eyebrow { color: var(--pine-700); }
.l330-private-area-page .content-layout { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(4rem, 8vw, 7rem); }
.entry-content { color: var(--ink); line-height: 1.82; }
.entry-content > p:first-child { font-size: 1.1rem; }
.entry-content blockquote { padding: 1.7rem 2rem; border-left: 2px solid var(--pine-600); border-radius: 0; background: #f7f6f1; }
.single-featured { margin-top: -4rem; }
.single-featured img { border: .45rem solid #fff; border-radius: var(--nature-radius-media); }
.single-entry .entry-content { padding-block: 4.5rem 7rem; }
.entry-content > .l330-form, .entry-content > .l330-login-card { border: 1px solid var(--nature-line); border-radius: var(--nature-radius-media); box-shadow: none; }

/* Pie blanco y sobrio */
.site-footer { color: var(--muted); background: var(--white); }
.footer-grid { grid-template-columns: 1.2fr .8fr .7fr; gap: clamp(2rem, 7vw, 6rem); padding-block: clamp(4.5rem, 8vw, 7rem); }
.footer-logo { width: 13rem; margin-bottom: 1.4rem; filter: none; opacity: .96; }
.footer-grid > div:first-child p { max-width: 23rem; color: var(--muted); }
.site-footer h2 { margin-bottom: 1.2rem; color: var(--pine-950); font-family: var(--nature-body); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.site-footer address, .site-footer li { margin-bottom: .35rem; color: var(--muted); font-size: .86rem; }
.site-footer a { color: var(--pine-900); text-decoration-color: transparent; }
.site-footer a:hover { color: var(--pine-700); text-decoration-color: currentColor; }
.footer-bottom { padding-block: 1.45rem; border-top-color: var(--nature-line); }

/* Movimiento discreto y coherente */
.l330-enhanced [data-theme-reveal] { opacity: 0; transform: translateY(1.4rem); }
.l330-enhanced [data-theme-reveal].is-visible { transition-duration: .75s, .8s; }

@media (max-width: 66rem) {
  .primary-navigation { padding: 1rem clamp(1rem, 4vw, 2rem); color: var(--pine-950); background: rgba(255,255,255,.98); backdrop-filter: blur(18px); }
  .l330-front-page .primary-navigation .menu > li > a { color: var(--pine-950); }
  .section-card, .section-card:nth-child(4), .section-card:nth-child(5) { grid-column: span 3; }
  .section-card:last-child { grid-column: 2 / span 4; }
}

@media (max-width: 48rem) {
  .admin-bar .site-header { top: 46px; }
  .l330-container { width: min(calc(100% - 1.5rem), 74rem); }
  .l330-section { padding-block: 4.8rem; }
  .hero, .hero-content { min-height: 100svh; }
  .l330-front-page:not(.l330-custom-hero) .hero { background-position: 58% center; }
  .hero-content { padding-block: 8rem 4rem; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.9rem); }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: min(100%, 20rem); }
  .section-heading { margin-bottom: 2.8rem; }
  .section-cards { display: grid; gap: 2.2rem; }
  .section-card, .section-card:nth-child(4), .section-card:nth-child(5), .section-card:last-child { min-width: 0; grid-column: 1 / -1; }
  .section-card-photo { aspect-ratio: 16 / 10; }
  .values-grid { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .value { padding: 2rem .5rem; border-right: 0; border-bottom: 1px solid var(--nature-line); }
  .value:last-child { border-bottom: 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { min-height: 25rem; }
  .news-section .section-heading.compact { display: grid; gap: 1.25rem; align-items: start; }
  .news-grid { gap: 3rem; }
  .cta-section { min-height: 36rem; }
  .page-hero, .single-header { min-height: 28rem; padding-block: 7rem 4rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .section-card-photo img, .section-card-mark, .section-arrow b, .intro-media img, .news-image img { transition: none !important; }
}

@media print {
  .hero, .page-hero, .single-header, .cta-section { min-height: 0; color: #000; background: #fff !important; }
}
