:root {
    --green-dark: #1a4d2e;
    --green-mid: #2e7d45;
    --green-light: #4caf68;
    --cream: #f8f4ed;
    --gold: #c8a84b;
    --text: #1a1a1a;
    --text-light: #5a5a5a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(248, 244, 237, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(46, 125, 69, 0.15);
    transition: box-shadow .3s;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2.5rem;
    gap: 1.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.4rem;

    font-weight: 700;
    flex-shrink: 0;
}

.nav-logo-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
}

.nav-logo-sub {
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--green-mid);
    text-transform: uppercase;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-left: auto;
    margin-right: 2rem;
}

/* Only top level links get the indicator */
.nav-links > li > a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--green-dark);
    letter-spacing: .02em;
    padding: 0.5rem 0;
    position: relative;
    transition: color .3s;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: width .3s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--green-light);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

.nav-links a {
    text-decoration: none;
}

/* Removing previous blanket rules for all links inside nav-links */

.nav-cta {
    background: var(--green-dark);
    color: #fff;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.nav-cta:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}

/* ── MEGA MENU ── */
.has-mega {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: min(900px, 95vw);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    display: flex;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid rgba(46, 125, 69, 0.1);
}

.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

/* Sidebar (Tabs) */
.mega-sidebar {
    width: 230px;
    background: var(--green-dark);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.mega-tab {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-left: 0.8rem;
}

.mega-tab-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s;
}

.mega-tab-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    opacity: 1;
}

.mega-tab-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
    line-height: 1.3;
}

.mega-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mega-tab.active {
    background: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.mega-tab.active .mega-tab-icon {
    background: rgba(46, 125, 69, 0.1); /* Subtle green bg for the icon in active white tab */
}

.mega-tab.active .mega-tab-icon img {
    opacity: 1;
}

.mega-tab.active .mega-tab-label {
    color: var(--green-dark);
    opacity: 1;
}

/* Content (Grids) */
.mega-content {
    flex-grow: 1;
    background: #fff;
    padding: 2.5rem;
    min-height: 420px; /* Slightly taller */
    display: flex;
    flex-direction: column;
}

.mega-panes {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mega-pane {
    display: none;
    flex-grow: 1;
    height: 100%;
}

.mega-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--green-mid);
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.mega-pane.active {
    display: flex;
    flex-direction: column;
    animation: megaFade 0.4s ease forwards;
}

@keyframes megaFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(Auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    flex-grow: 1;
}

.mega-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    text-decoration: none;
}

.mega-product-img {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.mega-product:hover .mega-product-img {
    transform: scale(1.1);
}

.mega-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mega-product-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
}

.mega-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center; /* Shared and Centered */
}

.mega-footer .nav-cta {
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
    color: #fff !important; /* Force white text */
    display: flex;
    align-items: center;
}

.mega-footer .nav-cta svg {
    transition: transform 0.3s;
}

.mega-footer .nav-cta:hover svg {
    transform: translateX(5px);
}

.nav-cta-light {
    background: var(--green-light);
    color: #fff;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .2s, transform .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta-light:hover {
    background: #5cb874;
    transform: translateY(-1px);
}

/* Hidden checkbox for menu toggle */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--green-dark);
    border-radius: 2px;
    transition: .3s;
}

/* Animate hamburger icon when checked */
#menu-toggle:checked~nav .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle:checked~nav .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked~nav .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* mobile menu */
.mobile-menu {
    position: fixed;
    top: 75px; /* Altura aproximada del nav-wrapper */
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--cream);
    padding: 2.5rem 2rem 3rem; /* Aumentado padding superior e inferior */
    border-bottom: 2px solid var(--green-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: opacity .4s ease, transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

#menu-toggle:checked~.mobile-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-dark);
    display: block;
    padding-left: 1rem;
    border-left: 3px solid transparent;
    transition: all .3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--green-light);
    border-left-color: var(--green-light);
    padding-left: 1.5rem;
}

.mobile-menu .nav-cta,
.mobile-menu .nav-cta-light {
    display: inline-block;
    margin-top: .8rem;
    color: #fff !important;
}

