/* ========================================
   COME SANO, VIVE SANO - Estilos específicos
   ======================================== */
/* ---- Video ---- */
.come-sano-video-wrapper {
    width: 100%;
    border-radius: 16px;
}

.come-sano-video {
    width: 100%;
    display: block;
    border-radius: 16px;
    height: auto;
}

/* ---- Texto ---- */
.come-sano-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--dark-text);
    text-align: justify;
}

/* ---- Galería lateral ---- */
.come-sano-galeria {
    gap: 12px;
    position: sticky;
    top: 100px;
}

.come-sano-galeria-img {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    /* sin aspect-ratio fijo, la imagen define su propia altura */
}

.come-sano-galeria-img img {
    width: 100%;
    height: 250px;  /* la imagen respeta sus proporciones naturales */
    display: block;
    transition: transform 0.4s ease;
}

.come-sano-galeria-img:hover img {
    transform: scale(1.06);
}

/* ---- Tabs ---- */
.come-sano-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.come-sano-tab {
    flex: 1 1 auto;
    padding: 12px 18px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.come-sano-tab:hover {
    border-color: var(--navy-blue);
    color: var(--navy-blue);
}

.come-sano-tab.active {
    background: var(--navy-blue);
    border-color: var(--navy-blue);
    color: white;
}

/* ---- Panel de contenido ---- */
.come-sano-tab-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    min-height: 200px;
}

.come-sano-tab-panel {
    display: none;
}

.come-sano-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ---- Listas ---- */
.come-sano-list {
    padding-left: 1.5rem;
    line-height: 2;
    color: var(--dark-text);
    font-size: 1rem;
    text-align: justify;
}

.come-sano-list li {
    margin-bottom: 0.3rem;
}

#comeSanoTabs .nav-link {
    color: var(--navy, #1a3a7c);
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}
#comeSanoTabs .nav-link:hover {
    background: #fff0f0;
    border-color: #dc3545;
    color: #dc3545;
}
#comeSanoTabs .nav-link.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff !important;
}

/* ---- Responsive Banner ---- */
@media (max-width: 1199px) {
    .hero-slide-secondary { height: 380px; }
}
@media (max-width: 991px) {
    .hero-slide-secondary { height: 300px; }
    .come-sano-galeria-img img {height: 350px;}
    .hero-title-custom { font-size: 2.2rem; }
    .come-sano-galeria { position: static; }
}
@media (max-width: 767px) {
    .hero-slide-secondary { height: 230px; }
    .hero-title-custom { font-size: 1.8rem; }
    .come-sano-tab { font-size: 0.82rem; padding: 10px 12px; }
    
    .come-sano-tab-content { padding: 1.2rem; }
}
@media (max-width: 576px) {
    .hero-slide-secondary { height: 180px; }
    .hero-title-custom { font-size: 1.5rem; }
    .hero-content { padding-left: 1.2rem; }
    .come-sano-galeria { grid-template-columns: 1fr 1fr; gap: 8px; }
    .come-sano-tab { flex: 1 1 100%; }
}
@media (max-width: 480px){
    .come-sano-galeria-img img {height: 220px;}
}
@media (max-width: 400px) {
    .hero-slide-secondary { height: 150px; }
    .hero-title-custom { font-size: 1.3rem; }
}