/*-----------------------------------------
        Estilos del index.html
-------------------------------------------*/

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-fondo-blanco);
    color: var(--color-texto);
    margin: 0;
    padding: 0;
    font-size: 0.75rem; /* tamaño base en móviles */
}

.main-content {
    padding: 10px; /* padding reducido para pantallas pequeñas */
}

/* Ajuste responsive general */
@media (max-width: 768px) {
    body {
        font-size: 0.75rem;
    }

    .main-content {
        padding: 10px 5px;
    }
}



/*-----------------------------------------
    Header
-------------------------------------------*/
/* Header centrado */
.header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(209, 209, 209, 0.15);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    border-radius: 50px;
}


.logo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #011d34;
}

.logo-header img {
    height: 40px;
}

.titulo-header {
    font-size: 2rem;
    font-weight: bold;
    color: #ff5e00;
}

/* Menú */
.menu-header {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    z-index: 1001;

}

.menu-header {
    display: flex;
    justify-content: end;
    margin-left: -90px;
    width: 100%;
}

.menu-header ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.menu-header li a {
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    color: #011d34  ;
    font-weight: bold;
}


.menu-header li a.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff5e00;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #011d34;
    border-radius: 2px;
}

/* Overlay menú móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 29, 52, 0.6);
    z-index: 900;
}

/* ==============================
   RESPONSIVE MÓVIL
============================== */
@media (max-width: 768px) {
    .titulo-header {
        display: none; /* Oculta el título en móvil */
    }

    .menu-header {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 70%;
        background-color: #011d34;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 950;
    }

    .menu-header ul {
        flex-direction: column;
        gap: 2rem;
    }

    .menu-header li a {
        color: #fff;
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-header.active {
        right: 0;
    }

    .menu-overlay.active {
        display: block;
    }
}


/*-----------------------------------------
        TUTORIALES
-----------------------------------------*/

/* --- BUSCADOR--- */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    margin-top: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid #ccc;
    font-size: 0.875rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
}

.search-bar input:focus {
    border-color: #ff5e00;
    box-shadow: 0 2px 8px rgba(255,94,0,0.3);
}

.search-bar button {
    background-color: #ff5e00;
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #e04f00;
}

/* Icono de lupa dentro del input */
.search-bar::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1rem;
    pointer-events: none;
}


/* --- GRID DE TUTORIALES --- */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tutorial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.tutorial-card iframe {
    width: 100%;
    height: 180px;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.tutorial-card h3 {
    font-size: 0.875rem;
    color: #011d34;
    margin: 0.5rem 0 0;
}


/*-----------------------------------------
    Footer
-------------------------------------------*/
.footer {
    background-color: #011d34;
    color: white;
    padding: 30px 80px;
    font-family: Arial, sans-serif;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-titulo h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.footer-titulo p {
    font-size: 1.2rem;
}

.footer-redes a {
    color: white;
    font-size: 1.5rem;
    margin-left: 20px;
    position: relative;
    transition: transform 0.3s;
}

.footer-redes a:hover {
    transform: scale(1.2);
}

/* Tooltips */
.footer-redes a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff5e00;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s;
}

.footer-redes a:hover::after {
    opacity: 1;
}

/* Columnas */
.footer-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.columna {
    flex: 1;
    min-width: 200px;
}

.columna h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.columna img {
    max-width: 20%;
}

.columna .col-items a,
.columna .col-items p {
    display: block;
    color: rgb(131, 131, 131);
    margin-bottom: 8px;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.columna .col-items a:hover,
.columna .col-items p.zoom-hover:hover {
    transform: scale(1.1);
    color: #ff5e00;
}

.derechos {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ==============================
   FOOTER RESPONSIVE
============================== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 20px;  /* menos padding en móvil */
        text-align: center;
    }

    .footer-top {
        flex-direction: column; /* ✅ primero título, luego redes */
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .footer-titulo h2 {
        font-size: 1.8rem;
    }

    .footer-titulo p {
        font-size: 1rem;
    }

    .footer-redes {
        display: flex;
        justify-content: center;
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    /* Columnas en vertical */
    .footer-columns {
        flex-direction: column;   /* ✅ apiladas */
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .columna {
        min-width: unset;
        width: 100%;   /* cada bloque ocupa todo el ancho */
    }

    .columna img {
        max-width: 100px; /* logo más grande y centrado */
        margin-bottom: 10px;
    }

    .columna h3 {
        margin-bottom: 10px;
    }

    .columna .col-items a {
        font-size: 1rem;
    }

    .derechos {
        margin-top: 15px;
        font-size: 0.75rem;
        text-align: center;
    }
}