/* =========================================
   ESTILOS BASE Y GRID
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333;
}

.enterprise-page {
    padding-top: 140px;
    min-height: 100vh;
    background-color: var(--bg-color); /* Hereda la variable global */
    padding-bottom: 80px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.enterprise-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.enterprise-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color, #fff);
    letter-spacing: -1px;
}

.enterprise-header p {
    color: var(--accent-green-text, #a0a0a0);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* GRID PRINCIPAL */
.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

/* =========================================
   TARJETA HORIZONTAL
   ========================================= */
.enterprise-card {
    /* CAMBIO: Se vincula el color del tema por defecto al Naranja Principal */
    --theme-color: var(--accent-color);
    --theme-bg-gradient: linear-gradient(180deg, #1e1e2f 0%, #0f0f13 100%);
    --icon-color: var(--theme-color);
    --badge-color: rgba(255, 255, 255, 0.4);

    background-color: #141414;
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    min-height: 260px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.enterprise-card:hover {
    transform: translateY(-5px);
    /* CAMBIO: Sombra con el brillo verde tecnológico característico */
    box-shadow: 0 15px 35px rgba(171, 225, 28, 0.25);
    border-color: var(--theme-color);
}

/* --- LADO IZQUIERDO (VISUAL) --- */
.card-visual {
    width: 150px;
    min-width: 150px;
    background: var(--theme-bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #333;
    padding: 15px;
    text-align: center;
    position: relative;
}

/* Estilo Sólido (Sobrescribe fondo si aplica en PHP) */
.enterprise-card[data-style="solid"] .card-visual {
    background: var(--theme-bg-gradient) !important;
}

/* Cambia colores de texto/icono sobre fondo sólido */
.enterprise-card[data-style="solid"] {
    --icon-color: #ffffff;
    --badge-color: rgba(255, 255, 255, 0.9);
}

.card-visual img.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    mix-blend-mode: overlay;
}

.visual-icon {
    font-size: 2.8rem;
    color: var(--icon-color);
    margin-bottom: 10px;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

.visual-img-icon {
    width: 60px;
    height: auto;
    z-index: 2;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.badge-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--badge-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: auto;
    z-index: 2;
}

/* --- LADO DERECHO (CONTENIDO) --- */
.card-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.plan-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.plan-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.plan-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
    color: var(--theme-color);
}

.plan-desc {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* LISTA DE CARACTERÍSTICAS */
.specs-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
}

.spec-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.spec-mini span.material-symbols-outlined,
.spec-mini i {
    color: var(--accent-green); /* CAMBIO: Iconos internos en Verde Tecnológico */
    font-size: 1.1rem;
}

/* FOOTER */
.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-compact .label {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    display: block;
    font-weight: 600;
}

.price-compact .amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}

.price-compact .iva {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    margin-left: 2px;
}

.btn-mini {
    background-color: transparent;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mini:hover {
    /* CAMBIO (Fusión Dinámica): El botón transiciona al degradado fresco al pasar el mouse */
    background: linear-gradient(135deg, var(--accent-yellow-light) 0%, var(--accent-green) 100%);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(171, 225, 28, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   MODO CLARO - AJUSTES DE MARCA
   ========================================= */

/* 1. Base limpia sin degradados */
body.light-mode .enterprise-card,
body.light-mode .enterprise-card:not([data-style="solid"]) {
    background: #ffffff !important;
    background-image: none !important;
    --theme-bg-gradient: #ffffff !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .enterprise-card .card-content,
body.light-mode .enterprise-card .card-body {
    background: transparent !important;
    background-image: none !important;
}

/* 2. Rescate del badge vertical */
body.light-mode .badge-vertical {
    color: #4b5563 !important;
}

/* 3. Títulos y descripciones */
body.light-mode .plan-title {
    color: #1a1a1a !important;
}

body.light-mode .plan-desc {
    color: #4b5563 !important;
}

/* 4. Mini caja interior oscura */
body.light-mode .specs-mini-grid {
    background-color: #121212 !important;
    border: 1px solid #333;
}

body.light-mode .spec-mini {
    color: #ffffff !important;
}

body.light-mode .spec-mini i,
body.light-mode .spec-mini svg,
body.light-mode .spec-mini span.material-symbols-outlined {
    color: var(--accent-green) !important; /* CAMBIO: Eliminado el morado por el verde de marca */
}

/* 5. Pie de tarjeta y Precios */
body.light-mode .card-footer {
    background: transparent !important;
    border-top: 1px solid #f0f0f0 !important;
}

body.light-mode .price-compact .amount,
body.light-mode .price-compact .currency,
body.light-mode .price-compact .period {
    color: #1a1a1a !important;
}

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .enterprise-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-card {
        flex-direction: column;
        height: auto;
    }

    .card-visual {
        width: 100%;
        height: 120px;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .badge-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        margin-top: 0;
    }

    body.light-mode .card-visual {
        border-bottom: 1px solid #e0e0e0;
    }
}

/* =========================================
   TEXTO RESTRICCIONES (CENTRADO Y SIN SUBRAYADO)
   ========================================= */
.restricciones-container {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.restricciones-link {
    text-decoration: none !important;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
    display: inline-block;
}

.restricciones-link:hover {
    opacity: 1;
    color: var(--text-color);
    text-decoration: none;
}