:root {
    --primary-blue: #1a73e8;
    --secondary-blue: #2c3e50;
    --pure-white: #ffffff;
    --light-bg: #f5f9fc;
    --nav-height: 0px; /* updated by JS */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    padding-top: 0; /* removed fixed top padding — JS sets it dynamically */
    color: var(--secondary-blue);
    background-color: var(--light-bg);
}

/* Barra de navegación */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}

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

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.cash {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.8rem;
}

.boat {
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-logo {
    height: 40px;
    margin-left: 10px;
}

/* Menú central */
.nav-pill {
    background: var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    display: flex;
    gap: 2rem;
}

.nav-pill a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-pill a:hover {
    opacity: 0.9;
}

.nav-button {
    background: var(--pure-white);
    color: var(--primary-blue);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
}

/* Hero Section */
.hero {
    /* use nav height variable so hero sizing matches dynamic nav on mobile */
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
    display: none; /* Elimina el overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--secondary-blue);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-blue);
    margin-bottom: 3rem; /* Aumenté el espacio inferior */
    font-weight: 400;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex; /* activar gap y dirección */
    justify-content: center;
    margin-top: 2rem; /* Espacio adicional arriba de los botones */
    gap: 1.5rem; /* Separación entre botones */
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.cta-primary {
    background: var(--primary-blue);
    color: var(--pure-white);
}

.cta-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Sección Misión */
.mission-section {
    padding: 4rem 2rem;
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-image img {
    width: 55%; /* Reducción del tamaño */
    max-width: 600px; /* Tamaño máximo */
    height: auto;
    display: block;
    margin: 0 auto; /* Centrado horizontal */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-text h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

/* Sección Contenido */
.content-section {
    padding: 4rem 2rem;
    background: var(--pure-white);
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem; /* Asegura espacio en móviles */
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.content-card {
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-bg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.recommendations-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.recommendations-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.recommendation-card {
    text-align: center;
    width: 250px;
}

.round-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-blue);
}

/* Sección Equipo */
.team-section {
    padding: 4rem 2rem;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.position {
    color: var(--primary-blue);
    font-weight: 500;
    margin: 0.5rem 0;
}

.bio {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-container {
        /* Allow wrapping for the nav pill to drop down */
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .nav-center {
        /* Make the nav center take full width when it wraps */
        width: 100%;
        order: 3;
    }
    
    .nav-pill {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.8rem;
        margin-top: 1rem;
    }

    .mission-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-image {
        order: -1; /* Move image above text on mobile */
    }

    .mission-image img {
        width: 80%; /* Increase size on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        text-align: center;
    }

    .recommendations-grid {
        gap: 2rem;
    }
    
    .round-img {
        width: 140px;
        height: 140px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        /* For very small screens, stack the brand and button */
        flex-direction: column;
        gap: 1rem;
    }

    .nav-center {
        width: 100%;
    }

    .brand-group {
        width: 100%;
        justify-content: space-between;
    }

    .nav-pill {
        margin-top: 0;
    }
}

/* Estilos cuando se hace scroll */
.main-nav.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

/* Ensure sections respect nav height when browsers scroll them into view */
section, header {
    scroll-margin-top: var(--nav-height);
}

/* Ensure nav height is stable — avoid height/padding transitions that shift layout */
.main-nav {
    padding: 1rem 0; /* base padding */
    transition: background-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}