/* styles-index.css */
body {
    background-color: #f5f7fa;
    color: #333;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* --- HEADER Y TEXTO DE BIENVENIDA --- */
.header {
    width: 100%;
    margin: 20px auto 0;
    padding: 0;
    text-align: center;
    border-bottom: none !important;
}

.header h1 {
    color: #333;
    padding: 0;
    margin-bottom: 5px;
}

.header h2 {
    color: #333;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    max-width: none;
    text-align: center;
    line-height: 1.8;
}

/* SOLUCIÓN DEFINITIVA - FORZAR ANCHO COMPLETO */
@media (min-width: 993px) {
    .header h2.tagline {
        color: #333;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        max-width: none;
        text-align: center;
        line-height: 1.8;
        box-sizing: border-box;
        padding: 0 20px;
    }
}

.header {
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- FIN DE MODIFICACIÓN --- */

.excel-icon-color {
    color: #21a366;
}

/* Eliminadas las secciones .intro-section y .bio-section */

.tools-grid-section {
    padding: 0 5px 10px 5px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    max-width: 120px;
    transition: transform 0.3s ease;
    perspective: 1000px;
}

.tool-logo {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 10px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0) rotateX(0) rotateY(0);

    /* Efecto 3D con sombras múltiples */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 6px 12px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);

    /* Borde sutil para más definición */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Paleta de colores más grande con gradientes */
.tool-logo[data-color='1'] {
    background: linear-gradient(145deg, #5ac8fa, #4ab8ea);
}

.tool-logo[data-color='2'] {
    background: linear-gradient(145deg, #ff9500, #ee8500);
}

.tool-logo[data-color='3'] {
    background: linear-gradient(145deg, #34c759, #24b749);
}

.tool-logo[data-color='4'] {
    background: linear-gradient(145deg, #ff2d55, #ee1d45);
}

.tool-logo[data-color='5'] {
    background: linear-gradient(145deg, #af52de, #9f42ce);
}

.tool-logo[data-color='6'] {
    background: linear-gradient(145deg, #5856d6, #4846c6);
}

.tool-logo[data-color='7'] {
    background: linear-gradient(145deg, #fc6d26, #ec5d16);
}

.tool-logo[data-color='8'] {
    background: linear-gradient(145deg, #4a90e2, #3a80d2);
}

.tool-logo[data-color='9'] {
    background: linear-gradient(145deg, #7ed321, #6ec311);
}

.tool-logo[data-color='10'] {
    background: linear-gradient(145deg, #bd10e0, #ad00d0);
}

.tool-logo[data-color='11'] {
    background: linear-gradient(145deg, #f5a623, #e59613);
}

.tool-logo[data-color='12'] {
    background: linear-gradient(145deg, #417505, #316505);
}

.tool-logo[data-color='13'] {
    background: linear-gradient(145deg, #0076a8, #006698);
}

.tool-logo[data-color='14'] {
    background: linear-gradient(145deg, #9013fe, #8003ee);
}

.tool-logo[data-color='15'] {
    background: linear-gradient(145deg, #f7b500, #e7a500);
}

.tool-logo[data-color='16'] {
    background: linear-gradient(145deg, #50e3c2, #40d3b2);
}

.tool-logo[data-color='17'] {
    background: linear-gradient(145deg, #d0021b, #c0000b);
}

.tool-logo[data-color='18'] {
    background: linear-gradient(145deg, #064098, #053088);
}

.tool-logo[data-color='19'] {
    background: linear-gradient(145deg, #7b293e, #6b192e);
}

.tool-logo[data-color='20'] {
    background: linear-gradient(145deg, #27ae60, #179e50);
}

/* Efecto 3D al pasar el ratón */
.tool-item:hover .tool-logo {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg) scale(1.1);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 24px 48px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -8px 16px rgba(0, 0, 0, 0.3);
    filter: brightness(1.15) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

/* Efecto de pulsación suave al hacer clic */
.tool-item:active .tool-logo {
    transform: translateZ(10px) rotateX(2deg) rotateY(2deg) scale(0.98);
    transition-duration: 0.1s;
}

.tool-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, font-weight 0.3s ease;
}

/* Efecto sutil en el título al hover */
.tool-item:hover .tool-title {
    font-weight: 800;
    transform: translateY(2px);
}

footer {
    background-color: #222;
    color: #fff;
    padding: 15px 5px 10px 5px;
    text-align: center;
    margin-top: 10px;
    border-top: 1px solid #444;
}

/* Contenedor para el bloque de texto con logos a los lados */
.footer-legal-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-logo img.agpl-logo {
    max-width: 120px;
}

.footer-text-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
}

/* Nuevos estilos para enlaces de páginas en footer */
.footer-pages-links {
    margin: 25px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #444;
    padding-bottom: 8px;
}

.footer-links-column a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links-column a:hover {
    color: #5ac8fa;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 5px 10px;
}

.disclaimer-note {
    margin-top: 1rem;
    padding: 0 1rem;
    font-size: .8rem;
    color: #aaa;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para el nav de noscript */
noscript nav {
    background-color: #333;
    padding: 10px;
    text-align: center;
    margin: 20px 0;
    border-radius: 5px;
}

noscript nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

noscript nav a:hover {
    text-decoration: underline;
    color: #5ac8fa;
}

/* CORRECCIÓN COMPLETA PARA ICONOS EN VERSIÓN MÓVIL */
@media (max-width: 768px) {
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tool-item {
        max-width: 100px;
    }

    .tool-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-radius: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        margin-bottom: 10px;
        position: relative;
        transform-style: preserve-3d;
        transform: translateZ(0) rotateX(0) rotateY(0);

        /* Efecto 3D con sombras múltiples */
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 6px 12px rgba(0, 0, 0, 0.15),
            0 10px 20px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -4px 8px rgba(0, 0, 0, 0.2);

        border: 1px solid rgba(255, 255, 255, 0.1);
        background-color: inherit !important;
    }

    /* Efecto 3D para móvil */
    .tool-item:hover .tool-logo {
        transform: translateZ(15px) rotateX(3deg) rotateY(3deg) scale(1.08);
        box-shadow:
            0 8px 16px rgba(0, 0, 0, 0.25),
            0 12px 24px rgba(0, 0, 0, 0.2),
            0 16px 32px rgba(0, 0, 0, 0.15),
            inset 0 1px 2px rgba(255, 255, 255, 0.4),
            inset 0 -6px 12px rgba(0, 0, 0, 0.25);
        filter: brightness(1.1) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    }

    .tool-title {
        margin: 0;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        color: #333;
        transition: transform 0.3s ease, font-weight 0.3s ease;
    }

    /* Efecto sutil en el título al hover en móviles */
    .tool-item:hover .tool-title {
        font-weight: 800;
        transform: translateY(2px);
    }

    /* Forzar que los gradientes específicos se apliquen en móvil */
    .tool-logo[data-color='1'] {
        background: linear-gradient(145deg, #5ac8fa, #4ab8ea) !important;
    }

    .tool-logo[data-color='2'] {
        background: linear-gradient(145deg, #ff9500, #ee8500) !important;
    }

    .tool-logo[data-color='3'] {
        background: linear-gradient(145deg, #34c759, #24b749) !important;
    }

    .tool-logo[data-color='4'] {
        background: linear-gradient(145deg, #ff2d55, #ee1d45) !important;
    }

    .tool-logo[data-color='5'] {
        background: linear-gradient(145deg, #af52de, #9f42ce) !important;
    }

    .tool-logo[data-color='6'] {
        background: linear-gradient(145deg, #5856d6, #4846c6) !important;
    }

    .tool-logo[data-color='7'] {
        background: linear-gradient(145deg, #fc6d26, #ec5d16) !important;
    }

    .tool-logo[data-color='8'] {
        background: linear-gradient(145deg, #4a90e2, #3a80d2) !important;
    }

    .tool-logo[data-color='9'] {
        background: linear-gradient(145deg, #7ed321, #6ec311) !important;
    }

    .tool-logo[data-color='10'] {
        background: linear-gradient(145deg, #bd10e0, #ad00d0) !important;
    }

    .tool-logo[data-color='11'] {
        background: linear-gradient(145deg, #f5a623, #e59613) !important;
    }

    .tool-logo[data-color='12'] {
        background: linear-gradient(145deg, #417505, #316505) !important;
    }

    .tool-logo[data-color='13'] {
        background: linear-gradient(145deg, #0076a8, #006698) !important;
    }

    .tool-logo[data-color='14'] {
        background: linear-gradient(145deg, #9013fe, #8003ee) !important;
    }

    .tool-logo[data-color='15'] {
        background: linear-gradient(145deg, #f7b500, #e7a500) !important;
    }

    .tool-logo[data-color='16'] {
        background: linear-gradient(145deg, #50e3c2, #40d3b2) !important;
    }

    .tool-logo[data-color='17'] {
        background: linear-gradient(145deg, #d0021b, #c0000b) !important;
    }

    .tool-logo[data-color='18'] {
        background: linear-gradient(145deg, #064098, #053088) !important;
    }

    .tool-logo[data-color='19'] {
        background: linear-gradient(145deg, #7b293e, #6b192e) !important;
    }

    .tool-logo[data-color='20'] {
        background: linear-gradient(145deg, #27ae60, #179e50) !important;
    }

    /* Ajuste para el bloque de footer en móvil */
    .footer-legal-block {
        flex-direction: column;
        gap: 20px;
    }

    .footer-logo img {
        max-width: 160px;
    }

    .footer-logo img.agpl-logo {
        max-width: 100px;
    }

    .footer-text-content {
        min-width: auto;
        width: 100%;
    }

    /* Ajustes para enlaces de páginas en móvil */
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .footer-links-column a {
        font-size: 0.85rem;
    }
}

/* AJUSTE PARA ESCRITORIO - 10 ICONOS POR FILA */
@media (min-width: 993px) {
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 15px;
    }

    .tool-item {
        max-width: 100px;
    }

    .tool-logo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .tool-logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .tool-item {
        max-width: 90px;
    }

    .footer-logo img {
        max-width: 140px;
    }

    .footer-logo img.agpl-logo {
        max-width: 80px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}