﻿/* ===================================
   General
=================================== */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding-top: 70px; /* espacio para header fijo */
}

/* ===================================
   Loader
=================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2000;
}

.loader-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: auto;
}
.highlight-link {
    background: white; /* fondo blanco */
    color: black; /* texto negro */
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}

    .highlight-link:hover {
        background: #f0f0f0; /* fondo gris claro al pasar el mouse */
        color: black;
    }
.imagen-expandida {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================
   Header fijo y menú
=================================== */
header, .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    header h1, .header h1, .header h5 {
        font-size: 22px;
        margin: 0;
    }

.header-buttons {
    display: flex;
    gap: 15px; /* espacio entre enlaces */
    padding-right: 50px; 
}

.cta-link {
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
    .cta-link i {
        margin-right: 8px;
        font-size: 16px; /* tamaño del icono */
    }
.header ul li a i {
    margin-right: 6px; /* espacio entre icono y texto */
    vertical-align: middle; /* centra verticalmente con el texto */
    font-size: 14px; /* tamaño del icono */
}
    .cta-link:hover {
        background: #e6e6e6;
    }

    /* Menú principal */
    .header ul {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
    }

        .header ul li a {
            text-decoration: none;
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            transition: background 0.2s;
            font-size: 16px;
        }

            .header ul li a:hover {
                background: rgba(255, 255, 255, 0.2);
            }

        /* Imagen de bandera */
        .header ul li.flag-img img {
            border-radius: 3px;
        }

/* Responsive menu */
#check {
    display: none;
}

.checkbtn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Media Query para pantallas móviles */
@media (max-width: 768px) {

    /* Menú lateral existente */
    .checkbtn {
        display: block;
        color: white;
        margin: 2px;
    }
    /* Header fijo */
    .header {
        display: block;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #2460b0;
        color: white;
        padding: 5px 10px;
        height: 50px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .header ul {
        position: fixed; /* fijo respecto a la ventana */
        top: 50px; /* pegado arriba */
        left: -200px; /* oculto a la izquierda */
        width: 200px;
        height: 100%; /* ocupa toda la altura */
        background: #2460b0;
        flex-direction: column; /* columna vertical */
        gap: 0; /* sin espacio extra */
        padding-top: 64px; /* deja espacio para el header */
        padding-left: 0; /* enlaces alineados a la izquierda */
        transition: left 0.3s; /* efecto deslizante */
        z-index: 999;
    }

        .header ul li {
            text-align: left;
            width: 100%; /* ocupa todo el ancho del menú */
            border: 1px solid #f0f0f0;
        }

    #check:checked ~ ul {
        left: 0;
    }

    .header ul li a {
        font-size: 18px;
        padding: 15px 20px; /* más espacio para clic fácil */
        display: block; /* para que todo el ancho sea clicable */
        color: white;
        border-radius: 0;
    }

        .header ul li a:hover {
            background: rgba(255,255,255,0.2);
        }

    /* ===============================
       Ajustes para los enlaces CTA
       Suscribirte / Prueba Gratis
       =============================== */
    .header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 10px; /* espacio opcional debajo del header */
    }

        .header-buttons .cta-link {
            width: 100%;
            justify-content: flex-start;
            padding: 12px 15px;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 6px; /* espacio entre ícono y texto */
        }

            .header-buttons .cta-link i {
                font-size: 20px;
            }
                .highlight-link {
        border-radius: 0;
    }
}

/* ===================================
   Cards y features
=================================== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-card h3 {
        margin-top: 15px;
    }

    .feature-card i {
        font-size: 40px;
        color: #007bff;
    }

/* ===================================
   Secciones de imagen y texto
=================================== */
.imagen-ajustada {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Flex layouts */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.md\:flex-row {
    flex-direction: row;
}

.pt-8 {
    padding-top: 2rem;
}

.md\:pt-16 {
    padding-top: 4rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.bg-gray-100 {
    background-color: #f3f3f3;
}

.bg-white {
    background-color: #ffffff;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.md\:p-10 {
    padding: 2.5rem;
}

.text-gray-700 {
    color: #4a4a4a;
}

.text-gray-800 {
    color: #333;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: bold;
}

.w-full {
    width: 100%;
}

.md\:w-1\/2 {
    width: 50%;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.max-w-md {
    max-width: 28rem;
}
