:root {
    --primary: #4CAF50;
    --dark: #1e3a2f;
    --light: #f4f9f4;
    --grey: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}
/* ==================== HEADER PROFESIONAL ==================== */
header.main-header {
    background: rgba(30, 58, 47, 0.95); /* Color --dark con ligera transparencia */
    backdrop-filter: blur(10px);        /* Efecto de desenfoque moderno */
    -webkit-backdrop-filter: blur(10px);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribuye logos a los extremos y título al centro */
    gap: 15px;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-container.text-right {
    justify-content: flex-end;
}

.logo {
    height: 55px; /* Tamaño más estilizado y menos invasivo */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); /* Sombra suave al logo */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Pequeña animación interactiva al pasar el mouse */
}

.title-container {
    text-align: center;
    flex: 3;
}

.header-nav h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.subtitle {
    display: block;
    font-size: 0.85rem;
    color: #a7f3d0; /* Un tono verde menta suave muy institucional */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
    font-weight: 500;
}

/* Línea decorativa ambiental inferior */
.header-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    width: 100%;
}

/* Responsivo para Celulares */
@media (max-width: 768px) {
    .header-nav {
        padding: 10px 15px;
    }
    
    .hide-mobile {
        display: none; /* Oculta el segundo logo para ganar espacio */
    }
    
    .logo-container.text-right {
        display: none;
    }
    
    .logo {
        height: 45px;
    }
    
    .header-nav h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}
