/* 
 * Responsive CSS optimizado para Fabricantes de Complementos
 * Este archivo combina todos los estilos responsivos en uno solo
 * Optimizado para mejorar rendimiento y eliminar duplicados
 */

/* Estilos Responsivos Optimizados */

/* 3 columnas en desktops */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Solución para pantallas táctiles */
@media (hover: none) {
    .dropdown > a,
    .dropdown-sub > a {
        -webkit-tap-highlight-color: transparent; /* Eliminar resaltado al tocar */
    }
    
    /* Submenús animados en dispositivos táctiles */
    .submenu, .submenu-sub {
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    }
}

/* Pantallas Grandes (Tablets y Desktops Pequeños) - 1200px */
@media (max-width: 1200px) {
    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas Medianas (Tablets) - 992px */
@media (max-width: 992px) {
    /* Header y Navegación */
    .menu-toggle {
        display: block; /* Mostrar botón hamburguesa */
    }
    
    .main-nav .nav-menu { /* El ul principal */
        position: absolute;
        top: 100%; /* Debajo del header */
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        max-height: calc(100vh - 80px); /* Altura máxima con scroll */
        overflow-y: auto;
    }
    
    .main-nav .nav-menu.active { /* Menú desplegado */
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%; /* Ocupar todo el ancho */
    }

    .nav-menu li a {
        padding: 12px 15px; /* Ajustar padding */
        justify-content: space-between; /* Alinear icono dropdown a la derecha */
    }

    /* Estilos para Contacto y Selector de Idioma en móvil */
    .contact-menu-item,
    .language-selector {
        margin-left: 0; /* Resetear margen */
        margin-top: 10px; /* Espacio superior */
        width: 100%;
    }

    .contact-menu-item a {
        display: block; /* Ocupar ancho */
        text-content: center;
    }

    .language-selector > a {
        justify-content: center; /* Centrar icono y texto */
    }
    
    /* Submenús en móvil */
    .submenu, .submenu-sub {
        position: static; /* Quitar posicionamiento absoluto */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0; /* Colapsado por defecto */
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        min-width: auto; /* Ancho automático */
        border-radius: 0;
        background-color: rgba(var(--primary-rgb), 0.03); /* Fondo ligero */
        padding: 0 15px; /* Padding horizontal */
        margin-top: 5px;
        margin-bottom: 5px;
        border-left: 3px solid var(--primary-color);
    }
    
    /* Mostrar submenú al hacer clic/tocar (requiere JS para añadir clase .active) */
    .dropdown.active > .submenu,
    .dropdown-sub.active > .submenu-sub {
        max-height: 500px; /* Altura suficiente */
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .submenu li a, .submenu-sub li a {
        padding: 8px 15px; /* Menos padding */
        border: none; /* Quitar bordes */
    }

    /* Header para móvil */
    .header-container {
        position: relative; /* Para posicionar elementos correctamente */
        z-index: 1001; /* Asegurar que está por encima del overlay */
    }
    
    .nav-menu {
        will-change: transform; /* Mejora rendimiento de animaciones */
    }
    
    /* Animación para el botón de cierre */
    .menu-toggle.active {
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }

    /* Blog */
    .blog-standard-grid {
        grid-template-columns: 1fr; /* Una columna */
    }
    
    .blog-columns {
        grid-template-columns: 1fr; /* Una columna */
    }
    
    .blog-column-two { /* Columna derecha pasa a grid de 2 */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero */
    .hero-content-full .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-features {
        flex-wrap: wrap; /* Permitir wrap */
    }
    
    .hero-feature {
        min-width: 200px;
    }

    /* Hero Simple */
    .hero-content-simple {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        order: 1 !important; /* Forzar imagen debajo del texto - IMPORTANTE */
        max-width: 70%;
        margin: 0 auto;
        margin-top: 40px; /* Espacio entre texto e imagen */
    }
    .hero-text {
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }

    /* Footer para tablets */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        gap: 30px 20px; /* Gap vertical y horizontal */
    }
    
    .footer-column:first-child {
        grid-column: span 2; /* El primer elemento ocupa ambas columnas */
        text-align: center;
    }
    
    .footer-column h3 {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .footer-column:first-child p {
        max-width: 80%;
        margin: 0 auto 20px;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .contact-list {
        margin: 0 auto;
    }

    /* Contacto */
    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Marketing */
    .service-showcase,
    .design-services,
    .feature-list {
        grid-template-columns: 1fr 1fr; /* 2 columnas */
    }

    /* Nutricosmetics */
    .nutricosmetics-service-grid,
    .benefits-list,
    .product-cards {
        grid-template-columns: 1fr 1fr;
    }
    .fungi-products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* Turnkey */
    .turnkey .service-showcase {
        grid-template-columns: 1fr;
    }

    /* General Variants */
    .benefits-list.style16,
    .service-grid.style16,
    .products-table {
        grid-template-columns: 1fr 1fr;
    }
    .two-columns {
        grid-template-columns: 1fr;
    }
    .two-columns.reverse > div:first-child,
    .two-columns.reverse > div:last-child {
        order: initial; /* Resetear orden */
    }
    .two-columns .column-image {
        order: -1; /* Imagen arriba por defecto en móvil */
        margin-bottom: 30px;
    }
}

/* Pantallas Pequeñas (Móviles) - 768px */
@media (max-width: 768px) {
    /* Base y Layout */
    .container {
        padding: 0 15px; /* Menos padding lateral */
    }

    section {
        padding: 60px 0; /* Menos padding vertical */
    }

    .section-title {
        font-size: 1.8rem; /* Tamaño ajustado */
        margin-bottom: 30px;
    }

    .fancy-title {
        font-size: 2.2rem;
    }
    .gradient-title {
        font-size: 2.5rem;
        line-height: 1.3;
        word-break: break-word; /* Permite romper palabras largas */
        hyphens: auto; /* Habilita guiones para dividir palabras */
    }
    
    /* Ajustes específicos para la sección fabrication showcase */
    .fabrication-showcase {
        flex-direction: column; /* Apilar elementos en móvil */
    }
    
    .fabrication-content {
        order: 1; /* Poner contenido primero */
        width: 100%;
    }
    
    .fabrication-image-container {
        order: 2; /* Poner imagen después */
        width: 100%;
        margin-top: 30px;
    }
    
    /* Ajustar títulos de la sección de fabricación */
    .fabrication-content .gradient-title {
        font-size: 2rem;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto; 
        text-align: center;
    }
    
    .fabrication-content .gradient-title br {
        display: none; /* Eliminar salto de línea en móvil */
    }
    
    .fabrication-content .gradient-title .highlight {
        display: inline-block; /* Asegurar que ocupa su propio espacio */
    }
    
    /* Cajas de contenido en la sección fabricación */
    .content-boxes {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    
    /* Mejorar legibilidad de textos en fabricación */
    .fabrication-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .headline-text {
        font-size: 1.1rem;
        line-height: 1.5;
        text-align: center;
    }

    /* Header */
    .header-container {
        padding: 10px 15px; /* Menos padding */
    }

    .logo img {
        max-height: 40px; /* Logo más pequeño */
    }
    .logo h1 {
        font-size: 1.5rem;
    }

    /* Hero General */
    .hero {
        padding: 60px 0;
    }

    .hero-content {
        padding: 0;
    }
    .hero-title {
        font-size: 2.5rem; /* Reducir para móviles */
        line-height: 1.2;
    }
    .hero-description {
        font-size: 1rem; /* Reducir descripción */
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%; /* Hacer que los botones ocupen todo el ancho disponible */
        max-width: 300px; /* Limitar el ancho máximo */
        margin-bottom: 10px;
        text-align: center;
        justify-content: center;
    }
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    .hero-controls {
        bottom: 15px;
    }

    /* Hero Nutricosmética */
    .hero-simple .container {
        padding: 0 15px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full {
        text-align: center;
        max-width: 100%;
        padding: 40px 0;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-text {
        width: 100%;
        max-width: 540px;
        margin: 0 auto;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-label i {
        margin-right: 8px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-description {
        margin-bottom: 25px;
        line-height: 1.6;
        max-width: 100%;
    }
    
    /* Elementos decorativos y estructura visual */
    .hero-simple .hero-content-simple.hero-content-full .hero-decoration {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        z-index: 0;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-text {
        position: relative;
        z-index: 2;
    }
    
    .floating-shape {
        position: absolute;
        border-radius: 50%;
        opacity: 0.05;
    }
    
    .shape-1 {
        width: 80px;
        height: 80px;
        top: 15%;
        right: 10%;
    }
    
    .shape-2 {
        width: 50px;
        height: 50px;
        bottom: 25%;
        right: 8%;
    }
    
    .shape-3 {
        width: 40px;
        height: 40px;
        top: 30%;
        left: 10%;
    }
    
    .shape-4, .shape-5 {
        display: none; /* Ocultar formas adicionales en móvil */
    }
    
    /* Hero Features - Mejoras de alineación horizontal */
    .hero-simple .hero-content-simple.hero-content-full .hero-features {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 25px;
        width: 100%;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-feature {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 15px;
        border-radius: 8px;
        text-align: left;
        min-height: 60px;
        background-color: rgba(var(--primary-rgb), 0.05);
        border: 1px solid rgba(var(--primary-rgb), 0.08);
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-feature i {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        margin-bottom: 0;
        border-radius: 50%;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-feature span {
        text-align: left;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    /* Hero CTA - Mejoras estructurales */
    .hero-simple .hero-content-simple.hero-content-full .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-top: 5px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-cta .btn-primary,
    .hero-simple .hero-content-simple.hero-content-full .hero-cta .btn-outline {
        width: 100%;
        max-width: 280px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        border-radius: 6px;
    }

    /* Blog */
    .blog-grid,
    .blog-column-two,
    .blog-standard-grid { /* Todos a una columna */
        grid-template-columns: 1fr;
    }
    
    .blog-featured-image {
        height: 250px; /* Imagen destacada más pequeña */
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: stretch; /* Estirar elementos */
    }
    
    .filter-label {
        margin-bottom: 10px;
        text-align: center;
    }

    .filter-options {
        justify-content: center; /* Centrar botones de filtro */
    }
    
    .filter-search {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .filter-search input {
        width: 100%;
    }

    /* Página Error 404 */
    .error-code {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .suggestion-item {
        max-width: 100%;
    }

    /* Tarjetas de Productos */
    .product-card-fancy .product-card-header {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 12px 15px !important;
    }
    
    .product-card-fancy .product-card-header h3 {
        margin: 0 !important;
        padding-right: 0 !important;
        padding-left: 15px !important;
        font-size: 1.1rem !important;
    }
    
    .product-card-fancy .product-icon {
        order: -1 !important;
        margin-left: 0 !important;
        margin-right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        background-color: rgba(255,255,255,0.25) !important;
    }
    
    .product-card-fancy .product-icon i {
        font-size: 1rem !important;
        color: white !important;
    }
    
    .tab-content:not(.active) {
        display: none !important;
    }
    
    .product-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card-fancy {
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    
    .product-card-body {
        padding: 12px 15px;
    }
    
    .product-card-body p {
        margin: 8px 0;
        font-size: 0.9rem;
    }
    
    .tabs-navigation {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Features */
    .feature-cards {
        grid-template-columns: 1fr; /* Una columna */
    }

    /* Products */
    .products .section-title {
        font-size: 2.2rem;
    }
    .products .section-title::before {
        font-size: 3.5rem;
    }
    .product-types {
        grid-template-columns: 1fr; /* Una columna */
        gap: 30px;
    }

    /* Philosophy */
    .philosophy-grid {
        grid-template-columns: 1fr; /* Una columna */
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr; /* Una columna */
        gap: 40px;
    }
    .about .section-title {
        text-align: center;
    }
    .about .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-image {
        order: -1; /* Imagen arriba */
    }
    
    /* Ajustar imagen de fabricación en móvil */
    .image-hexagon {
        height: 300px; /* Altura más pequeña en móvil */
    }

    /* Services */
    .service-cards {
        grid-template-columns: 1fr; /* Una columna */
    }

    /* FAQ */
    .faq-intro {
        font-size: 1rem;
    }
    .accordion-title h3 {
        font-size: 1rem;
    }

    /* Footer - solución vertical simplificada para móviles */
    .site-footer {
        padding: 40px 0 20px;
        text-align: center;
        background-color: #08192b;
    }
    
    .footer-columns {
        display: block !important; /* Anular grid */
        width: 100%;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 30px !important;
        padding: 0 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        overflow: visible;
        float: none;
        clear: both;
    }
    
    .footer-column:last-child {
        border-bottom: none;
        margin-bottom: 10px !important;
        padding-bottom: 0;
    }
    
    .footer-column h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.2rem;
        color: white;
    }
    
    .footer-column h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 60px;
        height: 2px;
    }
    
    .footer-links {
        margin: 0 auto;
        padding: 0;
        width: 100%;
        max-width: none;
        display: block;
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 15px;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .footer-links a {
        display: block;
        padding: 10px 5px;
        font-size: 1rem;
        background-color: rgba(255,255,255,0.05);
        border-radius: 5px;
        width: 100%;
        min-width: unset;
        text-align: center;
    }
    
    .footer-links a:hover, 
    .footer-links a:active,
    .footer-links a:focus {
        background-color: rgba(255,255,255,0.1);
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .contact-list {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        display: block;
    }
    
    .contact-list li {
        margin-bottom: 15px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        background-color: rgba(255,255,255,0.05);
        border-radius: 5px;
        padding: 12px;
    }
    
    .contact-list i {
        margin-top: 3px;
        margin-right: 12px;
        width: 20px;
        flex-shrink: 0;
        font-size: 1.2rem;
        color: var(--secondary-color);
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .footer-logo img {
        max-width: 180px;
        height: auto;
    }
    
    .footer-column p {
        max-width: 100%;
        margin: 0 auto 20px;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #e0e0e0;
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
    
    .footer-legal {
        display: block;
        margin: 15px auto;
        text-align: center;
    }
    
    .footer-legal a {
        display: inline-block;
        padding: 8px 15px;
        margin: 5px;
        font-size: 0.9rem;
        background-color: rgba(255,255,255,0.05);
        border-radius: 5px;
    }
    
    .footer-legal a:hover {
        background-color: rgba(255,255,255,0.1);
        text-decoration: none;
    }
    
    .footer-legal .separator {
        display: none;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        padding: 10px 0;
        color: #aaa;
    }

    /* Footer móvil con enlaces rápidos */
    .mobile-footer {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #08192b;
        z-index: 990;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        padding: 10px 0;
    }

    .mobile-footer-links {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-footer-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #f0f0f0;
        padding: 5px;
        font-size: 0.75rem;
    }

    .mobile-footer-link i {
        font-size: 1.3rem;
        margin-bottom: 5px;
        color: var(--secondary-color);
    }

    .mobile-footer-link:hover,
    .mobile-footer-link:active {
        color: #fff;
    }

    @media (max-width: 768px) {
        .mobile-footer {
            display: block;
        }
        
        body {
            padding-bottom: 60px; /* Añadir espacio para el menú móvil fijo */
        }
    }

    /* Fabrication */
    .content-boxes {
        grid-template-columns: 1fr;
    }
    .service-steps {
        padding-left: 20px;
    }
    .step {
        flex-direction: column;
        gap: 15px;
    }
    .step-number {
        position: relative;
        left: 0;
        margin: 0 auto 15px;
    }
    .step-content {
        margin-left: 0;
        text-align: center;
    }
    .service-steps::before {
        display: none;
    }

    /* Nutricosmetics */
    .section-intro .section-title {
        font-size: 2.2rem;
    }
    .benefits-list,
    .nutricosmetics-service-grid,
    .product-cards {
        grid-template-columns: 1fr;
    }
    .fungi-products {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .cta-section {
        padding: 2.5rem 1.5rem;
    }
    .cta-decoration {
        display: none;
    }

    /* Contacto */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0; /* El form-group ya tiene margen */
    }
    .form-row .form-group {
        margin-bottom: 20px;
    }
    .contact-container {
        gap: 30px;
    }

    /* Marketing */
    .service-showcase,
    .design-services,
    .feature-list {
        grid-template-columns: 1fr;
    }
    .marketing-section .section-header {
        flex-direction: column;
        text-align: center;
    }
    .marketing-section .section-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .advertising-service {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .advertising-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* Influencers */
    .influencer-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .influencer-image {
        height: 300px;
    }
    .influencer-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .benefits-section {
        padding: 30px 20px;
    }
    .benefits-title {
        font-size: 1.6rem;
    }
    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .influencer-cta {
        padding: 40px 20px;
    }
    .influencer-cta .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .influencer-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    /* BodyNatur */
    .bodynatur-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .bodynatur-image {
        order: -1; /* Imagen arriba */
    }
    .products-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas */
    }

    /* CTA BodyNatur */
    .cta-section.bodynatur-cta {
        margin: 40px 0;
        padding: 40px 20px;
        border-radius: 15px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Gummies */
    .products-list {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 30px 20px;
    }
    .cta-box h3 {
        font-size: 1.7rem;
    }
    .cta-box p {
        font-size: 1rem;
    }

    /* Turnkey */
    .process-steps::before {
        left: 25px;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        left: -20px; /* Ajustar */
    }
    .process-step {
        padding: 25px 20px 25px 30px; /* Ajustar padding */
    }

    /* General Variants */
    .benefits-list.style16,
    .service-grid.style16,
    .products-table {
        grid-template-columns: 1fr;
    }
    .cta-banner-alt1 {
        padding: 40px 25px;
    }
    .cta-banner-content h3 {
        font-size: 1.8rem;
    }
    .cta-banner-content p {
        font-size: 1rem;
    }

    /* Tablas responsivas */
    .formulas-table-container {
        overflow-x: auto; /* Asegurar scroll horizontal */
        -webkit-overflow-scrolling: touch; /* Para un scroll suave en iOS */
    }

    .formulas-table {
        min-width: 600px; /* Un ancho mínimo para forzar el scroll */
    }

    /* Mejoras para tabla de productos formato tarjeta */
    .products-table-section {
        padding: 30px 15px;
        margin: 40px 0;
        border-radius: 15px;
    }
    
    .products-table-section .section-subtitle {
        font-size: 1.7rem;
        margin-bottom: 35px;
        line-height: 1.3;
    }
    
    .products-table {
        gap: 25px;
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .product-table-item {
        min-height: 380px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.06);
        margin: 0 auto;
        width: 100%;
        max-width: 480px;
        border-radius: 14px;
    }
    
    .product-table-header {
        padding: 22px 20px;
        min-height: 110px;
    }
    
    .product-table-header h4 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        line-height: 1.3;
        letter-spacing: -0.2px;
    }
    
    .product-tag {
        font-size: 0.8rem;
        padding: 7px 14px;
        border-radius: 20px;
    }
    
    .product-table-content {
        padding: 24px 20px;
    }
    
    .product-table-content p {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 22px;
        text-align: left;
    }
    
    .product-meta {
        padding: 18px;
        margin-top: auto;
        border-radius: 10px;
    }
    
    .meta-item {
        font-size: 0.87rem;
        margin-bottom: 11px;
        line-height: 1.5;
        padding-left: 20px;
    }
    
    .meta-item::before {
        top: 7px;
        width: 5px;
        height: 5px;
        left: 0;
    }
    
    .meta-item:last-child {
        margin-bottom: 0;
    }
    
    .meta-item strong {
        font-size: 0.87rem;
        margin-right: 8px;
        font-weight: 700;
    }
}

/* Pantallas Muy Pequeñas - 480px */
@media (max-width: 480px) {
    /* Base */
    .container {
        padding: 0 10px; /* Aún menos padding */
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-title { /* General hero title */
        font-size: 2rem; 
    }
    
    /* BodyNatur - Pantallas muy pequeñas */
    .products-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 20px;
    }
    
    .product-image {
        height: 280px; /* Altura reducida */
        padding: 10px;
    }
    
    .product-name h4 {
        font-size: 1.1rem;
    }
    
    .cta-section.bodynatur-cta {
        padding: 30px 15px;
        margin: 30px 0;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-outline {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Ajustes específicos para la sección fabrication en móviles pequeños */
    .fabrication-content .gradient-title {
        font-size: 1.7rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .fabrication-content .gradient-title .highlight {
        font-size: 1.6rem;
        display: block; /* Forzar que ocupe toda la línea en pantallas muy pequeñas */
        margin: 5px 0;
    }
    
    .fabrication-content p {
        font-size: 0.9rem;
    }
    
    .headline-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .content-box {
        padding: 20px 15px;
    }
    
    .box-content h4 {
        font-size: 1.1rem;
    }
    
    .box-content p {
        font-size: 0.9rem;
    }
    
    /* Hero Nutricosmética */
    .hero-simple .hero-content-simple.hero-content-full {
        padding: 30px 0;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-label {
        padding: 6px 15px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        margin-bottom: 12px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-description {
        margin-bottom: 20px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-features {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-feature {
        padding: 10px 12px;
        min-height: 50px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-feature i {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-cta {
        gap: 12px;
    }
    
    .hero-simple .hero-content-simple.hero-content-full .hero-cta .btn-primary,
    .hero-simple .hero-content-simple.hero-content-full .hero-cta .btn-outline {
        padding: 10px 16px;
        max-width: 250px;
    }

    /* Botones */
    .btn {
        padding: 10px 20px; /* Ajuste general de botones */
        font-size: 0.9rem;
    }
    
    /* Tablas responsivas */
    .formulas-table {
        min-width: 500px; /* Reducir min-width para pantallas más pequeñas */
    }

    /* Ajustes adicionales para productos en pantallas muy pequeñas */
    .products-table-section {
        padding: 25px 12px;
        margin: 30px 0;
    }
    
    .products-table-section .section-subtitle {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .products-table {
        gap: 20px;
    }
    
    .product-table-item {
        min-height: 250px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.05);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 420px;
    }
    
    .product-table-header {
        padding: 14px 16px;
    }
    
    .product-table-header h4 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .product-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .product-table-content {
        padding: 15px 16px;
    }
    
    .product-table-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    
    .product-meta {
        padding: 14px;
        margin-top: auto;
    }
    
    .meta-item {
        font-size: 0.8rem;
        margin-bottom: 9px;
        line-height: 1.4;
    }
    
    .meta-item:last-child {
        margin-bottom: 0;
    }
}

/* Dispositivos extra pequeños - 360px */
@media (max-width: 360px) {
    .product-table-item {
        min-height: 240px;
        max-width: 100%;
    }
    
    .product-table-header {
        padding: 12px 14px;
    }
    
    .product-table-header h4 {
        font-size: 1.1rem;
    }
    
    .product-table-content {
        padding: 14px;
    }
    
    .product-table-content p {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .product-meta {
        padding: 10px;
    }
    
    .meta-item {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .meta-item:last-child {
        margin-bottom: 0;
    }
}

/* Custom Responsive Styles for Nutricosmetics Page */

/* Pantallas Medianas y Pequeñas (Tablets y Móviles) - approx 768px e inferiores */
@media (max-width: 768px) {
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        font-size: 2rem; 
        margin-bottom: 10px;
        line-height: 1.2;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-description {
        font-size: 0.9rem; 
        margin-bottom: 15px;
        line-height: 1.5;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-label {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 8px;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-feature {
        min-width: auto;
        margin-bottom: 8px;
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-feature i {
        font-size: 1rem;
        margin-right: 5px;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-cta {
        flex-direction: column; 
        align-items: center; 
        gap: 10px;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-cta .btn {
        width: 100%; 
        max-width: 280px; 
        margin: 0; 
        font-size: 0.9rem;
        padding: 12px 20px; /* Asegurar un buen tamaño de botón */
    }
}

/* Pantallas Muy Pequeñas - approx 480px e inferiores */
@media (max-width: 480px) {
    .hero-simple .hero-content-simple.hero-content-full .hero-title {
        font-size: 1.7rem; /* Ligeramente más pequeño */
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-description {
        font-size: 0.85rem;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-label {
        font-size: 0.75rem;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-feature {
        font-size: 0.8rem;
    }
    .hero-simple .hero-content-simple.hero-content-full .hero-cta .btn {
        font-size: 0.85rem;
        padding: 10px 15px;
        max-width: 250px;
    }
} 
/* Custom Responsive Styles for Gummies Page Tables */

/* Pantallas Medianas y Pequeñas (Tablets y Móviles) - approx 768px e inferiores */
@media (max-width: 768px) {
    .formulas-table-container {
        overflow-x: auto; /* Habilitar scroll horizontal */
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        /* border: 1px solid #eee; */ /* Borde para depuración si es necesario */
    }

    .formulas-table {
        min-width: 600px; /* Ancho mínimo para forzar el scroll. Ajustar según el contenido. */
        /* Asegúrate de que la tabla no tenga un width: 100% que impida el min-width actuar sobre el overflow */
    }
}

/* Pantallas Muy Pequeñas - approx 480px e inferiores */
@media (max-width: 480px) {
    .formulas-table {
        min-width: 500px; /* Reducir min-width si es necesario para pantallas aún más pequeñas */
    }
} 

/* Mejoras específicas para productos en pantallas muy pequeñas */
.products-table-section {
    padding: 30px 15px;
    margin: 40px 0;
    border-radius: 15px;
}

.products-table-section .section-subtitle {
    font-size: 1.7rem;
    margin-bottom: 35px;
    line-height: 1.3;
}

/* Dispositivos extra pequeños - 360px */
@media (max-width: 360px) {
    /* Productos deportivos - Pantallas muy pequeñas */
    .products-table-section {
        padding: 20px 10px;
        margin: 25px 0;
    }
    
    .products-table-section .section-subtitle {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }
    
    .products-table {
        gap: 20px;
    }
    
    .product-table-item {
        min-height: 350px;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .product-table-header {
        padding: 18px 16px;
        min-height: 95px;
    }
    
    .product-table-header h4 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .product-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .product-table-content {
        padding: 20px 16px;
    }
    
    .product-table-content p {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }
    
    .product-meta {
        padding: 14px;
    }
    
    .meta-item {
        font-size: 0.82rem;
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .meta-item::before {
        width: 4px;
        height: 4px;
        top: 6px;
    }
    
    .meta-item strong {
        font-size: 0.82rem;
        margin-right: 6px;
    }
    
    .meta-item:last-child {
        margin-bottom: 0;
    }
} 
