:root {
  --blue: #72a7ce;
  --blue-soft: #dfeefa;
  --lime: #c9f23d;
  --ink: #0d1f13;
  --forest: #102912;
  --paper: #f2f3f1;
  --white: #fff;
  --muted: #5e665f;
  --line: #d4d8d3;
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1680px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { line-height: .96; letter-spacing: -.052em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.95rem); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.site-wrap { width: min(calc(100% - 20px), var(--max)); margin: 10px auto 24px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 18px; color: var(--ink); background: var(--lime); border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 18px; }

.hero-shell { position: relative; min-height: 720px; overflow: hidden; padding: 0 42px; color: var(--ink); background: var(--blue); border-radius: var(--radius); }
.hero-shell::before { content: ""; position: absolute; width: 720px; height: 720px; right: -230px; top: 80px; border: 1px solid rgba(13,31,19,.2); border-radius: 50%; box-shadow: 0 0 0 90px rgba(13,31,19,.035), 0 0 0 180px rgba(13,31,19,.025); }
.site-header { position: relative; z-index: 20; min-height: 94px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; border-bottom: 1px solid rgba(13,31,19,.32); }
.brand { display: inline-flex; width: 205px; max-width: 300px; padding: 7px 11px; background: rgba(255,255,255,.94); border-radius: 12px; box-shadow: 0 8px 24px rgba(13,31,19,.08); }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 34px; }
.main-nav a { position: relative; color: var(--ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.main-nav a::after { content: "+"; margin-left: 7px; color: var(--forest); }
.main-nav a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.header-cta, .pill { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 23px; border-radius: 999px; font-size: .94rem; font-weight: 800; text-decoration: none; transition: transform .25s ease, background .25s ease; }
.header-cta { color: var(--white); background: var(--ink); box-shadow: 0 0 0 5px rgba(201,242,61,.16); }
.header-cta:hover, .pill:hover { transform: translateY(-3px); }
.menu-toggle { display: none; }
.hero-content { position: relative; z-index: 2; min-height: 620px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-copy { position: relative; z-index: 3; align-self: center; padding: 30px 0 76px; }
.eyebrow, .section-label { margin-bottom: 24px; font-size: .73rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { color: var(--ink); }
.hero-copy h1 { max-width: 760px; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin-top: 26px; color: var(--ink); font-size: clamp(1rem, 1.45vw, 1.18rem); }
.pill-lime { margin-top: 30px; color: var(--ink); background: var(--lime); }
.pill-dark { margin-top: 28px; color: var(--white); background: var(--ink); }
.hero-team { position: absolute; z-index: 2; width: 66%; max-width: 820px; height: auto; right: -55px; bottom: -42px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 20px 35px rgba(14,44,62,.22)); }
.hero-line { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(to top, rgba(16,41,18,.1), transparent); }

.intro-panels { position: relative; z-index: 5; display: grid; grid-template-columns: 1.15fr .72fr .67fr; gap: 26px; margin-top: -52px; padding: 0 18px; }
.intro-panels article { height: 320px; min-height: 0; overflow: hidden; border-radius: var(--radius); }
.intro-media { position: relative; color: var(--white); background: var(--forest); }
.intro-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,21,9,.88), rgba(4,21,9,.15)); }
.intro-media > img { width: 100%; height: 100%; object-fit: cover; }
.intro-media-copy { position: absolute; z-index: 2; left: 30px; bottom: 30px; max-width: 390px; }
.intro-media-copy p, .intro-action > p { margin-bottom: 12px; font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.intro-media-copy h2, .intro-action h2 { font-size: clamp(1.65rem, 2.4vw, 2.6rem); }
.round-link { position: absolute; z-index: 3; right: 28px; bottom: 28px; width: 62px; height: 62px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; font-size: 1.4rem; text-decoration: none; }
.intro-statement { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.intro-statement > p { font-size: clamp(.95rem, 1.2vw, 1.25rem); line-height: 1.3; font-weight: 650; letter-spacing: -.03em; }
.statement-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.statement-bottom strong { font-size: 1.15rem; }
.statement-bottom span { color: var(--muted); font-size: .8rem; }
.intro-action { display: flex; flex-direction: column; padding: 28px; background: var(--lime); }
.intro-action h2 { margin-top: auto; }
.intro-action a { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(13,31,19,.35); font-weight: 800; text-decoration: none; }

.section-block { margin-top: 20px; padding: clamp(56px, 7vw, 100px) clamp(26px, 5vw, 68px); background: var(--white); border-radius: var(--radius); }
.section-label { color: #46604d; }
.section-label.light { color: rgba(255,255,255,.63); }
.about-heading, .services-heading { display: grid; grid-template-columns: 1.15fr .6fr; gap: clamp(40px, 8vw, 110px); align-items: end; }
.about-heading p, .services-heading p { color: var(--muted); font-size: 1.03rem; }
.about-visual { position: relative; min-height: 620px; margin-top: 70px; }
.about-visual > img { width: calc(100% - 240px); height: 620px; object-fit: cover; border-radius: var(--radius); }
.vision-card { position: absolute; right: 0; width: 330px; min-height: 255px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; border-radius: var(--radius); }
.vision-card span { margin-bottom: auto; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.vision-card h3 { margin-top: 35px; font-size: 1.8rem; }
.vision-card p { margin-top: 16px; font-size: .9rem; line-height: 1.55; }
.dark-card { top: -24px; color: var(--white); background: var(--forest); }
.dark-card p { color: rgba(255,255,255,.68); }
.lime-card { bottom: -24px; background: var(--lime); }

.services-section { padding-block: clamp(42px, 4vw, 54px); background: #f8f9f7; }
.service-showcase { display: grid; grid-template-columns: 1.2fr .8fr .72fr; gap: 18px; margin-top: 34px; }
.service-card { position: relative; min-height: 370px; overflow: hidden; color: var(--white); background: var(--forest); border-radius: var(--radius); }
.service-card > img { width: 100%; height: 100%; object-fit: cover; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,20,9,.92), transparent 65%); }
.service-overlay { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; }
.service-overlay span, .service-card-lime > span { display: block; margin-bottom: 12px; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.service-overlay h3 { max-width: 420px; }
.service-overlay p { max-width: 450px; margin-top: 14px; color: rgba(255,255,255,.68); font-size: .9rem; }
.service-card-lime { display: flex; flex-direction: column; padding: 24px; color: var(--ink); background: var(--lime); }
.service-card-lime::after { display: none; }
.service-card-lime h3 { margin-top: auto; }
.service-card-lime ul { margin: 18px 0 0; padding: 0; list-style: none; }
.service-card-lime li { padding: 8px 0; border-top: 1px solid rgba(13,31,19,.28); font-size: .88rem; font-weight: 700; }

.grazing-section { background: var(--blue-soft); }
.grazing-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 8vw, 105px); align-items: center; }
.grazing-copy h2 { max-width: 620px; }
.grazing-copy > p { margin-top: 28px; color: #46584c; font-size: 1.02rem; }
.mini-features { display: grid; margin-top: 34px; border-top: 1px solid rgba(13,31,19,.2); }
.mini-features span { padding: 14px 0; border-bottom: 1px solid rgba(13,31,19,.2); font-size: .88rem; font-weight: 800; }
.mini-features span::before { content: "↗"; margin-right: 12px; }
.grazing-images { position: relative; min-height: 590px; }
.grazing-main { position: absolute; inset: 0 70px 50px 0; width: calc(100% - 70px); height: calc(100% - 50px); object-fit: cover; border-radius: var(--radius); }
.grazing-inset { position: absolute; right: 0; bottom: 0; width: 240px; height: 190px; object-fit: cover; border: 8px solid var(--blue-soft); border-radius: var(--radius-sm); }

.ovine-section { display: grid; grid-template-columns: 1.08fr .92fr; padding: 0; overflow: hidden; }
.ovine-image img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; }
.ovine-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5.5vw, 72px); background: var(--lime); }
.ovine-copy h2 { font-size: clamp(1.9rem, 3.2vw, 3.45rem); }
.ovine-copy p { margin-top: 28px; }

