/* Estilos Sección Nutricosmética */

/* Introducción general de la sección */
.section-intro {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 40px 20px; /* Padding */
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--accent-rgb), 0.03));
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Tag/Badge introductorio */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem; /* Ajustado */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.2);
}

.section-tag i {
    margin-right: 8px;
}

/* Título principal de la intro */
.section-intro .section-title { /* Hereda base, pero ajusta */
    font-size: 2.8rem; /* Tamaño específico */
    font-weight: 700;
    color: var(--primary-dark, #004a99); /* Color oscuro */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 0; /* Quitar padding inferior del título base */
}

.section-intro .section-title::after { /* Quitar línea base */
    display: none;
}

/* Resaltado dentro del título */
.section-intro .section-title .highlight {
    color: var(--accent-color);
    position: relative;
    background: none; /* Quitar fondo si hereda de .highlight */
    padding: 0;
    -webkit-text-fill-color: var(--accent-color); /* Asegurar color */
    text-fill-color: var(--accent-color);
}

.section-intro .section-title .highlight::after { /* Línea bajo el resaltado */
    content: '';
    position: absolute;
    bottom: -8px; /* Ajustar posición */
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

/* Divisor visual (líneas y puntos) */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0; /* Espacio ajustado */
}

.section-divider .divider-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 10px;
    opacity: 0.5;
}

.section-divider .divider-line {
    width: 80px; /* Ancho ajustado */
    height: 1px; /* Grosor */
    background: linear-gradient(to right, rgba(var(--primary-rgb),0.5), rgba(var(--accent-rgb),0.5));
    opacity: 0.7;
}

/* Texto introductorio principal */
.lead-text {
    font-size: 1.15rem; /* Tamaño ajustado */
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cajas de contenido dentro de la intro (si aplica) */
/* .content-box definido en fabrication.css, puede necesitar ajustes */
.section-intro .content-box {
    /* Estilos específicos para content-box dentro de section-intro si son diferentes */
    text-align: left; /* Alinear texto a la izquierda */
    margin-bottom: 30px;
}

/* Subtítulos dentro de cajas/secciones */
.subtitle {
    font-size: 1.6rem; /* Tamaño ajustado */
    margin-bottom: 1.5rem;
    color: var(--primary-color); /* Color primario */
    font-weight: 600;
}

.subtitle.with-icon {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre icono y texto */
}

.subtitle.with-icon i {
    /* color: var(--primary-color); */ /* Ya es color del subtítulo */
    font-size: 1.1em; /* Tamaño relativo al texto */
}

/* Lista de beneficios */
.benefits-list {
    display: grid; /* Usar grid para mejor alineación */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptable */
    gap: 20px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.benefit-icon {
    width: 45px; /* Tamaño ajustado */
    height: 45px;
    border-radius: 12px; /* Ligeramente cuadrado */
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.benefit-text {
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

/* Imagen con overlay y caption */
.image-with-overlay {
    position: relative;
    border-radius: 15px; /* Borde redondeado */
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.image-with-overlay img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-with-overlay:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 80%);
    color: white;
    padding: 30px 20px 20px; /* Padding ajustado */
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

/* Sección de Servicios (dentro de Nutricosmética) */
.service-section {
    margin-bottom: 3rem;
    padding: 0 10px; /* Añadir padding horizontal en todos los tamaños */
}

/* Grid de Servicios */
.service-grid {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto */
    gap: 20px;
}

/* Ajustar a 2 columnas en pantallas medianas y grandes */
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Ítem de Servicio */
.service-item {
    display: flex;
    flex-direction: column; /* Apilar en móvil por defecto */
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Cambiar a horizontal en tablets/desktop */
@media (min-width: 576px) {
    .service-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 25px;
    }
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Icono de Servicio */
.service-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #0056b3, #0075ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Centrar en móvil */
}

@media (min-width: 576px) {
    .service-icon {
        margin: 0; /* Quitar margen automático en pantallas más grandes */
    }
}

.service-icon i {
    font-size: 26px;
    color: white;
}

/* Título y texto de servicio */
.service-item h4 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: #0056b3;
    font-weight: 600;
    text-align: center; /* Centrar en móvil */
    word-break: break-word; /* Permitir la ruptura de palabras largas */
    overflow-wrap: break-word;
    hyphens: auto; /* Permitir guiones para dividir palabras largas */
}

.service-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    text-align: center; /* Centrar en móvil */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (min-width: 576px) {
    .service-item h4,
    .service-item p {
        text-align: left; /* Alinear a la izquierda en pantallas más grandes */
    }
}

/* Caja de Cita (Quote) */
.quote-box {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    padding: 2rem 2rem 2rem 3rem; /* Padding izquierdo mayor */
    position: relative;
    margin: 3rem 0; /* Espacio aumentado */
    border-radius: 0 10px 10px 0;
}

.quote-icon {
    position: absolute;
    top: 20px; /* Ajustar posición */
    left: -20px; /* Superponer al borde izquierdo */
    width: 45px; /* Tamaño ajustado */
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Ajustado */
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.quote-box blockquote {
    font-style: italic;
    font-size: 1.1rem; /* Ajustado */
    line-height: 1.7;
    margin: 0;
    color: var(--dark-color);
}

/* Sección de Productos (dentro de Nutricosmética) */
.products-section {
    margin-bottom: 3rem;
    padding-top: 2rem; /* Espacio si hay título */
}

/* Cabecera de la sección de productos */
.products-section .section-header {
    text-align: center; /* Centrar contenido */
    margin-bottom: 2rem;
}

.products-section .section-header .subtitle.with-icon {
    justify-content: center; /* Centrar el título con icono */
    margin-bottom: 1rem; /* Ajustar espacio bajo el título */
}

.products-section .section-header .section-description {
    max-width: 700px;
    margin-left: auto; /* Centrar descripción */
    margin-right: auto; /* Centrar descripción */
    font-size: 1rem;
    color: var(--grey-color);
    line-height: 1.6;
}

/* Estilos para la sección de pestañas de productos nutricosméticos */
.tabs-container {
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 2px;
}

.tab-btn {
    padding: 10px 25px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
    position: relative;
    outline: none;
}

.tab-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

.tab-btn.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0056b3;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para tarjetas de productos */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.product-card-fancy {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background-color: white;
    margin-bottom: 20px;
}

.product-card-fancy:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card-header {
    background-color: #0056b3;
    color: white;
    padding: 15px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    padding-right: 10px;
}

.product-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.25);
    margin-left: 10px;
}

.product-icon i {
    color: white;
    font-size: 1.1rem;
}

.product-card-body {
    padding: 20px;
}

.product-card-body p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #495057;
}

.product-card-body p:last-child {
    margin-bottom: 0;
}

.product-card-body p strong {
    color: #212529;
    font-weight: 600;
}

/* Estilos para sección de hongos */
.fungi-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.fungi-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.fungi-item:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
}

