/* Design System */
:root {
    /* Colors */
    --navy-blue: #0A192F;
    --navy-light: #162a4d;
    --navy-dark: #060d1a;
    --white: #FFFFFF;
    --gray-light: #F3F4F6; /* Light gray for UI accents */
    --gray-text: #E5E7EB;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Variables */
    --navy-muted: #1e3a8a; /* Softer, elegant slate/navy blue for Block 2 */
    --radius-sm: 6px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--navy-blue);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for stickiness */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 0.35rem; /* Space between words */
}

.logo-bold {
    font-weight: 700;
}

.logo-light {
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Navigation */
.nav {
    display: flex;
}

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

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy-blue);
    transition: var(--transition);
}

.nav-link:not(.nav-pill):hover {
    opacity: 0.7;
}

/* Special Pill Link */
.nav-pill {
    background-color: var(--gray-light);
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem; /* text-sm equivalent */
}

.nav-pill:hover {
    background-color: #E5E7EB; /* slightly darker gray */
}

/* CTA Button */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
    border-radius: var(--radius-sm); /* Slightly rounded corners */
}

.btn-primary:hover {
    background-color: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.3);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px); /* Strictly below header, full viewport height remaining */
    background-image: url('assets/Bloque 1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}


/* Block 2 - Action Paths */
.action-paths {
    background: linear-gradient(to bottom, #0B1320, #1A2A40); /* Corporate Deep Navy Blue gradient */
    background-color: #0B1320; /* Fallback */
    padding: 5rem 2rem;
}

.action-paths-container {
    max-width: 1400px;
    margin: 0 auto;
}

.action-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.action-subtitle {
    font-family: var(--font-sans);
    color: var(--white); /* White or light gray */
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.action-arrow-down {
    width: 40px;
    height: 40px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-list {
    display: flex;
    flex-direction: column;
}

.action-item {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: transparent; /* Default state */
}

.action-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.action-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.action-item-title {
    font-family: var(--font-sans);
    font-size: 2rem; /* Moderate size: text-3xl equivalent */
    color: var(--white);
    font-weight: 600; /* Medium-bold for elegance */
    transition: var(--transition);
    margin: 0;
    max-width: 80%; /* Prevent hitting the icon directly */
}

.action-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.action-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.action-item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
}

.action-item-text {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--navy-light); /* Darker text for white bg */
    max-width: 800px;
    line-height: 1.6;
}

/* Hover State */
.action-item:hover {
    background-color: var(--white);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: scale(1.01);
}

/* On hover, hide the border of the next item */
.action-item:hover + .action-item {
    border-top-color: transparent;
}

.action-item:hover .action-item-title {
    color: var(--navy-blue); /* Corporate Deep Navy Blue text on white bg */
}

.action-item:hover .action-item-icon {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
}

.action-item:hover .action-item-icon svg {
    stroke: var(--white);
    transform: rotate(-45deg); /* Playful interaction */
}

.action-item:hover .action-item-content {
    max-height: 200px; /* Arbitrary height to fit content */
    opacity: 1;
    margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav {
        display: none; /* Hide nav links on tablet/mobile to keep it clean for now */
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .action-item-title {
        font-size: 1.5rem; /* text-2xl equivalent for mobile */
    }
    
    .action-item {
        padding: 2rem 1rem;
    }
}

/* Block 3 - Alliances Logo Carousel */
.alliances {
    background-color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

.alliances-container {
    max-width: 1400px;
    margin: 0 auto;
}

.alliances-title {
    font-family: var(--font-display);
    color: var(--navy-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.alliances-paragraph {
    font-family: var(--font-sans);
    color: var(--navy-blue);
    font-size: 1.125rem;
    max-width: 50rem;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-slide {
    padding: 0 3rem;
    flex-shrink: 0;
}

.logo-slide img {
    height: 48px; /* Adjusted logo height */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for Block 3 */
@media (max-width: 768px) {
    .alliances-title {
        font-size: 2rem;
    }
    .logo-slide img {
        height: 36px;
    }
}

/* Final Block - Footer (SERHANT Style) */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding-top: 5rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 2fr 1fr;
        gap: 2rem;
    }
}

.footer-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Column 1: Contact */
.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--white);
}

.contact-col .btn-pill {
    margin-top: 2.5rem;
    border-radius: 9999px;
    text-transform: none;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0.75rem 2.5rem;
    font-size: 0.9rem;
}

/* Column 2: Elegant Links */
.elegant-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.elegant-links li a {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.8;
    transition: var(--transition);
    display: inline-block;
    color: var(--white);
}

.elegant-links li a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateX(8px);
}

/* Column 3: Insights */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--white);
}

.footer-links li a:hover {
    opacity: 0.7;
}

/* Bottom Footer Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.logo-serif {
    font-size: 1.75rem;
    color: var(--white);
}

@media (min-width: 768px) {
    .logo-serif {
        font-size: 2rem;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-copyright a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: opacity 0.2s ease;
}

.footer-copyright a:hover {
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    border-color: var(--white);
    transform: translateY(-5px);
}

/* Legal Notice in Footer */
.footer-legal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
}

.footer-legal p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Responsive Grid Tweaks */
@media (max-width: 767px) {
    .nav-col .elegant-links li a {
        font-size: 1rem;
    }
}
