/* Sophisticated CSS Theme */
:root {
    /* Refined Color Palette */
    --sage-green: #8A9A86;
    --sage-green-dark: #5b6858;
    
    --dusty-rose: #D6A59B;
    
    --charcoal: #1A1A1A;
    --charcoal-light: #2A2A2A;
    
    --text-color: #333333;
    --text-light: #777777;
    
    --bg-light: #FBFBF9; /* Alabaster off-white */
    --bg-alt: #F4F3F0;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 120px 0;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--charcoal);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Utilities */
.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

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

.eyebrow {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sage-green);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.8;
}

.divider {
    width: 80px;
    height: 1px;
    background-color: var(--charcoal);
    margin-bottom: 2.5rem;
}

.divider.center {
    margin: 0 auto 3rem;
}

/* Buttons & Links */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-radius: 0; /* Sharp corners for editorial look */
}

.btn-primary {
    background-color: var(--charcoal);
    color: var(--white);
    border: 1px solid var(--charcoal);
}

.btn-primary:hover {
    background-color: var(--sage-green);
    border-color: var(--sage-green);
}

.btn-outline {
    background-color: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

.btn-outline:hover {
    background-color: var(--charcoal);
    color: var(--white);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--charcoal);
    margin-top: 1rem;
}

.link-arrow span {
    margin-left: 10px;
    transition: var(--transition);
}

.link-arrow:hover span {
    transform: translateX(5px);
    color: var(--sage-green);
}

/* Dark Section */
.dark-section {
    background-color: var(--charcoal);
    color: var(--bg-alt);
}

.dark-section h2, .dark-section .lead {
    color: var(--white);
}

.dark-section .divider {
    background-color: var(--sage-green);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0; /* Compact padding since there is no gradient to fade */
    background-color: var(--bg-light); /* Solid flat off-white background */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Clean flat border separating it from sections */
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: var(--bg-light);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    padding: 10px 15px;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: lowercase;
    letter-spacing: 3px;
    font-weight: 300;
    color: var(--text-light);
}

.logo-light {
    color: var(--white);
}

.logo-light .logo-text {
    color: var(--dusty-rose);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--charcoal);
}

.nav-links a:hover {
    color: var(--sage-green);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 1px;
    background-color: var(--charcoal);
    transition: var(--transition);
}

/* Split Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-top: 0; /* removing padding for full split */
    background-color: var(--bg-light);
}

.hero-text-side {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 120px 80px;
}

.hero-text-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--charcoal);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 80%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center top;
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 100px;
    align-items: center;
}

.about-image {
    position: relative;
    padding-right: 30px;
    padding-bottom: 30px;
}

.about-image img {
    z-index: 2;
    position: relative;
}

.image-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--charcoal-light);
    z-index: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.about-text .lead {
    color: var(--white);
}

/* Editorial Initiatives Section */
.initiatives {
    padding: var(--section-padding);
    background-color: var(--bg-alt);
}

.editorial-showcase {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-row.reverse {
    direction: rtl;
}

.showcase-row.reverse > * {
    direction: ltr;
}

.showcase-img {
    overflow: hidden;
    position: relative;
}

.showcase-img::before {
    content: '';
    display: block;
    padding-bottom: 120%; /* elegant portrait aspect ratio */
}

.showcase-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.showcase-row:hover .showcase-img img {
    transform: scale(1.05);
}

.showcase-text {
    padding: 0 40px;
}

.showcase-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.showcase-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Mission Section (Image Background) */
.mission {
    position: relative;
    padding: 180px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.mission-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center;
    z-index: 1;
}

.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.75); /* Dark overlay */
    z-index: 2;
}

.mission-container {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.quote-icon {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--sage-green);
    line-height: 1;
    margin-bottom: -20px;
}

.mission-title {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-style: italic;
}

.mission-author {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--dusty-rose);
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 100px 0 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.footer-links a:hover {
    color: var(--sage-green);
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .about-container { grid-template-columns: 1fr; gap: 60px; }
    .about-image { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; }
    .hero-text-side { padding: 120px 30px 60px; }
    .hero-image-side { height: 60vh; }
    .hero-img { height: 100%; }
    
    .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; gap: 40px; }
    .showcase-text { padding: 0; }
    
    .mission-title { font-size: 2rem; }
    
    .hamburger { display: flex; z-index: 1001; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background-color: var(--bg-light); flex-direction: column;
        justify-content: center; align-items: center; gap: 30px;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; color: var(--charcoal); }
    .navbar.scrolled .hamburger span { background-color: var(--charcoal); }
    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 5px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -5px); }
}

/* Language Toggle Button */
.lang-toggle-btn {
    border: 1px solid var(--charcoal);
    padding: 6px 16px;
    font-size: 0.75rem !important;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 30px;
    transition: var(--transition) !important;
    display: inline-block;
    margin-left: 10px;
}

.lang-toggle-btn:hover {
    background-color: var(--charcoal);
    color: var(--white) !important;
    border-color: var(--charcoal);
}

.navbar.scrolled .lang-toggle-btn {
    border-color: var(--charcoal);
}

/* Philosophy & Pillars Section */
.philosophy {
    padding: var(--section-padding);
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 100px;
}

.philosophy-text p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.philosophy-highlight {
    background-color: var(--bg-alt);
    padding: 50px;
    border-left: 3px solid var(--sage-green);
}

.philosophy-highlight p {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--sage-green-dark);
    font-style: italic;
    font-weight: 400;
}

.philosophy-media {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.philosophy-video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-alt);
    border: 1px solid rgba(26, 26, 26, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    aspect-ratio: 1 / 1;
}

.editorial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.philosophy-video-wrapper:hover .editorial-video {
    transform: scale(1.02);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.pillar-card {
    border-top: 1px solid rgba(26, 26, 26, 0.15);
    padding-top: 40px;
    transition: var(--transition);
}

.pillar-card:hover {
    border-top-color: var(--sage-green);
    transform: translateY(-5px);
}

.pillar-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--sage-green);
    line-height: 1;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 400;
    transition: var(--transition);
}

.pillar-card:hover .pillar-num {
    color: var(--sage-green-dark);
    transform: scale(1.05);
}

.pillar-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

/* Responsive Overrides for new elements */
@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    .philosophy-highlight {
        padding: 40px;
    }
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 768px) {
    .lang-toggle-btn {
        margin-left: 0;
        margin-top: 20px;
        font-size: 1rem !important;
        padding: 10px 24px;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 50px;
    }
    .philosophy {
        padding: 80px 0;
    }
    .pillar-card {
        padding-top: 30px;
    }
}

/* Hero Section Narrative Layout (La Experiencia Detrás del Éxito) */
.hero-about-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--charcoal);
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.hero-about-desc {
    margin-bottom: 2.5rem;
}

.hero-about-desc p {
    font-size: 0.98rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-about-desc p:last-child {
    margin-bottom: 0;
}

/* Symmetrical padding adjustments for split hero with longer narrative text */
@media (min-width: 1025px) {
    .hero {
        align-items: center;
    }
    .hero-text-side {
        padding: 140px 80px 100px;
    }
    .hero-img {
        height: 100%;
        min-height: 110vh;
    }
}