.fungi-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0056b3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.fungi-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.fungi-aka {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Estilos para la sección de CTA */
.cta-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #212529;
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 80%;
    color: #495057;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30%;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    opacity: 0.15;
    background-color: #0056b3;
    border-radius: 50%;
}

.cta-decoration .shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 20%;
    animation: float 8s ease-in-out infinite;
}

.cta-decoration .shape-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Estilos responsivos para las pestañas */
@media (max-width: 768px) {
    .tabs-navigation {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        white-space: nowrap;
        margin-bottom: 20px;
        gap: 2px;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .product-cards {
        grid-template-columns: 1fr;
    }
    
    .cta-content p {
        max-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-section {
        padding: 30px 20px;
    }

    /* Ajustes adicionales para la sección de servicios en móvil */
    .service-section {
        padding: 0 15px;
    }

    .service-section .subtitle.with-icon {
        justify-content: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .service-grid {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .product-card-fancy .product-card-header {
        flex-direction: row;
        align-items: center;
    }
    
    .product-card-fancy .product-card-header h3 {
        font-size: 1rem;
    }
    
    .product-card-body {
        padding: 15px;
    }
    
    .product-card-body p {
        font-size: 0.9rem;
    }
    
    .fungi-products {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    /* Ajustes adicionales para pantallas muy pequeñas */
    .service-item {
        padding: 15px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .service-icon i {
        font-size: 22px;
    }

    .service-item h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .service-item p {
        font-size: 0.9rem;
    }
}

/* Estilos específicos para títulos en la página de nutricosmética */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.section-title strong {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title .highlight {
    color: var(--accent-color, #f90);
    font-weight: 700;
}

/* Arreglo para la palabra Nutricosméticos */
.section-title[id="productos-title"] {
    max-width: 100%;
}

/* Ajuste para el título de la página */
.hero-title span.accent-text {
    display: inline;
}

/* Resto de los estilos para la página de nutricosmética */

/* Mejoras específicas para la sección de "Nuestros Servicios de Fabricación" */
.service-section .subtitle.with-icon {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Permitir que se ajuste en pantallas pequeñas */
    gap: 8px;
    margin-bottom: 25px;
    hyphens: auto; /* Permitir guiones para dividir palabras largas */
    word-break: break-word; /* Permitir que palabras largas se rompan */
    overflow-wrap: break-word; /* Asegurar que el texto se rompa y no desborde */
}

.service-section .subtitle {
    line-height: 1.3; /* Mejorar interlineado para títulos largos */
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%; /* Asegurar que no exceda el ancho del contenedor */
}

@media (max-width: 480px) {
    .service-section .subtitle {
        font-size: 1.4rem; /* Reducir tamaño de fuente en móviles pequeños */
    }
    
    .service-section .subtitle.with-icon i {
        font-size: 20px; /* Icono más pequeño en móviles */
    }
}

/* Mejoras para la visualización del texto en los elementos de servicio */
.service-item h4 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: #0056b3;
    font-weight: 600;
    text-align: center; /* Centrar en móvil */
    word-break: break-word; /* Permitir la ruptura de palabras largas */
    overflow-wrap: break-word;
    hyphens: auto; /* Permitir guiones para dividir palabras largas */
}

.service-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    text-align: center; /* Centrar en móvil */
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Media query específico para dispositivos extra pequeños */
@media (max-width: 360px) {
    .service-section .subtitle {
        font-size: 1.3rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .service-icon i {
        font-size: 18px;
    }
    
    .service-item h4 {
        font-size: 1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    .service-item {
        padding: 12px;
    }
}

