/* ==========================================================================
   Web Sin Complicaciones - Estilos para Páginas Internas de Planes
   ========================================================================== */

/* Layout General de Página Interna */
.plan-detail-page {
    background-color: var(--color-bg, #0B0F17);
    color: var(--color-text, #E2E8F0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra de Navegación Superior / Header Interno */
.plan-internal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.25rem;
}

.plan-header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plan-header-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-header-back:hover {
    color: #55c9ff;
    transform: translateX(-3px);
    background: rgba(85, 201, 255, 0.08);
    border-color: rgba(85, 201, 255, 0.2);
}

.plan-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
}

.plan-header-logo img {
    height: 32px;
    width: auto;
}

.plan-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #25D366;
    color: #072310;
    padding: 0.45rem 0.95rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Hero del Plan */
.plan-detail-hero {
    padding: 2.5rem 1.25rem 2rem;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.plan-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.plan-badge-esencial {
    background: rgba(85, 201, 255, 0.12);
    color: #55c9ff;
    border: 1px solid rgba(85, 201, 255, 0.3);
}

.plan-badge-basico {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.plan-badge-profesional {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.plan-badge-empresarial {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.plan-detail-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.plan-detail-subtitle {
    font-size: 1.05rem;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto 1.75rem;
}

/* Tarjeta Principal de Precios y Resumen */
.plan-pricing-box {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.plan-price-large {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.plan-price-currency {
    font-size: 1.6rem;
    color: #94A3B8;
}

.plan-price-period {
    font-size: 1rem;
    color: #94A3B8;
    font-weight: 500;
}

.plan-price-setup-note {
    font-size: 0.95rem;
    color: #55c9ff;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.plan-initial-banner {
    background: rgba(85, 201, 255, 0.08);
    border: 1px dashed rgba(85, 201, 255, 0.3);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: #d0e2f5;
    margin-bottom: 1.25rem;
}

.plan-pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-pricing-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1.02rem;
}

/* Secciones de Contenido Detallado */
.plan-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
}

.plan-section-block {
    margin-bottom: 2.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
}

.plan-block-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-block-heading svg {
    color: #55c9ff;
    flex-shrink: 0;
}

.plan-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.plan-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(85, 201, 255, 0.12);
    color: #55c9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.plan-feature-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 0.2rem;
}

.plan-feature-text p {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.4;
    margin: 0;
}

/* Bloque de Demo en Vivo */
.plan-demo-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(85, 201, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.plan-demo-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.plan-demo-card-desc {
    font-size: 0.92rem;
    color: #94A3B8;
    margin-bottom: 1.25rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Barra de Navegación entre Planes */
.plan-other-options {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 15, 23, 0.4);
}

.plan-other-options h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.plan-options-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.plan-chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}

.plan-chip-link:hover {
    color: #55c9ff;
    background: rgba(85, 201, 255, 0.08);
    border-color: rgba(85, 201, 255, 0.25);
    transform: translateY(-1px);
}

.plan-chip-link.active {
    background: rgba(85, 201, 255, 0.16);
    color: #55c9ff;
    border-color: rgba(85, 201, 255, 0.4);
    pointer-events: none;
}

/* Adaptabilidad Mobile First */
@media (max-width: 640px) {
    .plan-detail-hero {
        padding: 1.75rem 1rem 1.5rem;
    }
    
    .plan-pricing-box {
        padding: 1.35rem 1.1rem;
        margin-bottom: 1.75rem;
    }
    
    .plan-section-block {
        padding: 1.25rem 1rem;
        margin-bottom: 1.75rem;
    }
    
    .plan-block-heading {
        font-size: 1.15rem;
    }
    
    .plan-features-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-header-logo span {
        display: none;
    }
}

/* Refinamiento Mobile Header Interno */
@media (max-width: 640px) {
    .plan-header-logo span {
        display: none !important;
    }
    .plan-header-back span {
        font-size: 0.82rem !important;
    }
    .plan-header-cta {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Vitrina de Demos de Estilos Web Esencial */
.demo-showcase-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(85, 201, 255, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.demo-selector-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}

.demo-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.6rem 0.3rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.demo-tab-btn .demo-tab-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.demo-tab-btn .demo-tab-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-tab-btn .demo-tab-text strong {
    font-size: 0.8rem;
    color: #CBD5E1;
    font-weight: 700;
    line-height: 1.2;
}

.demo-tab-btn .demo-tab-text small {
    font-size: 0.68rem;
    color: #64748B;
    margin-top: 2px;
}

.demo-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.demo-tab-btn.active {
    background: #0071E3;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.demo-tab-btn.active .demo-tab-text strong {
    color: #FFFFFF;
}

.demo-tab-btn.active .demo-tab-text small {
    color: rgba(255, 255, 255, 0.85);
}

.demo-view-panel {
    display: block;
    animation: fadeIn 0.3s ease;
}

.demo-view-panel[hidden] {
    display: none !important;
}

.demo-screen-media {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.demo-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.demo-screen-meta {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.demo-badge-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #55c9ff;
    margin-bottom: 0.3rem;
}

.demo-meta-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
}

.demo-meta-text p {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.45;
    margin: 0;
}

.btn-demo-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #0071E3, #0056b3);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-demo-live:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