.documents-section { display: grid; grid-template-columns: .55fr 1fr; gap: clamp(50px, 9vw, 120px); color: var(--white); background: var(--forest); }
.documents-intro { position: sticky; top: 30px; align-self: start; }
.documents-intro p { max-width: 380px; margin-top: 24px; color: rgba(255,255,255,.65); }
.accordion { border-top: 1px solid rgba(255,255,255,.22); }
.year-group { border-bottom: 1px solid rgba(255,255,255,.22); }
.year-group summary { min-height: 94px; display: grid; grid-template-columns: 1fr auto 22px; align-items: center; gap: 22px; list-style: none; cursor: pointer; }
.year-group summary::-webkit-details-marker { display: none; }
.year-group summary span { font-size: 2rem; font-weight: 800; }
.year-group summary small { color: rgba(255,255,255,.55); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.year-group summary i { position: relative; width: 20px; height: 20px; }
.year-group summary i::before,.year-group summary i::after { content: ""; position: absolute; left: 1px; top: 9px; width: 18px; height: 2px; background: var(--lime); transition: transform .25s ease; }
.year-group summary i::after { transform: rotate(90deg); }
.year-group[open] summary i::after { transform: none; }
.document-list { padding-bottom: 28px; }
.document-list a { min-height: 50px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.78); font-size: .9rem; text-decoration: none; transition: background .2s ease, padding .2s ease; }
.document-list a:hover { padding-left: 18px; color: var(--white); background: rgba(255,255,255,.06); }
.document-list a span,.document-list a i { color: var(--lime); font-size: .68rem; font-style: normal; font-weight: 850; }

