/* 
 * Estilos responsivos personalizados para la página de gominolas
 * Mejoras específicas para visualización en dispositivos móviles
 */

/* Ajustes específicos para el header y footer en móviles */
@media (max-width: 768px) {
    /* Ajustes para el encabezado móvil */
    header .logo img {
        max-width: 150px;
    }

    /* Mejoras para el menú de navegación */
    .menu-toggle {
        padding: 10px;
    }

    /* Mejoras para el footer en dispositivos móviles */
    .footer-columns {
        gap: 20px;
    }

    .footer-column h3 {
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .footer-links li, .contact-list li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }

    .contact-list li i {
        margin-right: 8px;
        width: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom p {
        margin-bottom: 0;
        font-size: 0.85rem;
    }

    .footer-legal {
        font-size: 0.85rem;
    }
}

/* Ajustes generales para dispositivos móviles */
@media (max-width: 768px) {
    /* Mejoras para el hero */
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-simple .hero-content-simple.hero-content-full .hero-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-simple .hero-content-simple.hero-content-full .hero-feature {
        width: calc(33.33% - 10px);
        min-width: unset;
        margin: 0;
        padding: 12px 10px;
    }

    /* Mejoras para las tablas */
    .formulas-table-container {
        margin-bottom: 30px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 5px;
    }

    .table-responsive {
        margin-bottom: 25px;
    }

    .formulas-table {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: hidden;
        min-width: 600px; /* Establecer un ancho mínimo para la tabla */
        border-collapse: separate;
        border-spacing: 0;
    }

    .formulas-table th {
        padding: 12px 10px;
        font-size: 0.9rem;
        position: sticky;
        top: 0;
        background-color: #f8f9fa;
        z-index: 1;
        border-bottom: 2px solid #dee2e6;
    }

    .formulas-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
        line-height: 1.5;
        border-bottom: 1px solid #e9ecef;
    }

    .formulas-table caption {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    /* Scroll hint para tablas con desplazamiento horizontal */
    .table-responsive:after {
        content: "← Desliza →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: #6c757d;
        padding: 5px 0;
        font-style: italic;
        animation: fadeInOut 2s ease-in-out infinite;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 1; }
    }

    /* Mejoras para la sección de productos */
    .products-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-item {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        background-color: #f9f9f9;
        text-align: center;
    }

    .product-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .product-item p {
        font-size: 0.85rem;
        margin: 0;
        color: #666;
    }

    .note {
        text-align: center;
        font-size: 0.85rem;
        margin-top: 15px;
        color: #666;
    }

    /* Mejoras para CTA box */
    .cta-box {
        border-radius: 12px;
        padding: 25px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        background-color: #f8f9fa;
        margin-top: 40px;
    }

    .cta-box h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 15px;
        text-align: center;
    }

    .cta-box p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .cta-box .btn {
        width: 100%;
        display: block;
        text-align: center;
        padding: 14px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1rem;
    }
}

/* Ajustes para pantallas aún más pequeñas */
@media (max-width: 480px) {
    /* Mejoras para el footer en móviles pequeños */
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column:first-child p {
        text-align: center;
    }

    .contact-list {
        align-items: center;
    }

    /* Ajustes para el hero */
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        font-size: 1.8rem;
    }

    /* En pantallas muy pequeñas, mostrar los hero-features en 2 columnas */
    .hero-simple .hero-content-simple.hero-content-full .hero-feature {
        width: calc(50% - 10px);
    }

    /* Ajustes para la lista de productos en pantallas muy pequeñas */
    .products-list {
        grid-template-columns: 1fr;
    }

    .product-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 12px 15px;
    }

    .product-item h3 {
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    /* Mejora para las tablas en pantallas muy pequeñas */
    .table-title {
        font-size: 1.4rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.4rem !important;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Mejora para la visualización de tablas en pantallas muy pequeñas */
    /* Hacemos que las tablas se comporten mejor en dispositivos realmente pequeños */
    .formulas-table {
        min-width: 450px;
    }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 360px) {
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        font-size: 1.6rem;
    }

    .hero-simple .hero-content-simple.hero-content-full .hero-description {
        font-size: 0.85rem;
    }

    .formulas-table th {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .formulas-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .table-title, .section-title {
        font-size: 1.3rem !important;
    }
    
    /* Botones apilados en hero para dispositivos muy pequeños */
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-cta .btn-primary, 
    .hero-cta .btn-outline {
        width: 100%;
        margin: 0;
    }
}

/* Mejoras adicionales para la navegación en tablas horizontales */
.formulas-table-container::-webkit-scrollbar {
    height: 8px;
}

.formulas-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.formulas-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.formulas-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Añadimos una barra de navegación fija en la parte inferior para facilitar la navegación en móviles */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px; /* Espacio para la barra de navegación fija */
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        height: 60px;
    }
    
    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #555;
        font-size: 0.7rem;
        padding: 8px 0;
    }
    
    .mobile-bottom-nav a i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .mobile-bottom-nav a.active {
        color: #0056b3;
    }
} 