/* Close menu when clicking on links */
.mobile-menu a {
    position: relative;
}

/* ── HERO ── */
.hero {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: 72px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(76, 175, 104, .18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 10% 80%, rgba(46, 125, 69, .14) 0%, transparent 60%),
        var(--cream);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232e7d45' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

.hero-slide.active {
    position: absolute;
    opacity: 1;
    visibility: visible;
}

.hero-slide .fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.hero-slide.active .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: .8rem;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background .3s, transform .3s;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.dot.active {
    background: #fff;
    transform: scale(1.4);
    border-color: #fff;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    width: 100%;
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: .4rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
}

.hero h1 em {
    font-style: italic;
    color: #7ce8a2;
}

.hero-sub {
    margin: 1.5rem auto 2.5rem;
    font-size: clamp(.95rem, 2vw, 1.15rem);
    line-height: 1.75;
    max-width: 560px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--green-dark);
    color: #fff;
    padding: .85rem 2.2rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 8px 28px rgba(26, 77, 46, .25);
}

.btn-primary:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(26, 77, 46, .3);
}

.btn-outline {
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
    padding: .83rem 2.2rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}

.btn-outline:hover {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
}

.hero-stat-row {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-row .stat-num {
    color: #fff;
}

.hero-stat-row .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--green-dark);
    line-height: 1;
}

.stat-label {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: .3rem;
}

/* ── SECTION BASE ── */
section {
    padding: 4rem 2.5rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: .8rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.15;
}

.section-title--sm {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

/* ── PILLARS ── */
.pillars-section {
    background: #fff;
    padding-top: 3.5rem;
}

.pillars-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 2rem 0;
}

.pillars-nav {
    margin-left: 0;
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
    padding-bottom: .4rem;
}

.pillars-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--green-mid);
    background: #fff;
    color: var(--green-mid);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.pillars-btn:hover {
    background: var(--green-mid);
    color: #fff;
}

.pillars-track-wrapper {
    overflow: hidden;
    position: relative;
    /* Extiende el track hasta los bordes de la pantalla desde dentro del section-inner */
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.pillars-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 1.2rem;
}

.pillars-track::-webkit-scrollbar {
    display: none;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    min-width: 150px;
    padding: 1.2rem 1.2rem;
    border: 1.5px solid #e0e8df;
    border-radius: 14px;
    text-align: center;
    cursor: default;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    background: #fff;
}

.pillar-item:last-child {
    border-right: 1.5px solid #e0e8df;
}

.pillar-item:hover {
    /*transform: translateY(-4px);*/
    box-shadow: 0 8px 24px rgba(46, 125, 69, .1);
    border-color: var(--green-light);
}

.pillar-icon {
    font-size: 1.8rem;
    color: var(--green-mid);
    line-height: 1;
}

.pillar-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.pillar-label {
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: var(--green-mid);
    line-height: 1.4;
}

/* ── CLIENTS ── */
.clients-section {
    background: var(--cream);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    border-top: 1px solid rgba(46, 125, 69, .08);
    border-bottom: 1px solid rgba(46, 125, 69, .08);
}

.clients-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 2rem 0;
}

.clients-nav {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
    padding-bottom: .4rem;
}

.clients-track-wrapper {
    overflow: hidden;
    position: relative;
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.clients-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: .5rem;
    align-items: center;
}

.clients-track::-webkit-scrollbar {
    display: none;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    background: #fff;
    border: 1.5px solid #e8e8e4;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}

.client-item:hover {
    border-color: var(--green-light);
    box-shadow: 0 6px 20px rgba(46, 125, 69, .1);
}

.client-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── MISSION & VISION ── */
.mission-vision-section {
    padding: 2rem 2.5rem;
}

.mission-vision-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2.5rem;
    background: #e8f0dc;
    border-radius: 18px;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(76, 175, 104, 0.2);
}

.mission-vision-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mv-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: .1rem;
}

.mv-text {
    font-size: .93rem;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
}

.mission-vision-divider {
    width: 1px;
    height: 80px;
    background: rgba(46, 125, 69, 0.25);
    flex-shrink: 0;
}

