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

    body {
        font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: #f4f7fb;
        color: #1e293b;
        line-height: 1.6;
    }

    /* ================= NAVBAR PRINCIPAL ================= */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff 0%, #fafaf9 100%);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        transition: all 0.4s ease;
        padding: 15px 40px;
    }

    .navbar.scrolled {
        padding: 8px 40px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .navbar-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* ================= LOGO ================= */
    .logo {
        flex-shrink: 0;
    }

    .logo a {
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 65px;
        width: auto;
        transition: all 0.3s ease;
        object-fit: contain;
    }

    .navbar.scrolled .logo img {
        height: 45px;
    }

    /* ================= MENÚ ================= */
    .menu {
        display: flex;
        align-items: center;
    }

    .menu-principal {
        display: flex;
        list-style: none;
        gap: 25px;
    }

    .menu-principal > li {
        position: relative;
    }

    .menu-principal > li > a {
        text-decoration: none;
        color: #1e293b;
        font-weight: 600;
        font-size: 15px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color 0.3s ease;
        letter-spacing: 0.3px;
    }

    .menu-principal > li > a i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .menu-principal > li > a:hover {
        color: #0077b6;
    }

    .menu-principal > li:hover > a i {
        transform: rotate(180deg);
    }

    /* ================= SUBMENÚ (DROPDOWN) ================= */
    .submenu {
        position: absolute;
        top: 40px;
        left: 0;
        background: white;
        list-style: none;
        min-width: 220px;
        padding: 12px 0;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
        border: 1px solid rgba(0, 119, 182, 0.1);
    }

    .menu-principal > li:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .submenu li {
        padding: 0;
    }

    .submenu a {
        text-decoration: none;
        color: #334155;
        font-size: 14px;
        font-weight: 500;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.2s ease;
    }

    .submenu a i {
        width: 20px;
        font-size: 14px;
        color: #0077b6;
    }

    .submenu a:hover {
        background: linear-gradient(90deg, #eef2ff 0%, transparent 100%);
        color: #0077b6;
        padding-left: 25px;
    }

    /* ================= BOTÓN HAMBURGUESA ================= */
    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        cursor: pointer;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1002;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
        background: #1e293b;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .hamburger:hover {
        background: #f1f5f9;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Overlay para móvil */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ================= HERO / BIENVENIDA CON LÍNEAS LATERALES ================= */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
    /* Curva inferior con clip-path */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    /* REDONDEO DE LOS BORDES DE LA FOTO - SOLO LAS ESQUINAS SUPERIORES */
    border-radius: 30px 30px 0 0;
}

/* Línea blanca izquierda (vertical) - SIGUE RECTA */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 18px;
    height: 100%;
    background: white;
    z-index: 3;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    /* Las líneas NO se redondean */
    border-radius: 0;
}

/* Línea blanca derecha (vertical) - SIGUE RECTA */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50px;
    width: 18px;
    height: 100%;
    background: white;
    z-index: 3;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    /* Las líneas NO se redondean */
    border-radius: 0;
}

/* Overlay oscuro para que el texto se lea mejor */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

/* Título */
.hero-titulo {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFE4B5 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
    animation: fadeInDown 0.8s ease-out;
}