/* ==================== BUSCADOR ==================== */
.buscador {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.buscador input {
    width: 420px;
    max-width: 90%;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.buscador input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

/* ==================== TABS (MENÚ) ==================== */
.tabs {
    display: flex;
    justify-content: center;
    background: white;
    border-bottom: 3px solid #e0e0e0;
    padding: 8px 0;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-button {
    background: none;
    border: none;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    white-space: nowrap;
    margin: 4px;
}

.tab-button:hover {
    color: #4CAF50;
    background-color: #f0f8f0;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .header-nav h1 {
        font-size: 1.6rem;
    }
    
    .tabs {
        padding: 10px 0;
    }
    
    .tab-button {
        padding: 12px 18px;
        font-size: 0.95rem;
    }
}



.proyecto-seccion {
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

.proyecto-seccion h1, .proyecto-seccion h2 {
    color: var(--dark);
    margin-bottom: 20px;
}

.justificado {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* Componentes Especiales de Inicio */
.Imagencita {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.recuadro {
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.one {
    width: 80px;
    height: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.buscador{
    display:flex;
    justify-content:center;
    padding:20px;
    background:white;
}

.buscador input{
    width:400px;
    max-width:90%;
    padding:12px 20px;
    border:2px solid var(--grey);
    border-radius:30px;
    font-size:1rem;
    outline:none;
    transition:0.3s;
}

.buscador input:focus{
    border-color:var(--primary);
    box-shadow:0 0 10px rgba(76,175,80,0.3);
}
/* ==================== FOOTER ==================== */
footer {
    background-color: var(--dark);
    color: #ffffff;
    padding: 30px 20px;
    margin-top: 50px; /* Separa el pie de página del contenido de los proyectos */
    border-top: 4px solid var(--primary);
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: table; /* Reemplazo seguro para asegurar alineación compatible */
    width: 100%;
}

.footer-info, .footer-date {
    display: table-cell;
    vertical-align: middle;
    width: 50%;
}

.footer-info h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-info p, .footer-date p {
    margin: 4px 0;
    color: #cbd5e1; /* Gris claro muy elegante para texto secundario */
}

.footer-date {
    text-align: right;
}

/* Ajuste para pantallas móviles */
@media (max-width: 768px) {
    .footer-info, .footer-date {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .footer-date {
        margin-bottom: 0;
    }
}
/* ==================== ESTILOS SECCIÓN INICIO ==================== */
.inicio-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.bienvenida-bloque h2, 
.seccion-info h2, 
.identidad-corporativa h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Línea decorativa debajo de los títulos */
.bienvenida-bloque h2::after, 
.seccion-info h2::after, 
.identidad-corporativa h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.bg-verde-suave {
    background-color: #f0f7f4;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid var(--primary);
}

/* Tarjetas de Misión y Visión */
.grid-mision-vision {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.tarjeta-identidad {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f0;
    flex: 1;
    transition: transform 0.3s ease;
}

.tarjeta-identidad:hover {
    transform: translateY(-5px);
}

.icono-tarjeta {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tarjeta-identidad h3 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

/* Manejo de Imágenes */
.imagen-destacada {
    margin: 30px 0;
    text-align: center;
}

.imagen-destacada img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 4px solid white;
    transition: 0.3s;
}

.pie-imagen {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.recuadro-texto {
    text-align: left;
    font-size: 0.95rem;
    color: #444;
}

/* Adaptación para pantallas de celulares */
@media (max-width: 768px) {
    .grid-mision-vision {
        flex-direction: column;
    }
    
    .bg-verde-suave {
        padding: 20px;
    }
}
/* ==================== ESTILOS SECCIÓN COLEGIO ==================== */
.seccion-colegio {
    margin: 40px 0;
    padding-top: 20px;
}

.seccion-colegio h2 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Línea decorativa para el título del colegio */
.seccion-colegio h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.contenido-colegio {
    margin-bottom: 25px;
}

.galeria-colegio {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.foto-marco {
    max-width: 550px;
    text-align: center;
}

.foto-marco img {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 4px solid white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.foto-marco img:hover {
    transform: scale(1.02);
}
/* ==================== ESTILOS SECCIÓN PINTURAS ÓRGANICAS ==================== */
.pintura-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.pintura-container h2, .pintura-container h3 {
    color: var(--dark);
    margin-bottom: 20px;
}

.seccion-multimedia {
    margin: 40px 0;
}

/* Reemplazo seguro y compatible para la cuadrícula multimedia */
.grid-multimedia {
    display: table;
    width: 100%;
    margin-top: 20px;
}

.item-multimedia {
    display: table-cell;
    width: 50%;
    padding: 10px;
    vertical-align: top;
    text-align: center;
}

.item-multimedia img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--grey);
}

/* Bloque promocional tipo banner */
.bloque-promocion {
    background: linear-gradient(135deg, #f4f9f4, #e8f5e9);
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.05);
}

.promocion-contenido h4 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.promocion-contenido p {
    color: #555;
    max-width: 650px;
    margin: 0 auto 20px auto;
    font-size: 1rem;
}

/* Botón interactivo de la minitienda */
.btn-tienda {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.btn-tienda:hover {
    background-color: #3d8b41;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* Ajustes para celulares */
@media (max-width: 768px) {
    .item-multimedia {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
}
/* ==================== SECCIÓN LOGO PROYECTO ==================== */
.seccion-logo-proyecto {
    margin: 40px 0;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--grey);
}

.logo-proyecto-flex {
    display: table;
    width: 100%;
}

.logo-proyecto-imagen, 
.logo-proyecto-texto {
    display: table-cell;
    vertical-align: middle;
}

.logo-proyecto-imagen {
    width: 35%;
    text-align: center;
    padding-right: 25px;
}

.logo-proyecto-texto {
    width: 65%;
}

.img-logo-p {
    width: 100%;            /* Hace que aproveche todo el espacio asignado */
    max-width: 260px;       /* ¡Agrandado! Antes estaba en 180px, ahora se verá mucho más imponente */
    height: auto;
    border-radius: 8px;     /* Eliminado el 50% circular. Ahora tiene un borde sutilmente suavizado para logos cuadrados */
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    background-color: var(--light);
    padding: 12px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.img-logo-p:hover {
    transform: scale(1.05); /* Mantiene un sutil efecto interactivo al pasar el mouse */
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
    .logo-proyecto-imagen, 
    .logo-proyecto-texto {
        display: block;
        width: 100%;
        text-align: center;
        padding-right: 0;
    }
    
    .logo-proyecto-imagen {
        margin-bottom: 20px;
    }
}
/* ==================== MINI TIENDA INTERACTIVA (PINTURAS) ==================== */

.sub-tienda {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-bottom: 25px !important;
}

/* Distribución de las tarjetas de productos */
.grid-productos-mini {
    display: table;
    width: 100%;
    margin-bottom: 25px;
}

.producto-tarjeta-mini {
    display: table-cell;
    width: 50%;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2ebd5;
    text-align: center;
    vertical-align: top;
    /* Simulamos una separación entre celdas */
    border-right: 10px solid transparent; 
    border-left: 10px solid transparent;
    background-clip: padding-box;
}

.prod-foto {
    background-color: #f4fcf4;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 2rem;
}

.producto-tarjeta-mini h5 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.prod-desc {
    font-size: 0.85rem !important;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px !important;
}

.prod-precio {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Botón para regresar */
.btn-volver-tienda {
    background: none;
    border: 1px solid #999;
    color: #555;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-volver-tienda:hover {
    background-color: #f0f0f0;
    color: #222;
}

/* Clase de animación clave para la transición */
.animacion-fade {
    animation: aparecerSuave 0.4s ease-out forwards;
}

@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Adaptación para celulares */
@media (max-width: 600px) {
    .grid-productos-mini {
        display: block;
    }
    .producto-tarjeta-mini {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        border-right: none;
        border-left: none;
    }
}
/* ==================== ESTILOS SECCIÓN HUERTA HIDROPÓNICA ==================== */
.hidro-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.seccion-publicidad {
    margin: 50px 0 30px 0;
}

/* Grilla compatible para las tarjetas publicitarias de los cultivos */
.grid-publicidad {
    display: table;
    width: 100%;
    margin-top: 25px;
}

.tarjeta-publicitaria {
    display: table-cell;
    width: 50%;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--grey);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    vertical-align: top;
    position: relative;
    /* Separador sutil */
    border-right: 12px solid transparent;
    border-left: 12px solid transparent;
    background-clip: padding-box;
}

.badge-organico {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.publi-img-placeholder {
    font-size: 3rem;
    margin: 15px 0;
    text-align: center;
}

.tarjeta-publicitaria h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
}

/* Ajustes responsivos para celulares en la sección de la huerta */
@media (max-width: 768px) {
    .grid-publicidad {
        display: block;
    }
    
    .tarjeta-publicitaria {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        border-right: none;
        border-left: none;
    }
}
/* ==================== ESTILOS ESPECÍFICOS ECOTIENDA ==================== */
.ecotienda-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Bloque dividido a la mitad (Texto y Foto) */
.bloque-dos-columnas {
    display: table;
    width: 100%;
    margin-bottom: 40px;
}

.columna-texto, .columna-imagen {
    display: table-cell;
    width: 50%;
    vertical-align: middle;
    padding: 10px;
}

.img-bloque-medio {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bg-verde-suave-ecotienda {
    background-color: #f7faf8;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid #2e5a4a;
}

/* Grilla de Útiles Escolares */
.seccion-utiles {
    margin: 40px 0;
}

.grid-utiles-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.util-item {
    background-color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid var(--grey);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* Galería de Progreso */
.seccion-progreso {
    margin: 50px 0;
}

.grid-progreso-fotos {
    display: table;
    width: 100%;
    margin-top: 20px;
}

.foto-progreso-item {
    display: table-cell;
    width: 50%;
    padding: 10px;
    text-align: center;
    vertical-align: top;
}

/* Sección Equipo e Integrantes */
.seccion-equipo {
    background-color: #ffffff;
    border: 1px solid var(--grey);
    border-radius: 12px;
    padding: 30px;
    margin: 50px 0 20px 0;
    text-align: center;
}

.docente-director {
    font-size: 1.1rem;
    color: var(--dark);
    margin-top: 5px;
    margin-bottom: 25px;
}

.lista-integrantes-cajas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.integrante-tag {
    background-color: var(--light);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid #e2ebd5;
}

.sub-integrantes {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Adaptación para Celulares */
@media (max-width: 768px) {
    .bloque-dos-columnas, .grid-progreso-fotos {
        display: block;
    }
    .columna-texto, .columna-imagen, .foto-progreso-item {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .columna-imagen {
        text-align: center;
        margin-top: 15px;
    }
}
/* ==================== VARIABLES Y ESTILOS BASE ==================== */
:root {
    /* Paleta de colores SENA - Más rica y profesional */
    --sena-orange: #FF6B0B;
    --sena-green-dark: #1E3A2F; /* Tu --dark actual, excelente */
    --sena-green-primary: #3D8B41; /* Un verde más profundo y serio */
    --sena-green-light: #F0F7F4; /* Tu --light actual */
    --text-main: #333333;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Tipografía moderna - Requiere añadir la fuente en el HTML <head> */
    --font-main: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-main);
    background-color: #F8FAFC; /* Un fondo gris muy sutil para resaltar el contenido */
}
/* ==================== ESTILOS ARTES RECICLABLES ==================== */
.artes-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Galería de productos */
.seccion-galeria-artes {
    margin: 50px 0;
}

.sub-galeria {
    color: #666;
    margin-bottom: 25px;
}

.grid-galeria-artes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tarjeta-galeria {
    flex: 1 1 calc(50% - 20px); /* 2 columnas responsivas */
    background: #ffffff;
    border: 1px solid var(--grey);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.foto-galeria-wrapper {
    width: 100%;
    height: 180px;
    background-color: #f7faf8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.img-galeria-item {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que todas las fotos queden simétricas sin deformarse */
    transition: transform 0.3s ease;
}

.tarjeta-galeria:hover .img-galeria-item {
    transform: scale(1.05);
}

.tarjeta-galeria h4 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.tarjeta-galeria p {
    font-size: 0.9rem !important;
    color: #555;
    line-height: 1.4;
    margin: 0 !important;
}

/* Misión y Visión Lado a Lado */
.seccion-mision-vision {
    margin: 50px 0;
}

.grid-mision-vision {
    display: table;
    width: 100%;
}

.tarjeta-mv {
    display: table-cell;
    width: 50%;
    padding: 25px;
    background-color: #f7faf8;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    vertical-align: top;
    /* Separador invisible entre columnas */
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    background-clip: padding-box;
}

.icono-mv {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tarjeta-mv h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.sub-integrantes-artes {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* Adaptación para pantallas pequeñas (Celulares) */
@media (max-width: 768px) {
    .tarjeta-galeria {
        flex: 1 1 100%; /* Pasa a 1 sola columna en pantallas pequeñas */
    }
    
    .grid-mision-vision {
        display: block;
    }
    
    .tarjeta-mv {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        border-right: none;
        border-left: none;
    }
}
/* ==================== ESTILOS TÓNICO CAPILAR ==================== */
.tonico-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Grilla de los 4 pasos del proceso */
.seccion-proceso-pasos {
    margin: 50px 0;
}

.sub-pasos {
    color: #666;
    margin-bottom: 25px;
}

.grid-pasos-proceso {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tarjeta-paso {
    flex: 1 1 calc(50% - 15px); /* 2x2 en pantallas normales */
    background: #ffffff;
    border: 1px solid var(--grey);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0,0,0,0.02);
}

.numero-paso {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 2;
}

.foto-paso-wrapper {
    width: 100%;
    height: 140px;
    background-color: #f7faf8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.img-paso-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-paso h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.tarjeta-paso p {
    font-size: 0.85rem !important;
    color: #555;
    line-height: 1.3;
    margin: 0 !important;
}

/* Tabla Comparativa */
.seccion-ventajas-tabla {
    margin: 50px 0;
}

.tabla-responsive-container {
    overflow-x: auto;
    margin-top: 20px;
}

.tabla-comparativa {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.tabla-comparativa th, .tabla-comparativa td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--grey);
    font-size: 0.9rem;
}

.tabla-comparativa th {
    background-color: #f0f4eb;
    color: var(--dark);
    font-size: 0.95rem;
}

.col-ecologico {
    color: var(--primary);
    width: 40%;
}

.col-industrial {
    color: #c0392b;
    width: 40%;
}

/* Publicidad del Producto Final */
.seccion-publicidad-tonico {
    margin: 50px 0;
}

.tarjeta-publicitaria-destacada {
    background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid #d0e0c5;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.publi-flex {
    display: flex;
    gap: 25px;
    align-items: center;
}

.publi-foto-contenedor {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--grey);
}

.img-producto-destacado {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publi-info-texto {
    flex: 1;
}

.publi-info-texto h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin: 10px 0;
}

.detalles-producto-mini {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

/* Adaptación para Celulares */
@media (max-width: 768px) {
    .tarjeta-paso {
        flex: 1 1 100%;
    }
    
    .publi-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .publi-foto-contenedor {
        flex: 0 0 160px;
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    
    .detalles-producto-mini {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* ==================== ESTILOS SECCIÓN FÓRMULA SHAMPOO ==================== */
.seccion-formula-destacada {
    margin: 50px 0;
    background-color: #f7faf8;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #d8e5d0;
    text-align: center;
}

.seccion-formula-destacada h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

.seccion-formula-destacada p {
    color: #666;
    margin-bottom: 25px;
}

.grid-formula-tarjetas {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tarjeta-ingrediente {
    flex: 1;
    background: #ffffff;
    padding: 20px 15px;
    border-radius: 10px;
    border: 1px solid var(--grey);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.icono-ingrediente {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.tarjeta-ingrediente h4 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.tarjeta-ingrediente p {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 6px !important;
}

.tarjeta-ingrediente small {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
    display: block;
}

/* Adaptación para Celulares */
@media (max-width: 600px) {
    .grid-formula-tarjetas {
        flex-direction: column;
    }
}
/* ==================== ESTILOS PROTOTIPOS PET ==================== */
.escobas-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.seccion-prototipos {
    margin: 50px 0;
}

.grid-prototipos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-prototipo {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--grey);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.foto-prototipo-wrapper {
    flex: 0 0 220px;
    height: 180px;
    background-color: #f7faf8;
}

.img-prototipo-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-prototipo {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-prototipo {
    align-self: flex-start;
    background-color: #e8f5e9;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.info-prototipo h4 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.info-prototipo p {
    font-size: 0.88rem !important;
    color: #555;
    line-height: 1.4;
    margin: 0 !important;
}

/* Adaptación para Celulares */
@media (max-width: 768px) {
    .tarjeta-prototipo {
        flex-direction: column;
    }
    
    .foto-prototipo-wrapper {
        flex: none;
        width: 100%;
        height: 160px;
    }
}
/* ==================== ESTILOS VIDEO PROCESO ==================== */
.seccion-proceso-video {
    margin: 50px 0;
    text-align: center;
}

.contenedor-video-proceso {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #000;
}

.video-proceso-item {
    width: 100%;
    height: 400px;
    display: block;
}
/* ==================== AJUSTE DE MARGEN PARA VELAS ==================== */
.velas-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
/* ==================== CONTENEDOR DE VIDEO OPTIMIZADO ==================== */
/* Selector para el contenedor del video (ajusta la clase si usas otro nombre) */
.escobas-container .video-wrapper,
.escobas-container .video-container,
.video-responsive {
    max-width: 720px; /* Ancho máximo ideal para PC */
    margin: 32px auto; /* Centra el contenedor y da espacio arriba/abajo */
    padding: 0 16px;
    width: 100%;
}

/* Si usas la etiqueta <video> HTML5 directa */
.escobas-container video {
    width: 100%;
    max-height: 480px; /* Evita que el video ocupe toda la pantalla vertical */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background-color: var(--dark);
    object-fit: cover;
    display: block;
}

/* Si usas un <iframe> (por ejemplo, de YouTube) manteniendo relación de aspecto 16:9 */
.escobas-container .iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.escobas-container .iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ==================== CORRECCIÓN DE IMÁGENES: ECOCREACIONES ==================== */
/* 1. Ajuste para contenedores de tarjetas/galerías en artes/ecocreaciones */
.artes-container .foto-galeria-wrapper,
.artes-container .foto-paso-wrapper,
.artes-container .foto-prototipo-wrapper {
    height: auto; /* Permite que la altura se adapte a la proporción de la imagen */
    max-height: 280px; /* Evita que crezcan demasiado verticalmente en PC */
    background-color: var(--border-light); /* Fondo neutro por si hay márgenes transparentes */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Regla para mostrar la imagen completa a lo largo sin recortarla */
.artes-container img,
.artes-container .img-galeria-item,
.artes-container .img-paso-item,
.artes-container .img-prototipo-item {
    object-fit: contain; /* Muestra la imagen completa sin cortar bordes */
    width: 100%;
    height: 100%;
    max-height: 280px;
}
/* ==================== AJUSTE DE MÁRGENES Y ESPACIADO ==================== */
/* Unificación para Shampoo de Sábila y Compost/Abono */
.shampoo-container,
.compost-container,
.abono-container,
.humus-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Alineación de encabezados internos */
.shampoo-container h1,
.shampoo-container h2,
.compost-container h1,
.compost-container h2,
.abono-container h1,
.abono-container h2 {
    margin-bottom: 24px;
}

/* Ajuste del bloque destacado de texto/resumen en ambos proyectos */
.shampoo-container .bg-verde-suave,
.compost-container .bg-verde-suave,
.abono-container .bg-verde-suave {
    margin: 32px 0;
    padding: 28px 32px;
}
/* ==================== IMÁGENES CUADRADAS (PROCESO PLÁSTICO) ==================== */
/* 1. Ajuste del contenedor de la foto para darle formato cuadrado y más altura */
.escobas-container .foto-paso-wrapper,
.plastico-container .foto-paso-wrapper {
    height: 300px; /* Aumenta la altura (antes era 140px) */
    aspect-ratio: 1 / 1; /* Forzamos una proporción cuadrada (1:1) */
    width: 100%;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--border-light);
}

/* 2. Ajuste de la imagen para que rellene todo el espacio sin deformarse */
.escobas-container .img-paso-item,
.plastico-container .img-paso-item {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Llena el cuadrado de forma limpia */
    object-position: center; /* Enfoca la parte central de la foto */
}
/* ==================== IMÁGENES CUADRADAS (PROCESO SHAMPOO DE SÁBILA) ==================== */
/* 1. Ajuste del contenedor de las fotos del paso a paso */
.shampoo-container .foto-paso-wrapper,
.sabila-container .foto-paso-wrapper {
    height: 280px; /* Incrementa la altura vertical */
    aspect-ratio: 1 / 1; /* Mantiene la proporción cuadrada perfecta */
    width: 100%;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--border-light);
}

/* 2. Encadre perfecto de la imagen sin distorsión */
.shampoo-container .img-paso-item,
.sabila-container .img-paso-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Ajuste de cuadrícula para 2 pasos por fase */
.seccion-construccion-hidro .grid-pasos-proceso {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.hidro-container .foto-paso-wrapper {
    height: 280px;
    aspect-ratio: 1 / 1;
    width: 100%;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--border-light);
}

.hidro-container .img-paso-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* ==================== CONTROL Y TAMAÑO DE VIDEO ==================== */
/* 1. Contenedor principal del video con límite de tamaño y centrado */
.video-container {
    width: 100%;
    max-width: 800px; /* Ancho máximo en pantallas grandes */
    margin: 24px auto; /* Centrado horizontal */
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    background-color: #000000;
}

/* 2. Ajuste fluido de la etiqueta video para que nunca supere su contenedor */
.video-container video {
    width: 100%;
    height: auto;
    max-height: 480px; /* Limita la altura hacia arriba */
    display: block;
    object-fit: contain; /* Evita que la reproducción deforme o agrande el cuadro */
}
/* ==================== HUERTA ESCOLAR (DANNA YANZA & LUIS ACOSTA) ==================== */
.huerta-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

.tarjeta-equipo {
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0 32px 0;
    box-shadow: var(--shadow-sm);
}

.tarjeta-equipo h3 {
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 1.1rem;
}

.tarjeta-equipo p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 4px 0;
}

/* Dimensiones cuadradas e incrementadas en vertical para las imágenes de la huerta */
.huerta-container .foto-paso-wrapper {
    height: 280px;
    aspect-ratio: 1 / 1;
    width: 100%;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--border-light);
}

.huerta-container .img-paso-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* ==================== IMÁGENES CUADRADAS (PROCESO PESTAÑA VELAS) ==================== */
/* 1. Ajuste del contenedor de las fotos en la sección de velas */
.velas-container .foto-paso-wrapper {
    height: 280px; /* Incrementa la altura vertical */
    aspect-ratio: 1 / 1; /* Garantiza la proporción cuadrada perfecta */
    width: 100%;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--border-light);
}

/* 2. Ajuste de la imagen para que encaje limpiamente */
.velas-container .img-paso-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Centra la tarjeta huérfana de forma exacta */
.grid-pasos-proceso .tarjeta-paso:nth-child(3),
.grid-pasos-proceso .tarjeta-paso-centrada {
    grid-column: 1 / -1 !important; /* Ocupa de la columna 1 a la última */
    justify-self: center !important; /* Se alinea horizontalmente al centro */
    width: 100% !important;
    max-width: 480px !important;     /* Mismo ancho fijo que las tarjetas individuales */
    margin: 0 auto !important;       /* Asegura el centrado en bloque */
}