.location-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.location-copy address { margin-top: 28px; color: var(--muted); font-style: normal; }
.location-photo { position: relative; overflow: hidden; min-height: 510px; border-radius: var(--radius); }
.location-photo > img { width: 100%; height: 510px; object-fit: cover; }
.location-badge { position: absolute; right: 22px; bottom: 22px; display: grid; padding: 20px 26px; background: var(--lime); border-radius: var(--radius-sm); }
.location-badge strong { font-size: 1.5rem; }
.location-badge span { font-size: .8rem; }

.contact-section { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(50px, 10vw, 135px); color: var(--ink); background: var(--blue); }
.contact-section .section-label { color: var(--ink); }
.contact-list { border-top: 1px solid rgba(13,31,19,.32); }
.contact-list a { min-height: 100px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; border-bottom: 1px solid rgba(13,31,19,.32); text-decoration: none; }
.contact-list span { color: var(--ink); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-list strong { font-size: clamp(1rem, 1.8vw, 1.3rem); overflow-wrap: anywhere; }
.contact-list i { grid-column: 2; grid-row: 1/3; align-self: center; font-style: normal; font-size: 1.2rem; }

@media (min-width: 821px) {
  .about-section { margin-top: 42px; padding-top: clamp(64px, 5.5vw, 82px); padding-bottom: clamp(48px, 4.5vw, 64px); }
  .grazing-section { padding-top: clamp(50px, 4.5vw, 68px); padding-bottom: clamp(50px, 4.5vw, 68px); }
  .documents-section { padding-top: clamp(48px, 4vw, 62px); padding-bottom: clamp(48px, 4vw, 62px); }
  .location-section { padding-top: clamp(48px, 4vw, 62px); padding-bottom: clamp(48px, 4vw, 62px); }
  .contact-section { padding-top: clamp(46px, 3.8vw, 58px); padding-bottom: clamp(46px, 3.8vw, 58px); }
}

.site-footer { margin-top: 22px; overflow: hidden; color: var(--white); background: var(--forest); border-radius: var(--radius); }
.footer-brand { min-height: 240px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 60px; padding: 45px 58px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-brand img { width: 230px; max-width: 300px; height: auto; padding: 9px 13px; background: var(--white); border-radius: 12px; }
.footer-brand p { max-width: none; justify-self: end; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.05; letter-spacing: -.04em; white-space: nowrap; }
.footer-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; padding: 24px 58px; }
.site-footer nav { display: flex; justify-self: center; gap: 30px; }
.site-footer nav a { color: rgba(255,255,255,.7); font-size: .84rem; font-weight: 700; text-decoration: none; }
.footer-bottom > span,.footer-bottom > a { color: rgba(255,255,255,.55); font-size: .75rem; }
.footer-bottom > a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-delay { transition-delay: .12s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1030px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: .82rem; }
  .hero-team { width: 62%; right: -70px; }
  .intro-panels { grid-template-columns: 1fr 1fr; }
  .intro-media { grid-column: 1/-1; }
  .service-showcase { grid-template-columns: 1fr 1fr; }
  .service-card-lime { grid-column: 1/-1; min-height: 360px; }
}

