/*
Theme Name: Semiagro
Author: Daniel Arenas
Description: Tema WordPress de Semiagro basado en Figma, con contenido editable mediante bloques nativos.
Version: 2.2.0
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: semiagro
*/
@font-face { font-family: Montserrat; src: url(assets/montserrat-400.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(assets/montserrat-500.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(assets/montserrat-700.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Montserrat; src: url(assets/montserrat-900.ttf) format('truetype'); font-weight: 900; font-display: swap; }
:root { --green: #009245; --lime: #a9d342; --cream: #f7eddc; --orange: #f18f1a; --wrap: 1160px; --button-radius: 999px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; font-family: Montserrat, Arial, sans-serif; color: var(--green); background: white; font-size: 16px; line-height: 1.6; }
body.semiagro-surface-cream { background: var(--cream); }
body.semiagro-surface-green { background: var(--green); }
img { max-width: 100%; height: auto; display: block; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
h1, h2, h3 { overflow-wrap: break-word; font-weight: 700; line-height: 1.14545; }
h2 { font-size: 34px; line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.25; }
button { font: inherit; cursor: pointer; }
a, button, input, summary { touch-action: manipulation; outline-offset: 6px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); }
.wrap { width: calc(100% - 80px); max-width: var(--wrap); margin-inline: auto; }
.wp-block-group { position: relative; }
.wp-block-group > * { margin-block-start: 0; margin-block-end: 0; min-width: 0; }
.wp-block-image { margin: 0; }
.eyebrow { font-size: 17px; line-height: 25.5px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.wp-block-button__link, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 160px; min-height: 48px; padding: 14px 24px; border: 0; border-radius: var(--button-radius); background: var(--green); color: white; text-decoration: none; font-size: 16px; font-weight: 500; line-height: 1.3; }
.wp-block-button__link:hover, .button:hover { filter: brightness(.92); }
.lime .wp-block-button__link { background: var(--lime); color: var(--green); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Cabecera y navegación compartidas. */
.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; }
.admin-bar .site-header { top: 32px; }
.header-inner { max-width: var(--wrap); width: calc(100% - 80px); margin: auto; display: flex; align-items: flex-start; justify-content: space-between; }
.brand { position: relative; width: 200px; height: 84px; display: block; margin-left: 0; flex-shrink: 0; }
.brand-base { position: absolute; inset: 0; background: url(assets/imgVector2.svg) center/contain no-repeat; transform: rotate(180deg); }
.brand-word { position: absolute; left: 10.88%; top: 32.25%; width: 76.03%; height: 22.45%; background: url(assets/imgGroup.svg) center/contain no-repeat; }
.brand-swoosh { position: absolute; left: 11.94%; top: 44.82%; width: 77.18%; height: 35.88%; background: url(assets/imgGroup1.svg) center/contain no-repeat; }
.header-actions { display: flex; gap: 16px; padding-top: 22px; }
.header-actions .button { min-width: 0; height: 46px; min-height: 46px; padding: 0 20px; font-size: 14px; }
.header-actions .contact-link { width: auto; }
.header-actions [data-menu-open] { width: auto; font: 500 14px/1.3 Montserrat, Arial, sans-serif; gap: 12px; padding: 0 20px; }
.wa-icon { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; background: url(assets/whatsapp-icon.svg) center/contain no-repeat; }
.hamburger { flex-shrink: 0; width: 22px; height: 16px; border-block: 2px solid white; position: relative; }
.hamburger::after { content: ''; position: absolute; top: 5px; left: 0; width: 16px; height: 2px; background: white; }
.menu-dialog { position: fixed; inset: 0 0 0 auto; height: fit-content; max-height: 100dvh; margin: 0; width: min(420px,100%); max-width: 100%; padding: 24px 28px 28px; border: 0; border-radius: 0 36px 0 36px; background: var(--green); color: white; z-index: 40; overflow: auto; }
.menu-dialog::backdrop { background: #002e22a8; }
.menu-logo { width: 113px; height: 29px; background: url(assets/imgLogotipo.svg) center/contain no-repeat; display: block; }
.menu-close { position: absolute; right: 20px; top: 10px; border: 0; background: none; color: white; width: 44px; height: 44px; font-size: 0; }
.menu-close::before, .menu-close::after { content: ''; position: absolute; width: 28px; height: 2px; left: 8px; top: 21px; background: #efefef; transform: rotate(45deg); }
.menu-close::after { transform: rotate(135deg); }
.menu-dialog nav { padding-top: 24px; }
.menu-dialog ul { list-style: none; padding: 0; margin: 0; }
.menu-dialog li { margin: 0; }
.menu-dialog nav a { display: block; font-size: 32px; line-height: 1.6; font-weight: 700; text-decoration: none; }
.menu-secondary { margin: 20px -28px 0; padding: 20px 28px; border-block: 1px solid #ffffff80; }
.menu-secondary a { display: block; font-size: 22px; font-weight: 700; line-height: 1.6; text-decoration: none; }
.menu-contact { padding-top: 22px; font-size: 14px; overflow-wrap: anywhere; line-height: 1.7; }
.menu-contact a { text-decoration: none; }
.menu-contact a:hover, .menu-dialog nav a:hover, .menu-secondary a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Inicio: escala editorial compacta; los contenidos siguen siendo bloques nativos. */
.hero { height: 700px; color: white; }
.hero-photo { position: absolute !important; inset: 0 0 auto; height: 860px; overflow: hidden; }
.hero-photo img { position: absolute; width: 142.77%; max-width: none; height: 860px; left: -13.86%; top: 0; object-fit: cover; }
.hero-copy { padding-top: 160px; z-index: 1; }
.hero .eyebrow { font-size: 13px; line-height: 1.6; letter-spacing: .05em; }
.hero h1 { font-size: clamp(28px,calc(20px + 2.5vw),56px); font-weight: 500; line-height: 1.16; max-width: 660px; margin-top: 24px; letter-spacing: -.025em; }
.hero-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.65; max-width: 490px; margin: 28px 0; }
.intro { background: var(--green); color: white; text-align: center; border-radius: 80px 80px 0 0; min-height: 300px; padding: 56px 20px 80px; z-index: 1; }
.intro figure { display: flex; justify-content: center; margin-bottom: 24px; }
.intro p { font-size: 16px; line-height: 1.6; }
.intro-pagination { display: flex; justify-content: center; align-items: center; gap: 18px; height: 24px; margin-top: 24px; }
.intro-pagination span { display: block; width: 7px; height: 7px; background: #ffffff40; border-radius: 50%; }
.intro-pagination span:nth-child(2) { background: #bbdb6e; }
.products { background: var(--cream); border-radius: 80px 80px 0 0; margin-top: -56px; padding: 64px 0 72px; z-index: 2; }
.products > .wrap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; align-items: start; }
.intro figure img { width: 140px; height: auto; }
.products-head { display: grid; grid-template-columns: minmax(0,504fr) minmax(0,602fr); gap: 48px; margin-bottom: 36px; align-items: center; grid-column: 1 / -1; }
.product-copy h2 { margin-top: 4px; font-size: 30px; line-height: 1.2; }
.product-copy p { margin-top: 20px; font-size: 16px; line-height: 1.65; max-width: 400px; }
.products-head figure { height: 210px; }
.leaf { border-radius: 160px 0 160px 0; overflow: hidden; }
.leaf img { width: 100%; height: 100%; object-fit: cover; }
/* Cultivos visibles desde el primer vistazo; tarjetas editables en Gutenberg. */
.hero h1 strong { font-weight: 700; }
.home-seed-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; grid-column: 1 / -1; }
.home-seed-card { display: flex; flex-direction: column; min-width: 0; background: #fffdf9; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 24px #3c2d140d; transition: translate .25s ease, box-shadow .25s ease; }
.home-seed-card > figure { flex: none; aspect-ratio: 4/3; overflow: hidden; }
.home-seed-card > figure img { width: 100%; height: 100%; object-fit: cover; transition: scale .35s ease; }
.home-seed-card-copy { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 18px; min-height: 132px; position: static; }
.home-seed-card h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }
.home-seed-card h3 span { display: block; font-size: 13px; font-weight: 400; line-height: 1.5; margin-bottom: 4px; }
.home-seed-card a { text-decoration: none; }
.home-seed-card a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.home-seed-card:has(a:focus-visible) { outline: 3px solid var(--green); outline-offset: 4px; }
.home-seed-card a:focus-visible { outline: none; }
.home-seed-card-copy p { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; font-size: 13px; line-height: 1.5; font-weight: 500; }
.home-seed-card-copy p span { font-size: 20px; line-height: 1; }
.products-links { grid-column: 1 / -1; margin-top: 28px; gap: 12px; }
.products-links .is-style-outline .wp-block-button__link { background: transparent; color: var(--green); border: 1px solid var(--green); }
@media (hover: hover) {
  .home-seed-card:hover { translate: 0 -4px; box-shadow: 0 12px 28px #3c2d141a; }
  .home-seed-card:hover img { scale: 1.035; }
}
.wp-block-details { overflow: hidden; border-radius: 24px; background: var(--lime); color: white; position: relative; }
.wp-block-details.hortalizas { background: var(--orange); border-radius: 24px; padding-bottom: 0; margin-bottom: 0; }
.wp-block-details summary { cursor: pointer; list-style: none; min-height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; font: 500 26px/1.25 Montserrat, Arial, sans-serif; letter-spacing: 0; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ''; width: 24px; height: 24px; background: url(assets/imgComponent1.svg) center/contain no-repeat; flex-shrink: 0; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.accordion-body { min-height: 230px; display: flex; align-items: flex-start; justify-content: center; padding: 28px; gap: 24px; isolation: isolate; flex-direction: column; }
.accordion-body figure { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.accordion-body img { width: 100%; height: 100%; object-fit: cover; }
.hortalizas .accordion-body figure { bottom: 0; height: auto; }
.capsicum .accordion-body img { position: static; height: 100%; top: auto; object-fit: cover; }
.accordion-body::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#002717cc,#00271755); z-index: -1; }
.accordion-body p { font-size: 18px; line-height: 1.6; max-width: 340px; }
.section-background { position: absolute !important; inset: 0; overflow: hidden; z-index: 0; }
.section-background img { width: 100%; height: 100%; object-fit: cover; }
.about-home .section-background img { object-fit: fill; }
.about-home { border-radius: 0 0 80px 80px; overflow: hidden; color: white; }
.about-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px; padding: 72px 0; align-items: center; }
.about-copy h2 { font-size: 44px; line-height: 1.15; letter-spacing: -.02em; max-width: 506px; }
.about-copy p { font-size: 18px; line-height: 1.65; width: 541px; max-width: 100%; margin: 28px 0; }
.about-photo { height: 500px; position: relative; border-radius: 150px 0 150px 0; }
.about-photo img { position: absolute; max-width: none; width: 160.33%; height: 135.3%; left: -32.24%; top: -20.68%; object-fit: fill; }
.brands { display: grid; grid-template-columns: repeat(4,minmax(0,180px)); gap: 48px; align-items: center; height: 220px; max-width: 1194px; justify-content: space-between; }
.brands figure { position: relative; height: 180px; overflow: hidden; }
.brands img { position: absolute; max-width: none; height: auto; object-fit: contain; }
.brands figure:nth-child(1) img { width: 107.2%; left: -3.81%; top: 25px; }
.brands figure:nth-child(2) img { width: 125.42%; left: -12.71%; top: 16px; }
.brands figure:nth-child(3) img { width: 139.41%; left: -19.92%; top: 0; }
.brands figure:nth-child(4) img { width: 130.09%; left: -17.8%; top: 7px; }
.field-gallery { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.field-gallery::-webkit-scrollbar { display: none; }
.field-gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.field-gallery.is-animating { scroll-snap-type: none; scroll-behavior: auto; }
.field-gallery:focus { outline: none; }
.field-gallery:focus-visible:not(.is-pointer-interaction) figure { outline: 2px solid var(--green); outline-offset: -2px; }
.field-gallery figure { position: relative; flex: 0 0 55.7%; height: 380px; overflow: hidden; scroll-snap-align: center; border-radius: 5px; }
.field-gallery img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.field-gallery figure:first-child img, .field-gallery .gallery-portrait img { position: absolute; height: 222.23%; top: -35.7%; object-fit: fill; }
.micros { min-height: 340px; padding: 64px 0; color: white; isolation: isolate; }
.micros::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#0009,transparent); z-index: 0; }
.micros .wrap { z-index: 1; }
.micros h2 { font-size: 44px; line-height: 1.2; letter-spacing: -.02em; }
.micros p { font-size: 18px; line-height: 1.6; margin: 24px 0 28px; }
.micros .section-background img { position: absolute; height: 168.84%; top: -53.68%; object-fit: fill; }
.contact-banner { height: 360px; overflow: hidden; }
.contact-banner .section-background img { position: absolute; height: 177.73%; top: -38.86%; object-fit: fill; }
.contact-bubble { margin-left: auto; background: linear-gradient(to right,transparent 170px,var(--green) 170px); color: white; height: 100%; width: 560px; max-width: 60%; padding: 48px 60px 40px 90px; text-align: right; }
.contact-bubble::before { content: ''; position: absolute; left: 0; top: 0; width: 360px; height: 360px; background: url(assets/imgEllipse1.svg) center/contain no-repeat; }
.contact-bubble > * { position: relative; }
.contact-bubble h2 { font-size: 44px; line-height: 1.2; letter-spacing: -.02em; }
.contact-bubble p { font-size: 18px; line-height: 1.6; margin: 24px 0; }
.contact-bubble .wp-block-buttons { justify-content: flex-end; }

/* Nosotros. */
.about-page, .contact-page { background: var(--green); color: white; }
.about-top { background: var(--lime); border-radius: 0 0 80px 0; padding: 136px 0 56px; margin-right: 60px; }
.about-intro { display: grid; grid-template-columns: minmax(0,520fr) minmax(0,640fr); background: var(--green); border-radius: 28px 28px 80px 28px; overflow: hidden; max-width: 1160px; min-height: 470px; margin-left: max(40px,calc((100vw - 1160px)/2)); }
.about-intro > figure { position: relative; overflow: hidden; }
.about-intro > figure img { position: absolute; width: 111.54%; max-width: none; height: 121.14%; left: -5.69%; top: -12.23%; object-fit: fill; }
.about-intro-copy { padding: 48px; }
.about-intro h1 { font-size: 36px; line-height: 1.2; margin: 19px 0; }
.about-intro-copy p + p { margin-top: 25.5px; }
.spacious { padding-block: 64px; }
.spacious h2 { margin: 19px 0 20px; }
.specialists { padding: 64px 0 72px; }
.wide-photo { height: 440px; border-radius: 37px; margin-top: 36px; overflow: hidden; position: relative; }
.wide-photo img { position: absolute; width: 115.98%; max-width: none; height: 169.58%; left: -12.75%; top: -34.7%; object-fit: fill; }
.stats { background: white; color: var(--green); min-height: 0; padding: 56px 0; border-radius: 80px 0 80px 0; }
.stats-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; min-height: 0; margin-bottom: 36px; }
.stats-head h2 { letter-spacing: -.96px; }
.stats-head p { text-align: right; line-height: 22.74px; max-width: 430px; justify-self: end; }
.stat-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #0b0e1224; min-height: 96px; gap: 25px; }
.stat-row:nth-child(2) { border-top: 0; }
.stat-row > p:first-child { font-weight: 500; }
.stat-value { flex-shrink: 0; font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.alliances { padding: 64px 0; }
.alliance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 36px; }
.alliance-card { background: white; color: #00ad5e; border-radius: 32px; padding: 30px; min-height: 260px; }
.alliance-card figure { width: 140px; height: 112px; position: relative; overflow: hidden; }
.alliance-card img { position: absolute; height: auto; max-width: none; width: 121.42%; left: -15.71%; top: -1px; }
.alliance-card:nth-child(2) img { width: 168.58%; left: -34.29%; top: -22px; }
.alliance-card:nth-child(3) img { width: 132.86%; left: -16.43%; top: -6px; }
.alliance-card:nth-child(4) img { width: 137.14%; left: -18.57%; top: -8px; }
.alliance-card h3 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.alliance-card p { font-size: 16px; line-height: 1.6; }
.values { display: grid; grid-template-columns: minmax(0,504fr) minmax(0,656fr); background: var(--orange); border-radius: 36px; overflow: hidden; min-height: 640px; }
.values-copy { padding: 48px 40px; overflow: hidden; }
.values-copy::after { content: ''; position: absolute; left: 46%; top: 45.53%; width: 427.78px; height: 399.802px; background: url(assets/extra0-imgVariant6.svg) center/contain no-repeat; opacity: .1; pointer-events: none; }
.values-copy > * { position: relative; z-index: 1; }
.values-copy h3 { font-weight: 400; font-size: 32px; line-height: 1.3; margin-top: 19.3px; white-space: nowrap; }
.values-copy h3::before { content: '•'; padding-inline: 5px 18px; }
.values-copy p:not(.eyebrow) { font-size: 15px; line-height: 25.5px; margin-top: 20px; }
.purpose { display: grid; grid-template-columns: minmax(0,1fr); align-items: center; justify-items: center; padding: 12px; }
.purpose-card { position: relative; background: white; color: var(--green); text-align: center; padding: 60px 40px 40px; border-radius: 60px; width: 426px; max-width: 100%; min-height: 253px; }
.purpose-card h3 { margin: 14px 0; font-size: 23px; line-height: 26.25px; font-weight: 500; color: black; }
.purpose-card > p:last-child { font-size: 15px; line-height: 21px; color: #646464; }
.history-heading { margin-top: -47px; min-height: 340px; padding: 180px 40px 64px; text-align: center; overflow: hidden; }
.history-heading .section-background { top: 111px; height: 448px; border-radius: 120px 120px 0 0; }
.history-heading .section-background img { position: absolute; width: 121.67%; max-width: none; height: 220.09%; left: -21.69%; top: -60.05%; object-fit: fill; }
.history-heading .section-background::after { content: ''; position: absolute; inset: 0; background: #0003; }
.history-heading h2, .history-heading p { position: relative; }
.history-heading h2 { font-size: 36px; line-height: 1.2; }
.history-heading p { margin-top: 22px; }
.history { background: white; color: var(--green); border-radius: 80px 80px 0 0; padding: 30px 0 27px; }
.history > .wrap::before { content: ''; position: absolute; left: calc(50% - 1px); top: -119px; bottom: 60px; width: 2px; background: var(--orange); }
.timeline-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 80px; padding: 40px 0; min-height: 480px; align-items: center; }
.timeline-row:first-child { min-height: 480px; padding-block: 40px; }
.timeline-row + .timeline-row { margin-top: 20px; }
.timeline-row:nth-child(2) { margin-top: 0; }
.timeline-row:nth-child(6), .timeline-row:nth-child(8) { margin-top: 0; }
.timeline-row:nth-child(even) > figure { order: 2; height: 400px; }
.timeline-row figure { position: relative; height: 400px; border-radius: 24px; overflow: hidden; }
.timeline-row:first-child figure { width: 95.5556%; }
.timeline-row:first-child figure, .timeline-row:nth-child(even) figure { border-radius: 60px; }
.timeline-row img { position: absolute; height: 118.3%; width: 215.34%; max-width: none; left: -41.24%; top: -9.15%; object-fit: fill; }
.timeline-row:first-child img { height: 100%; width: 126.69%; left: -13.34%; top: 0; }
.timeline-row:nth-child(even) img { height: 105%; width: 126.22%; left: 0; top: -2.5%; }
.timeline-copy { padding-bottom: 20px; }
.timeline-copy::before { content: ''; position: absolute; width: 44px; height: 44px; border: 1.5px solid var(--orange); background: radial-gradient(circle,var(--orange) 5.5px,white 6px); border-radius: 50%; left: -62px; top: 0; }
.timeline-row:nth-child(even) .timeline-copy::before { left: auto; right: -62px; }
.timeline-copy .year { font-size: 32px; line-height: 1.3; color: var(--orange); }
.timeline-copy h2 { margin: 19.3px 0; line-height: 1.2; }

/* Contacto. Los mapas conservan el recorte del diseño y un enlace accesible. */
.contact-top { background: var(--lime); color: var(--green); border-radius: 0 0 80px 0; padding: 160px 40px 64px; text-align: center; margin-right: 60px; min-height: 360px; }
.contact-top h1 { font-size: 56px; line-height: 1.1; }
.contact-top h1, .contact-top > p { position: relative; left: 30px; }
.contact-top p { font-size: 18px; line-height: 1.6; margin: 24px auto 0; max-width: 1160px; }
.regions { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; height: auto; padding: 48px 40px; cursor: grab; user-select: none; -webkit-user-select: none; }
.regions::-webkit-scrollbar { display: none; }
.regions:focus { outline: none; }
.regions.is-dragging { cursor: grabbing; }
.regions p { flex: 0 0 auto; white-space: nowrap; font-weight: 700; font-size: 26px; line-height: 1.4; }
.regions .region-item::after { content: '|'; margin-inline: 24px; }
.regions:focus-visible:not(.is-pointer-interaction) .region-item { text-decoration: underline; text-underline-offset: 6px; }
.offices { padding: 36px 0 64px; }
.offices h2 { margin-bottom: 36px; }
.office-card { display: grid; grid-template-columns: 442px minmax(0,1fr); border-radius: 32px; overflow: hidden; background: white; color: black; height: 340px; }
.office-card + .office-card { margin-top: 51px; }
.office-info { padding: 60px 50px; }
.office-info h3 { font-weight: 400; font-size: 17px; line-height: 21px; }
.office-info h3 + p { height: 120px; padding-top: 30px; font-size: 18px; line-height: 1.6; font-weight: 500; }
.office-info .eyebrow { line-height: 21px; padding-bottom: 15px; }
.office-info a { font-size: 17px; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; }
.map-card { position: relative; overflow: hidden; }
.map-card figure { position: absolute; inset: 0; height: 380px; overflow: hidden; }
.map-card img { position: absolute; height: 182.98%; width: 190.9%; left: -41.67%; top: -27.67%; max-width: none; object-fit: fill; }
.office-card + .office-card .map-card img { top: -44.34%; }
.map-card .wp-block-buttons, .map-card .wp-block-button, .map-card .wp-block-button__link { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card .wp-block-button__link { background: transparent; min-width: 0; min-height: 0; padding: 0; border-radius: 0; }
.map-card .wp-block-button__link:focus-visible { outline-offset: -6px; }
.team { background: white; color: var(--green); padding: 80px 0; border-radius: 80px 0 80px 0; }
.team h2 { margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 28px; margin-top: 40px; }
.person figure { position: relative; aspect-ratio: 352/469; border-radius: 24px; overflow: hidden; background: #eee; }
.person figure::after { content: ''; position: absolute; inset: 0; opacity: .55; background: linear-gradient(207deg,#26bc6900 55%,#26bc69); pointer-events: none; }
.person img { position: absolute; max-width: none; width: 168.68%; height: 126.6%; left: -34.34%; top: -2.55%; object-fit: fill; }
.person:nth-child(2) img { width: 186.05%; height: 139.6%; top: -9.07%; }
.person:nth-child(4) img { top: -4.35%; }
.person:nth-child(5) img { left: -37.95%; top: -4.35%; }
.person:nth-child(6) img { top: -6.6%; }
.person:nth-child(7) img { width: 144.41%; left: -18.53%; top: -1.25%; }
.person:nth-child(8) img { left: -26.02%; top: -1.25%; }
.person h3 { margin: 24px 0 8px; font-size: 23px; line-height: 1.3; }
.person p { font-size: 16px; line-height: 1.5; }
.person .wp-block-buttons { margin-top: 9.5px; }
.person .wp-block-button__link { font-size: 14px; min-width: 0; height: 46px; min-height: 46px; padding: 12px 20px; background: white; color: var(--green); border: 1px solid var(--green); border-radius: var(--button-radius); }

.site-footer { background: var(--green); height: 330px; position: relative; overflow: hidden; color: white; }
.footer-logo { position: absolute; left: max(40px,calc((100% - 1160px)/2)); top: 72px; width: 240px; height: auto; }
.copyright { position: absolute; bottom: 54px; right: max(40px,calc((100% - 1232px)/2)); font-size: 13px; line-height: 1.6; }
.content-page { padding: 152px 0 72px; min-height: 70vh; }
.content-page h1 { font-size: 48px; margin-bottom: 28px; line-height: 1.2; }
.content-page .entry-content > * + * { margin-top: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; margin-top: 40px; }
.post-card { border: 1px solid #00924533; border-radius: 25px; padding: 25px; }
.post-card img { border-radius: 15px; margin-bottom: 25px; }
.post-card h2 { font-size: 24px; margin-bottom: 20px; }
.post-card p { overflow-wrap: anywhere; }
.post-card a { text-decoration: none; }
.pagination { margin-top: 35px; }
.empty-state { background: var(--cream); padding: 45px; border-radius: 35px; }
.empty-state p { margin-bottom: 25px; }
.editor-styles-wrapper { font-family: Montserrat, Arial, sans-serif; }
.editor-styles-wrapper .hero-copy { pointer-events: auto; }

@media (min-width: 1441px) {
  .hero-photo img { height: 100%; min-height: 0; }
}
@media (max-width: 1199px) {
  .brand { margin-left: 0; width: 200px; height: 84px; }
  .header-actions { gap: 12px; padding-top: 22px; }
  .header-actions .button { min-height: 46px; height: 46px; font-size: 14px; padding: 0 20px; }
  .header-actions .contact-link { width: auto; }
  .hero { height: 700px; }
  .hero-copy { padding-top: 160px; }

  .hero-copy > p:not(.eyebrow) { margin-top: 28px; font-size: 18px; line-height: 1.65; }
  .products-head { gap: 40px; }
  .product-copy p { margin-top: 20px; font-size: 16px; line-height: 1.65; }
  .about-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
  .about-copy h2 { font-size: 40px; line-height: 1.15; }
  .about-copy p { font-size: 18px; margin: 28px 0; line-height: 1.65; }
  .about-photo { height: 480px; }
  .wp-block-details summary { padding-inline: 24px; font-size: 24px; }
  .accordion-body { padding: 24px; }
  .brands { gap: 35px; }
  .contact-bubble { max-width: 65%; padding: 45px; }
  .contact-bubble h2, .micros h2 { font-size: 40px; }
  .about-intro-copy { padding: 45px 35px; }
  .about-intro h1 { font-size: 35px; line-height: 1.15; }
  .office-card { grid-template-columns: 40% minmax(0,1fr); }
  .office-info { padding: 50px 25px; }
  .office-info a { font-size: 17px; }
  .contact-top h1 { font-size: 52px; }
  .team-grid { gap: 45px 25px; }
  .person h3 { font-size: 23px; }
  .person p { font-size: 16px; }
  .person .wp-block-button__link { min-width: 0; width: 100%; }
  .values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .values-copy { padding: 50px 35px; }
  .values-copy h3 { font-size: 30px; }
  .purpose { padding: 25px; }
  .purpose-card { padding: 45px 25px; }
  .timeline-row { gap: 70px; }
  .timeline-row figure, .timeline-row:nth-child(even) > figure { height: 380px; }
  .timeline-copy h2 { font-size: 30px; line-height: 1.2; }
  .timeline-copy::before { left: -57px; }
  .timeline-row:nth-child(even) .timeline-copy::before { right: -57px; }
}
@media (max-width: 899px) {
  .about-intro { grid-template-columns: minmax(0,42fr) minmax(0,58fr); }
  .about-intro-copy { padding: 35px 25px; }
  .about-intro h1 { font-size: 30px; }
  .values { grid-template-columns: minmax(0,1fr); }
  .values-copy { padding: 50px; }
  .purpose { min-height: 500px; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-head { grid-template-columns: 1fr; }
  .stats-head p { text-align: left; justify-self: start; }
  .office-info { padding: 40px 20px; }
  .office-info h3 + p { font-size: 17px; }
  .office-info a { font-size: 15px; }
  .alliance-card { border-radius: 35px; }
}
@media (max-width: 899px) {
  .home-seed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .home-seed-grid { gap: 16px; }
  .home-seed-card { border-radius: 20px; }
  .home-seed-card-copy { padding: 16px; min-height: 132px; }
  .home-seed-card h3 { font-size: 18px; }
  .home-seed-card h3 span { font-size: 12px; }
  .home-seed-card-copy p { font-size: 12px; }
  .products-links { margin-top: 24px; }
  .products-links .wp-block-button__link { min-width: 0; }

  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  h2 { font-size: 28px; }
  .header-inner { width: calc(100% - 40px); }
  .brand { width: 145px; height: 61px; }
  .header-actions { padding-top: 14px; gap: 12px; }
  .header-actions .contact-link { display: none; width: auto; }
  .header-actions [data-menu-open] { width: auto; min-height: 44px; height: 44px; padding: 10px 16px; gap: 12px; border-radius: var(--button-radius); font-size: 13px; }
  .hamburger { width: 20px; height: 16px; }
  .hamburger::after { top: 5px; width: 14px; }
  .hero { height: 600px; }
  .hero-photo { height: 720px; }
  .hero-photo img { height: 100%; width: 200%; left: -50%; object-fit: cover; min-height: 0; }
  .hero-copy { padding-top: 132px; }
  .hero h1 { line-height: 1.16; margin-top: 20px; }
  .hero .eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: .025em; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.65; margin: 24px 0; max-width: 360px; margin-top: 28px; }
  .wp-block-button__link { font-size: 15px; min-width: 150px; min-height: 48px; padding: 13px 22px; line-height: 1.4; }
  .intro { min-height: 0; padding: 52px 20px 80px; border-radius: 55px 55px 0 0; }
  .intro figure { margin-bottom: 24px; }
  .intro figure img { max-width: 130px; height: auto; }
  .intro p { font-size: 16px; line-height: 1.6; }
  .intro-pagination { margin-top: 25px; }
  .products { padding: 48px 0 52px; border-radius: 55px 55px 0 0; margin-top: -40px; }
  .products-head { grid-template-columns: 1fr; gap: 30px; margin-bottom: 28px; }
  .product-copy h2 { margin-top: 0; line-height: 1.145; }
  .product-copy p { font-size: 16px; line-height: 1.65; margin-top: 20px; max-width: 450px; }
  .products-head figure { height: auto; aspect-ratio: 602/293; }
  .leaf { border-radius: 85px 0 85px 0; }
  .wp-block-details { border-radius: 25px; }
  .wp-block-details.hortalizas { border-radius: 24px; }
  .wp-block-details summary { min-height: 80px; padding: 24px; font-size: 22px; line-height: 1.3; letter-spacing: -.5px; padding-inline: 24px; }
  .wp-block-details summary::after { width: 25px; height: 25px; }
  .accordion-body { padding: 24px; min-height: 220px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
  .accordion-body p { font-size: 16px; line-height: 1.6; }
  .about-home .section-background img { object-fit: fill; }
.about-home { border-radius: 0 0 55px 55px; }
  .about-grid { grid-template-columns: 1fr; padding: 52px 0; gap: 32px; }
  .about-copy h2 { font-size: 34px; line-height: 1.15; }
  .about-copy p { font-size: 16px; line-height: 1.65; margin: 24px 0; }
  .about-photo { height: auto; aspect-ratio: 547/550; max-width: 547px; width: 100%; justify-self: center; }
  .brands { grid-template-columns: repeat(2,minmax(0,150px)); gap: 0 20px; height: auto; padding: 25px 0; justify-content: space-around; }
  .brands figure { height: auto; aspect-ratio: 1; }
  .brands figure:nth-child(n) img { top: 0; bottom: 0; margin-block: auto; }
  .field-gallery { gap: 12px; }
  .field-gallery figure { flex-basis: 82%; height: 260px; }
  .field-gallery figure:first-child img, .field-gallery .gallery-portrait img { height: 100%; top: 0; object-fit: cover; object-position: center 30%; }
  .micros { padding: 52px 0; min-height: 320px; }
  .micros h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.6px; }
  .micros p { font-size: 16px; line-height: 1.6; margin: 24px 0; }
  .micros .section-background img { height: 100%; top: 0; object-fit: cover; object-position: 65% center; }
  .contact-banner { height: auto; min-height: 420px; padding-top: 160px; }
  .contact-banner .section-background img { height: 100%; top: 0; object-fit: cover; object-position: 30% center; }
  .contact-bubble { background: var(--green); width: 100%; max-width: none; min-height: 260px; border-radius: 90px 0 0 0; padding: 32px 25px; }
  .contact-bubble::before { display: none; }
  .contact-bubble h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.6px; }
  .contact-bubble p { font-size: 16px; line-height: 1.5; margin: 20px 0; }
  .site-footer { height: 270px; }
  .footer-logo { left: 25px; top: 48px; width: 190px; }
  .copyright { left: 25px; right: 25px; bottom: 35px; font-size: 11px; line-height: 18px; }
  .about-top { margin-right: 15px; padding: 108px 0 40px; border-radius: 0 0 60px 0; }
  .about-intro { margin-left: 20px; width: calc(100% - 40px); grid-template-columns: minmax(0,1fr); border-radius: 25px 25px 65px 25px; min-height: 0; }
  .about-intro > figure { height: auto; aspect-ratio: 520/440; }
  .about-intro-copy { padding: 30px; }
  .about-intro h1 { font-size: 28px; }
  .spacious, .specialists { padding-block: 55px; }
  .spacious h2 br { display: none; }
  .wide-photo { height: auto; aspect-ratio: 1160/595; border-radius: 25px; margin-top: 35px; }
  .stats { padding: 55px 0; border-radius: 55px 0 55px 0; min-height: 0; }
  .stats-head { gap: 25px; margin-bottom: 30px; }
  .stat-row { gap: 15px; min-height: 110px; }
  .stat-row p:first-child { max-width: 70%; }
  .stat-value { flex-shrink: 0; font-size: 38px; line-height: 1.3; letter-spacing: -1px; }
  .alliance-grid { grid-template-columns: 1fr; margin-top: 40px; gap: 20px; }
  .alliance-card { border-radius: 25px; min-height: 0; }
  .values { border-radius: 35px; }
  .values-copy { padding: 40px 30px; }
  .values-copy h3 { font-size: 28px; line-height: 1.2; }
  .values-copy h3::before { padding-right: 12px; }
  .values-copy p:not(.eyebrow) { margin-top: 12px; }
  .purpose { min-height: 400px; padding: 30px; }
  .purpose-card { padding: 40px 20px; border-radius: 35px; }
  .history-heading { margin-top: 0; padding: 85px 25px; min-height: 300px; }
  .history-heading .section-background { top: 0; height: 100%; border-radius: 55px 55px 0 0; }
  .history-heading .section-background img { width: 100%; height: 100%; left: 0; top: 0; object-fit: cover; }
  .history-heading h2 { font-size: 30px; line-height: 1.15; }
  .history { border-radius: 55px 55px 0 0; padding: 30px 0; }
  .history > .wrap::before { left: 21px; top: 20px; bottom: 40px; }
  .timeline-row, .timeline-row:first-child { grid-template-columns: 1fr; gap: 30px; padding: 25px 0 25px 55px; min-height: 0; }
  .timeline-row + .timeline-row { margin-top: 0; }
  .timeline-row:nth-child(even) > figure { order: 0; }
  .timeline-row figure, .timeline-row:nth-child(even) > figure { height: auto; width: 100%; aspect-ratio: 540/550; border-radius: 25px; }
  .timeline-copy { padding-bottom: 0; }
  .timeline-copy::before, .timeline-row:nth-child(even) .timeline-copy::before { left: -55px; right: auto; width: 44px; height: 44px; }
  .timeline-copy .year { font-size: 32px; line-height: 44px; }
  .timeline-copy h2 { font-size: 26px; line-height: 1.2; margin: 15px 0; }
  .contact-top { margin-right: 15px; padding: 128px 25px 48px; border-radius: 0 0 60px 0; min-height: 0; }
  .contact-top h1 { font-size: 36px; }
  .contact-top h1, .contact-top > p { left: 0; }
  .contact-top p { font-size: 16px; line-height: 1.5; margin-top: 24px; }
  .regions { padding: 32px 20px; height: auto; }
  .regions p { font-size: 22px; line-height: 1.4; }
  .regions .region-item::after { margin-inline: 16px; }
  .offices { padding: 35px 0 60px; }
  .offices h2 { margin-bottom: 30px; }
  .office-card { grid-template-columns: 1fr; border-radius: 35px; height: auto; }
  .office-card + .office-card { margin-top: 30px; }
  .office-info { padding: 30px; }
  .office-info h3 + p { height: auto; padding-top: 20px; font-size: 17px; }
  .office-info .eyebrow { padding: 25px 0 10px; }
  .office-info a { font-size: 17px; }
  .map-card { height: auto; aspect-ratio: 718/340; }
  .map-card figure { height: 111.765%; }
  .team { padding: 65px 0; border-radius: 55px 0 55px 0; }
  .team-grid { gap: 45px 25px; margin-top: 45px; }
  .person h3 { margin-top: 25px; font-size: 22px; line-height: 1.15; }
  .person p { font-size: 16px; line-height: 1.5; }
  .person .wp-block-button__link { font-size: 14px; width: auto; padding: 12px 20px; }
  .content-page { padding: 120px 0 56px; }
  .content-page h1 { font-size: 34px; overflow-wrap: anywhere; }
  .post-grid { grid-template-columns: 1fr; }
  .empty-state { padding: 30px; }
  .menu-dialog { border-radius: 0 40px 0 40px; height: fit-content; }
  .menu-dialog nav a { font-size: 28px; line-height: 1.65; }
  .menu-secondary a { font-size: 20px; line-height: 1.6; }
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 599px) {
  .products > .wrap { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .products-head { margin-bottom: 12px; }
}
@media (max-width: 479px) {
  .team-grid { grid-template-columns: 1fr; }
  .person { max-width: 352px; width: 100%; justify-self: center; }
  .person h3 { font-size: 22px; }
  .person p { font-size: 16px; }
  .person .wp-block-button__link { width: auto; font-size: 14px; padding: 12px 20px; }
}
@media (max-width: 359px) {
  .brand { width: 145px; height: 61px; }
  .header-actions [data-menu-open] { padding-inline: 12px; border-radius: var(--button-radius); font-size: 13px; }
  .hero h1 { line-height: 1.16; margin-top: 20px; }
  .hero .eyebrow { font-size: 10px; line-height: 1.6; letter-spacing: .025em; }
  .wp-block-details summary { font-size: 22px; padding-inline: 24px; min-height: 80px; padding: 24px; line-height: 1.3; }
  .values-copy { padding-inline: 22px; }
  .values-copy h3 { font-size: 28px; }
  .contact-top h1 { font-size: 36px; }
}
/* El menú conserva todas sus opciones al reducir la altura disponible. */
@media (max-height: 650px) {
  .menu-dialog { height: fit-content; padding-bottom: 24px; }
  .menu-dialog nav { padding-top: 16px; }
  .menu-dialog nav a { font-size: 28px; line-height: 1.65; }
  .menu-secondary { margin-top: 16px; padding-block: 16px; }
  .menu-secondary a { font-size: 20px; line-height: 1.6; }
  .menu-contact { padding-top: 16px; }
  .menu-close { position: fixed; background: var(--green); border-radius: 50%; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
