/* Global Styles - Aeneas */
:root {
    /* Brandbook Colors - Aeneas */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #212121;
    --text-light: #757575;

    /* Navy Tones */
    --primary-navy: #081524;
    /* Deep Executive Blue */
    --secondary-navy: #0A1B2E;
    /* Imperial Midnight */
    --light-navy: #020E1F;
    /* Upper Brightness */

    /* Orange & Gold Highlights */
    --primary-orange: #FF7A00;
    /* Brand Orange */
    --amber-orange: #F4A259;
    /* Warm Transition */
    --copper-accent: #B05C2E;
    /* Technical Lines */
    --golden-flash: #FFB066;
    /* Luxury Touch */

    --glass-bg: rgba(8, 21, 36, 0.85);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(255, 122, 0, 0.15);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Blueprint Pattern */
    --blueprint-line: rgba(176, 92, 46, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-blue);
}

.text-muted {
    color: var(--text-light);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    background: #e66e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--primary-color);
}

.btn-ghost:hover {
    background: rgba(5, 0, 47, 0.05);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.brand__mark {
    height: 80px;
    transition: transform 0.3s ease;
}

.brand:hover .brand__mark {
    transform: scale(1.05);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.nav__toggle span:nth-child(1) {
    top: 0;
}

.nav__toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav__toggle span:nth-child(3) {
    bottom: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.nav__list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav__list li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-navy);
    position: relative;
    padding: 0.5rem 0;
}

.nav__list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav__list li a:hover::after,
.nav__list li a.active::after {
    width: 100%;
}

.header.scrolled .nav__list li a {
    color: var(--primary-navy);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--primary-color);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(17, 109, 255, 0.15) 0%, rgba(5, 0, 47, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero--video {
    padding-top: 0;
    justify-content: center;
    text-align: center;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 27, 46, 0.7) 0%, var(--primary-navy) 100%);
    /* Sophisticated Navy Gradient */
    z-index: 1;
}

.hero__content-wrapper {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero__content {
    max-width: 800px;
}

.hero h1 {
    color: white;
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 .accent {
    color: var(--primary-orange);
    display: block;
}

.hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    /* max-width: 600px; */
    padding: 0 7%;
}

.hero .pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero .pill .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.8);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Override nav link colors in hero before scroll */
.header:not(.scrolled) .nav__list li a {
    color: rgba(255, 255, 255, 0.9);
}

.header:not(.scrolled) .nav__toggle span {
    background-color: white;
}

/* Sections */
.section {
    padding: 7rem 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.section--navy {
    background: var(--primary-navy);
    color: white;
    position: relative;
    overflow: hidden;
}

.section--navy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.section--navy h2,
.section--navy h3 {
    color: white;
}

.section__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section__head h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section__head p {
    font-size: 1.15rem;
    color: var(--text-light);
}

.section--navy .section__head p {
    color: rgba(255, 255, 255, 0.7);
}

/* Logos Strip (Organizaciones Conectadas) */
.logos-section {
    padding: 5rem 0;
    background: var(--primary-navy);
    border-top: 1px solid var(--blueprint-line);
    border-bottom: 1px solid var(--blueprint-line);
}

.logos-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: left;
}

@media (max-width: 768px) {
    .logos-title {
        text-align: center;
        font-size: 1.8rem;
    }
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-card {
    background: var(--secondary-navy);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(176, 92, 46, 0.1);
    transition: transform 0.3s ease;
}

.logo-card:hover {
    transform: translateY(-5px);
}

.logo-card img {
    border-radius: 8px;
    height: 80px;
    object-fit: contain;
}

/* Split Rows (Problems/Solutions) */
.split-rows {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-row.reverse .split-content {
    order: 2;
}

.split-row.reverse .split-img-box {
    order: 1;
}

.split-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.split-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.check-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 45px;
    font-size: 1.05rem;
}

.check-list li::before {
    content: '→';
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary-orange);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: bold;
}

.section--navy .check-list li::before {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.split-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.split-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-img-box:hover img {
    transform: scale(1.05);
}

/* Pillars Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.cards-grid.cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .cards-grid.cards-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .cards-grid.cards-grid--4 {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 122, 0, 0.2);
}

.pillar-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}

.pillar-icon.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.pillar-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pillar-list {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.pillar-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.pillar-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-orange);
    margin-right: 10px;
}

/* Numbered Feature List (Why Aeneas) */
.numbered-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.n-feature {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-orange);
}

.n-feature .num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 122, 0, 0.2);
    line-height: 1;
}

.n-feature h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-navy);
}

.n-feature p {
    color: var(--text-light);
}

/* Portfolio Grid */
.portafolio-title {
    color: var(--primary-color);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
}

.portfolio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.port-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    background: var(--bg-secondary);
}

.port-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.port-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Contact / Call to Action */
.cta-banner {
    background: var(--primary-navy);
    position: relative;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--blueprint-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
    opacity: 0.5;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSI+PC9yZWN0Pgo8Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjE1KSI+PC9jaXJjbGU+Cjwvc3ZnPg==') repeat;
    opacity: 0.4;
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Contact Section Grid */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details .c-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-details .c-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-orange);
    margin-right: 15px;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Section Layouts */
.section-split {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.section-split--reverse {
    flex-direction: row-reverse;
}

.section-split__content {
    flex: 1;
}

.section-split__image {
    flex: 1;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-lg {
    border-radius: 20px;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Grid Utilities */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.pillar-card--full {
    grid-column: 1 / -1;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.cards-grid--mini {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 992px) {

    .section-split,
    .section-split--reverse {
        flex-direction: column;
        gap: 2rem;
    }
}

.section__head {
    margin-bottom: 3.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(17, 109, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 50px;
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .split-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-row.reverse .split-content {
        order: 1;
    }

    .split-row.reverse .split-img-box {
        order: 2;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: block;
    }

    .header .nav {
        position: relative;
    }

    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav__list.is-active {
        right: 0;
    }

    .nav__list li a {
        font-size: 1.5rem;
        color: white;
    }

    .header.scrolled .nav__list li a {
        color: white;
    }

    .header.scrolled .nav__toggle span {
        background-color: var(--primary-navy);
    }

    .nav__list.is-active~.nav__toggle span {
        background-color: white;
        /* Contrast on dark menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Mobile Slider for "Por qué AENEAS?" */
    .numbered-features {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 2rem;
    }

    /* Hide scrollbar visually but keep functionality */
    .numbered-features::-webkit-scrollbar {
        height: 6px;
    }

    .numbered-features::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .numbered-features::-webkit-scrollbar-thumb {
        background: var(--primary-orange);
        border-radius: 10px;
    }

    .n-feature {
        min-width: 85vw;
        scroll-snap-align: center;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
    }
}