/* Variables Globales */
:root {
    --primary: #195867;
    --accent: #55a6b9;
    --bg-dark: #373737;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
}

/* --- NAVBAR ESTILO FIJO --- */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Logo izquierda, Links derecha */
    align-items: center;
}

/* Estilo del Logo */
.logo-link img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}

/* Estilo de Enlaces */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

/* Barra de progreso de lectura */
.navbar-custom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    animation: progress linear;
    animation-timeline: scroll(root);
}

@keyframes progress {
    to { width: 100%; }
}

/* --- SECCIONES --- */
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px; /* Evita que el nav tape el contenido */
    text-align: center;
}

#Main { background-color: var(--primary); }
#Who { background-color: #144652; }

.content {
    max-width: 800px;
    width: 100%;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

h1, h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto;
}

p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* --- RESPONSIVIDAD (MÓVIL) --- */
@media (max-width: 768px) {
    .navbar-custom {
        height: auto;
        padding: 10px 0;
    }

    .nav-container {
        flex-direction: row; /* Mantiene logo y links en la misma línea si caben */
    }

    .logo-link img {
        height: 40px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column; /* Apila logo arriba y links abajo en pantallas muy pequeñas */
        gap: 10px;
    }
}
