/* ==========================================================================
   ESTRUCTURA DE PESTAÑAS (TABS) INTERACTIVAS - CORREGIDO
   ========================================================================== */
.planes-tabs-section {
    padding: 50px 20px;
    background-color: #f8f9fa;
}

.nota-sla-intro {
    font-size: 0.85rem;
    color: #475569; /* Color de texto legible y profesional */
    background-color: #f1f5f9; /* Color de fondo sutil para destacarla */
    border: 1px solid #e2e8f0; /* Borde suave */
    border-left: 4px solid #3b82f6; /* Barra lateral llamativa de acento */
    border-radius: 8px; /* Bordes redondeados modernos */
    margin: 30px 40px; /* Margen superior/inferior y generoso espacio izquierdo/derecho */
    padding: 18px 22px; /* Espaciado interno cómodo */
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
}

.tabs-nav-container {
    display: flex;
    justify-content: center; /* Centrados perfectamente en móvil y escritorio */
    align-items: center;
    flex-wrap: wrap; /* Permite que bajen ordenados si la pantalla es muy estrecha */
    gap: 10px;
    margin-bottom: 30px;
    padding: 5px 15px 15px 15px;
    width: 100%;
    box-sizing: border-box;
}

.tabs-nav-container::-webkit-scrollbar {
     display: none; 
}

.tab-btn {
    background-color: #ffffff;
    color: #242424;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    white-space: nowrap; /* Evita que el texto del botón se parta en dos líneas */
    flex-shrink: 0; /* Evita que los botones se, encojan o deformen */
}


.tab-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.tab-btn.active {
    background-color: #0078d4; 
    color: #ffffff;
    border-color: #0078d4;
    box-shadow: 0 4px 14px rgba(0, 120, 212, 0.25);
}

.tabs-content-container {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 950px;
    margin: 0 auto;
    overflow: hidden;
}

/* IMPORTANTE: Ocultar por defecto todos los paneles */
.tab-content-panel {
    display: none !important; 
    padding: 40px;
}

/* IMPORTANTE: Mostrar únicamente el panel que tenga la clase active */
.tab-content-panel.active {
    display: block !important;
    animation: fadeInTabAnimate 0.4s ease;
}

@keyframes fadeInTabAnimate {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; 
    gap: 40px;
    align-items: center;
}

.panel-left-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #242424;
}

.panel-tagline {
    font-size: 1.1rem;
    color: #0067b8;
    font-weight: 600;
    margin-bottom: 20px;
}

.panel-features-list {
    list-style: none;
}

.panel-features-list li {
    font-size: 1rem;
    color: #616161;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.panel-features-list li::before {
    content: "✓";
    color: #107c10; 
    font-weight: bold;
    position: absolute;
    left: 0;
}

.panel-right-action {
    text-align: center;
    border-left: 1px solid #f0f0f0;
    padding-left: 40px;
}

.panel-right-action h4 {
    font-size: 1.1rem;
    color: #242424;
    margin-bottom: 20px;
    font-weight: 700;
}

.panel-right-action .btn-primary {
    width: 100%;
}

@media (max-width: 768px) {
    .tab-panel-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .panel-right-action {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 25px;
    }
}

/* En pantallas grandes (Desktop), los centramos de nuevo si caben holgadamente */
@media (min-width: 900px) {
    .tabs-nav-container {
        justify-content: center;
        overflow-x: visible;
    }
}