@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ================= VARIABLES ================= */
:root {
    --navy: #0B1F33;
    --primary: #0077B6;
    --green: #2CB1A6;
    --accent: #90B4D8;
    --white: #F5F8F3;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--navy);
    color: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* ================= HEADER ================= */

.header {
    position: fixed;
    width: 100%;
    background: rgba(11, 31, 51, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
}

.brand-name {
    font-weight: 600;
    margin-left: 10px;
    font-size: 18px;
}

.nav a {
    color: var(--accent);
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--white);
}

.nav a.active {
    color: var(--green);
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: var(--green);
    border-radius: 4px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ================= SIDEBAR ================= */

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: #09192a;
    padding: 30px;
    transition: 0.4s;
    z-index: 2000;
}

.side-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin: 20px 0;
    font-size: 18px;
}

.side-menu.active {
    right: 0;
}

.close-btn {
    font-size: 22px;
    cursor: pointer;
    display: block;
    margin-bottom: 30px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1500;
}

.overlay.active {
    display: block;
}

/* ================= MAIN ================= */

.content {
    padding-top: 90px;
}

/* ================= HERO ================= */

.hero {
    padding: 120px 20px 80px;
}

.carousel {
    position: relative;
    width: 95%;
    /* ocupa casi todo el ancho */
    max-width: 100%;
    /* elimina el límite de 1000px */
    margin: auto;
    height: 450px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75));
}

.slide-content {
    position: relative;
    text-align: center;
    max-width: 700px;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.1rem;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    display: inline-block;
    background-color: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--green);
}

/* ================= SECTIONS ================= */

.section {
    padding: 100px 40px;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
}

.dark {
    background: #09192a;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: #102a43;
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ================= CONTACTO (CORREGIDO Y CENTRADO) ================= */

.contacto {
    background: #09192a;
}

.contact-wrapper {
    margin: 60px auto 0 auto;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info,
.social-media {
    flex: 1;
    min-width: 280px;
}

.contact-info h3,
.social-media h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--green);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 55px;
    height: 55px;
    background: #102a43;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--green);
    color: white;
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(44, 177, 166, 0.4);
}

/* ================= FOOTER ================= */

.footer {
    background: #050f18;
    padding: 25px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .carousel {
        height: 350px;
        width: 100%;
        border-radius: 15px;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

}