/* ── STORY ── */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.story-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 1.4rem;
}

.story-text p strong {
    color: var(--green-dark);
}

.story-visual {
    position: relative;
    border-radius: 24px;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
}

.story-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 16px;
    /* Efecto difuminado en los bordes */
    mask-image: radial-gradient(
        ellipse 78% 80% at 50% 50%,
        black 45%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 78% 80% at 50% 50%,
        black 45%,
        transparent 100%
    );
}

.story-visual-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
}

.story-visual-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.story-visual-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
}

.story-visual-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: .9;
}

.story-visual-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, .9);
    line-height: 1.5;
}

.story-visual-author {
    margin-top: 1rem;
    font-size: .8rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .6);
    text-transform: uppercase;
}

/* ── FOUNDERS ── */
.founders {
    background: var(--green-dark);
}

.founders .section-title {
    color: #fff;
}

.founders .section-label {
    color: var(--green-light);
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.founders-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.founders-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.founders-visual-photo {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    object-position: center;
    display: block;
    /* Efecto difuminado en los bordes */
    mask-image: radial-gradient(
        ellipse 78% 80% at 50% 50%,
        black 40%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 78% 80% at 50% 50%,
        black 40%,
        transparent 100%
    );
}

.founder-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: background .3s, transform .3s;
}

.founder-card:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-4px);
}

.founder-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
}

.founder-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: .25rem;
}

.founder-role {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-light);
    margin-bottom: 1.2rem;
}

.founder-msg {
    font-size: .95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .7);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.founder-msg:last-child {
    margin-bottom: 0;
}


/* ── SERVICES ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(46, 125, 69, .1);
    transition: box-shadow .3s, transform .3s;
}

.service-card:hover {
    box-shadow: 0 20px 50px rgba(46, 125, 69, .12);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.service-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: .6rem;
}

.service-desc {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ── CONTACT ── */
.contact {
    background: linear-gradient(135deg, #f0efe8 0%, #e8f2ec 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: .1rem;
}

.contact-detail span {
    font-size: .95rem;
    color: var(--text);
}

.contact-form {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .06);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: .4rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid rgba(46, 125, 69, .2);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    color: var(--text);
    background: #fafaf8;
    outline: none;
    transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green-mid);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    width: 100%;
    padding: .9rem;
    background: var(--green-dark);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.form-submit:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}

/* ── FOOTER ── */
/* ── FOOTER ── */
.main-footer {
    background: var(--green-dark);
    color: #fff;
    padding: 3rem 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* TOP Row */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.15rem;
}

.footer-contact-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-logo-box {
    background: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-box img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* MID Row */
.footer-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav-left, .footer-nav-right {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-mid a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-mid a:hover {
    color: var(--green-light);
}

/* BOTTOM Row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s;
}

.social-circle svg {
    width: 18px;
    height: 18px;
}

.social-circle:hover {
    background: #fff;
    color: var(--green-dark);
}

.footer-copy-new {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.footer-legal-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-legal-btn svg {
    width: 18px;
    height: 18px;
}

.footer-legal-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top, .footer-mid, .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-contact-item {
        flex-direction: column;
    }
    
    .footer-nav-left, .footer-nav-right {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-bottom {
        gap: 2rem;
    }
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {

    .story-grid,
    .founders-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-visual {
        min-height: 320px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 680px) {
    .nav-wrapper {
        padding: 0.8rem 1.5rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero-stat-row {
        gap: 2rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Founders responsive */
    .founders-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founders-visual {
        min-height: auto;
        order: -1;
    }

    .founders-visual-photo {
        max-height: 260px;
    }

    /* Story responsive */
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-visual {
        min-height: 280px;
    }

    /* Mission/Vision responsive */
    .mission-vision-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-vision-item {
        flex-direction: column;
        gap: .5rem;
        align-items: flex-start;
    }

    .mission-vision-divider {
        width: 80px;
        height: 1px;
        margin: 0 auto;
    }

    /* Pillars header responsive */
    .pillars-header {
        flex-direction: column;
        align-items: flex-start;
        gap: .8rem;
    }

    .pillars-nav {
        align-self: flex-end;
    }
}