/* Descripción */
.hero-descripcion {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Botón */
.btn-descubrir {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-descubrir i {
    transition: transform 0.3s ease;
}

.btn-descubrir:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.5);
    background: linear-gradient(135deg, #006699, #0096c7);
    gap: 15px;
}

.btn-descubrir:hover i {
    transform: translateX(5px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 968px) {
    .hero {
        height: 70vh;
        min-height: 500px;
        background-attachment: scroll;
        border-radius: 20px 20px 0 0;
    }
    
    /* Líneas más finas y cerca del borde en móvil */
    .hero::before {
        left: 15px;
        width: 3px;
    }
    
    .hero::after {
        right: 15px;
        width: 3px;
    }
    
    .hero-titulo {
        font-size: 42px;
    }
    
    .hero-descripcion {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .btn-descubrir {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 60vh;
        min-height: 450px;
        border-radius: 15px 15px 0 0;
    }
    
    /* Líneas laterales más finas */
    .hero::before,
    .hero::after {
        width: 2px;
    }
    
    .hero-titulo {
        font-size: 32px;
    }
    
    .hero-descripcion {
        font-size: 16px;
        margin-bottom: 25px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


    /* ================= SECCIONES GENERALES ================= */
    main {
        margin-top: 90px;
    }

    .guias {
        max-width: 1300px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .titulo-guias {
        text-align: center;
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 30px;
        color: #1e293b;
        border-bottom: 3px solid #0077b6;
        padding-bottom: 12px;
        display: inline-block;
        width: auto;
    }

    .contenedor-guias {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 25px;
    }

    .card-guia {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        text-decoration: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        display: block;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .card-guia:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .card-guia img {
        width: 100%;
        height: 320px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .card-guia:hover img {
        transform: scale(1.05);
    }

    .titulo-card {
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        text-align: center;
        padding: 12px;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #111;
        margin: 0 15px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .seccion {
        max-width: 1300px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .seccion h2 {
        text-align: center;
        font-size: 28px;
        margin-bottom: 30px;
        color: #0077b6;
    }

    .grid-consejos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .consejo {
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        text-align: center;
        font-weight: 500;
        transition: transform 0.3s;
    }

    .consejo:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .footer {
        background: #0f2f44;
        color: white;
        padding: 40px 20px 20px;
        margin-top: 40px;
    }

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

    .footer-col h3, .footer-col h4 {
        margin-bottom: 15px;
        font-size: 18px;
    }

    .footer-col p {
        font-size: 14px;
        line-height: 1.5;
        opacity: 0.8;
    }

    .footer-col ul {
        list-style: none;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-col a {
        color: #ddd;
        text-decoration: none;
        font-size: 14px;
        transition: 0.3s;
    }

    .footer-col a:hover {
        color: white;
        text-decoration: underline;
    }

    .copyright {
        text-align: center;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 13px;
        opacity: 0.7;
    }

    /* ================= RESPONSIVE - MENÚ EN IZQUIERDA ================= */
    @media (max-width: 968px) {
        .navbar {
            padding: 12px 20px;
        }

        .navbar.scrolled {
            padding: 8px 20px;
        }

        .logo img {
            height: 55px;
        }

        .navbar.scrolled .logo img {
            height: 38px;
        }

        .hamburger {
            display: flex;
        }

        /* 🔥 CAMBIO CLAVE: menú se abre desde la IZQUIERDA 🔥 */
        .menu {
            position: fixed;
            top: 0;
            left: -100%;           /* Antes: right: -100% */
            width: 80%;
            max-width: 320px;
            height: 100vh;
            background: white;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding: 80px 20px 30px;
            margin: 0;
            box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);  /* Sombra a la derecha */
            transition: left 0.3s ease;
            z-index: 1001;
            overflow-y: auto;
        }

        .menu.active {
            left: 0;                /* Antes: right: 0 */
        }

        .menu-principal {
            flex-direction: column;
            width: 100%;
            gap: 8px;
        }

        .menu-principal > li {
            width: 100%;
        }

        .menu-principal > li > a {
            padding: 12px 0;
            justify-content: space-between;
        }

        .submenu {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            background: #f8fafc;
            display: none;
            margin-top: 5px;
            margin-bottom: 10px;
            border-radius: 12px;
            width: 100%;
            border: none;
        }

        .submenu a {
            padding: 10px 15px;
        }

        .submenu a:hover {
            padding-left: 20px;
        }

        .menu-principal > li.active .submenu {
            display: block;
        }

        .menu-principal > li.active > a i {
            transform: rotate(180deg);
        }

        .contenedor-guias {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .card-guia img {
            height: 220px;
        }

        .titulo-card {
            font-size: 16px;
            padding: 8px;
            top: 15px;
        }
    }

    @media (max-width: 600px) {
        main {
            margin-top: 70px;
        }

        .guias {
            padding: 30px 15px;
        }

        .titulo-guias {
            font-size: 22px;
            display: block;
            text-align: center;
        }

        .contenedor-guias {
            grid-template-columns: 1fr;
        }

        .card-guia img {
            height: 200px;
        }

        .seccion {
            padding: 30px 15px;
        }

        .seccion h2 {
            font-size: 22px;
        }

        .grid-consejos {
            grid-template-columns: 1fr;
        }

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