@media (max-width: 820px) {
  .site-wrap { width: min(calc(100% - 16px), var(--max)); margin-top: 8px; }
  .hero-shell { min-height: 760px; padding: 0 22px; }
  .site-header { min-height: 80px; grid-template-columns: auto 1fr; }
  .brand { width: 178px; }
  .header-cta { display: none; }
  .menu-toggle { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0; color: var(--ink); background: none; border: 0; font: inherit; font-weight: 800; }
  .menu-toggle i,.menu-toggle i::before,.menu-toggle i::after { width: 23px; height: 2px; display: block; background: currentColor; }
  .menu-toggle i { position: relative; }
  .menu-toggle i::before,.menu-toggle i::after { content: ""; position: absolute; left: 0; }
  .menu-toggle i::before { top: -7px; }
  .menu-toggle i::after { top: 7px; }
  .main-nav { position: absolute; inset: 78px 0 auto; display: grid; gap: 0; padding: 12px; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 18px 45px rgba(0,0,0,.14); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 12px; color: var(--ink); font-size: .95rem; }
  .hero-content { grid-template-columns: 1fr; min-height: 680px; align-items: start; }
  .hero-copy { align-self: start; padding: 38px 0 0; }
  .hero-copy h1 { font-size: clamp(2.4rem, 7.5vw, 3.4rem); }
  .hero-team { width: 110%; max-width: 650px; right: -60px; bottom: -20px; }
  .intro-panels { align-items: start; margin-top: 18px; padding: 0; }
  .intro-panels article { height: auto; min-height: 0; }
  .intro-media { height: 320px; }
  .intro-statement,.intro-action { padding: 24px; }
  .intro-statement { gap: 18px; }
  .intro-statement > p { font-size: .88rem; }
  .statement-bottom { padding-top: 16px; }
  .intro-action h2 { margin-top: 24px; }
  .intro-action a { margin-top: 22px; }
  .about-heading,.services-heading,.grazing-grid,.documents-section,.location-section,.contact-section { grid-template-columns: 1fr; }
  .about-heading { gap: 24px; }
  .about-visual { min-height: 710px; margin-top: 34px; }
  .about-visual > img { width: 100%; height: 500px; }
  .vision-card { width: 47%; min-height: 260px; }
  .dark-card { top: auto; bottom: -40px; right: auto; left: 0; }
  .lime-card { bottom: -40px; right: 0; }
  .grazing-images { min-height: 520px; }
  .documents-intro { position: static; }
  .ovine-section { grid-template-columns: 1fr; }
  .service-card-lime { min-height: 0; }
  .service-card-lime h3 { margin-top: 18px; }
  .contact-section { gap: 28px; padding-top: 38px; padding-bottom: 38px; }
  .contact-list a { min-height: 80px; }
  .footer-brand { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding: 30px 36px; }
  .footer-brand p { justify-self: start; font-size: clamp(.82rem, 2.3vw, 1rem); white-space: nowrap; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 18px 28px; padding: 20px 36px; }
  .footer-bottom nav { grid-column: 1/-1; grid-row: 1; justify-self: start; }
  .footer-bottom > span { grid-column: 1; grid-row: 2; }
  .footer-bottom > a { grid-column: 2; grid-row: 2; }
}

@media (max-width: 580px) {
  h1 { font-size: clamp(2.3rem, 11vw, 3.3rem); }
  h2 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-shell { min-height: 780px; border-radius: 22px; }
  .hero-content { min-height: 700px; }
  .hero-copy { align-self: start; padding: 34px 0 0; }
  .brand { width: 165px; }
  .hero-copy > p:not(.eyebrow) { font-size: .98rem; }
  .hero-team { width: 130%; max-width: none; right: -10px; bottom: -20px; }
  .intro-panels { grid-template-columns: 1fr; }
  .intro-media { grid-column: auto; height: 340px !important; }
  .intro-panels article { height: auto; min-height: 260px; }
  .intro-panels .intro-statement,.intro-panels .intro-action { min-height: 0; padding: 24px; }
  .intro-statement { gap: 22px; }
  .statement-bottom { padding-top: 18px; }
  .intro-action h2 { margin-top: 26px; }
  .intro-action a { margin-top: 24px; }
  .section-block { padding: 52px 22px; border-radius: 22px; }
  .about-visual { min-height: 0; margin-top: 26px; }
  .about-visual > img { height: 430px; }
  .vision-card { position: relative; width: 100%; min-height: 0; right: auto; bottom: auto; left: auto; top: auto; margin-top: 14px; padding: 26px; }
  .vision-card span { margin-bottom: 0; }
  .vision-card h3 { margin-top: 18px; }
  .service-showcase { grid-template-columns: 1fr; }
  .service-card,.service-card-lime { grid-column: auto; min-height: 340px; }
  .service-card-lime { min-height: 0; }
  .service-card-lime h3 { margin-top: 18px; }
  .grazing-images { min-height: 430px; }
  .grazing-main { inset: 0 35px 35px 0; width: calc(100% - 35px); height: calc(100% - 35px); }
  .grazing-inset { width: 145px; height: 120px; border-width: 5px; }
  .ovine-image img { min-height: 380px; }
  .year-group summary { grid-template-columns: 1fr 22px; }
  .year-group summary small,.document-list a i { display: none; }
  .document-list a { grid-template-columns: 28px 1fr; font-size: .82rem; }
  .location-photo,.location-photo > img { min-height: 380px; height: 380px; }
  .footer-brand,.footer-bottom { padding-inline: 26px; }
  .footer-brand p { white-space: normal; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Personalización local de Goosialize Cookies; conserva intacto el plugin. */
body .goo-consent .goo-consent__settings {
  right: auto;
  left: 18px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

body .goo-consent .goo-consent__settings::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: url("../icons/icono-ajustes-cookies.svg") center / 30px 30px no-repeat;
  transform: translateY(2px);
}

@media (max-width: 760px) {
  body .goo-consent .goo-consent__settings {
    right: auto;
    left: 12px;
  }
}
