html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', Arial, sans-serif;
    height: auto;
}

header {
    background-color: #fff;
    color: #003366;
    padding: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 10;
    position: relative;
}

.pre-header {
    display: none;
    background: #f8f8f8;
    padding: 8px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pre-header a {
    display: inline-block;
    margin: 5px 8px;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.btn1 {
    background: #d71118;
}

.btn2 {
    background: #4fbcc4;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    padding: 0 40px;
    box-sizing: border-box;
}

.logo {
    width: 120px;
    max-width: 120px;
}

nav {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav a {
    color: #003366;
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9375rem;
    line-height: normal;
    display: inline-block;
}

.menu-btn {
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    margin-left: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

/* Botón hamburguesa */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #003366;
    background: none;
    border: none;
}

/* Menú móvil */
@media (max-width: 900px) {
    .pre-header {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        height: auto;
        padding: 15px 20px;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        display: none;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    nav a {
        display: block;
        padding: 15px 0;
        border-top: 1px solid #eee;
        margin: 0;
    }

    .hamburger {
        display: block;
    }

    nav.active {
        display: flex;
    }

    nav .menu-btn {
        display: none;
    }
}

/* Ajuste entre 901px y 1207px */
@media (min-width: 901px) and (max-width: 1207px) {
    .nav-container {
        padding: 0 20px;
        height: auto;
        min-height: 90px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    nav a {
        font-size: 0.9rem;
        margin: 0 6px;
    }

    .menu-btn {
        font-size: 0.9rem;
        padding: 6px 16px;
    }
}

/* Hero */
.hero {
    position: relative;
    width: 100vw;
    height: calc(100vh - 100px);
    overflow: hidden;
    background: #003366;
}

.carousel {
    position: relative;
    height: 100%;
    width: 100vw;
    overflow: hidden;
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
    pointer-events: none;
}

.carousel img.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(135deg, #40909d -100%, rgba(0, 41, 45, 0.7) 43%, rgba(0, 0, 50, 0.2) 100%, transparent 100%);
}

.hero-content {
    position: absolute;
    top: 30%;
    left: 7vw;
    transform: translateY(-50%);
    text-align: left;
    color: white;
    width: 500px;
    pointer-events: none;
    z-index: 2;
    max-width: 90vw;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content .slide-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(.77, 0, .18, 1);
    z-index: 2;
    display: flex;
}

.hero-content .slide-content.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content h3,
.slide-content h1,
.slide-content p {
    margin: 0 0 4px 0;
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.7s cubic-bezier(.77, 0, .18, 1), transform 0.7s cubic-bezier(.77, 0, .18, 1);
}

.slide-content.active h3,
.slide-content.active h1,
.slide-content.active p {
    opacity: 1;
    transform: translateY(0);
}

.slide-content .cta-btn {
    margin-top: 8px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.77, 0, .18, 1), transform 0.7s cubic-bezier(.77, 0, .18, 1);
}

.slide-content.active .cta-btn {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn {
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    font-size: 1.25rem;
    text-decoration: none;
    border-radius: 5px;
    pointer-events: auto;
    display: inline-block;
    white-space: nowrap;
}

.cta-btn:hover {
    background-color: #cc5200;
}

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    transition: color 0.2s;
    pointer-events: auto;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

@media (max-width: 768px) {
    .hero {
        height: calc(100vh - 80px);
    }

    .hero-content {
        top: 35%;
        left: 5vw;
        width: 90%;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 10px 18px;
    }

    .arrow-btn {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

/* Fix para móviles grandes como S22 Ultra */
@media (max-width: 430px) {
    .hero-content {
        top: 40%;
        left: 4vw;
        width: 92%;
    }

    .cta-btn {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}