/* === ReadFy PRO Page Styles (styles/pro.css) - REDISEÑADO === */

:root {
    --color-primario: #5867dd;
    --color-secundario: #ffffff;
    --color-acento: #34d399;
    --color-oro: #f59e0b; /* Un dorado más vibrante */
    --color-fondo-page: #f8f9fa;
    --color-borde: #e2e8f0;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --border-radius-main: 12px;
    --shadow-main: 0 8px 25px rgba(0,0,0,0.07);
}

body {
    font-family: 'Nunito', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo-page);
    color: var(--text-primary);
}

main {
    padding-bottom: 4rem;
}

/* --- Hero Section --- */
.pro-hero {
    background: linear-gradient(135deg, var(--color-primario) 0%, #4338ca 100%);
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
}
.pro-hero h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.pro-hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0.75rem auto 0 auto;
    opacity: 0.9;
}

/* --- Vistas y Secciones --- */
.pro-view {
    display: none; /* Ocultas por defecto */
}
.pro-view.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pro-comparison-section, .pro-cta-section {
    padding: 3rem 1.5rem;
}
.pro-comparison-section {
    background-color: var(--color-secundario);
}

/* --- Tabla Comparativa --- */
.comparison-table-wrapper {
    max-width: 800px;
    margin: auto;
    background-color: var(--color-secundario);
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-main);
    border: 1px solid var(--color-borde);
    overflow: hidden;
}
.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.1rem;
}
.table-header h3:first-child {
    text-align: left;
}
.table-header h3:last-child {
    color: var(--color-primario);
}
.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-borde);
    align-items: center;
    text-align: center;
}
.table-row:last-child { border-bottom: none; }
.feature-name {
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
}
.feature-value { font-weight: 700; font-size: 1.1rem; }
.feature-value.pro-feature { color: var(--color-primario); }
.feature-off { color: #9ca3af; }

/* --- Tarjetas de Precios y CTA --- */
.pro-cta-section { text-align: center; }
.pro-cta-section h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.pro-cta-section p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto;}

.pricing-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.pricing-card {
    background: var(--color-secundario);
    border-radius: var(--border-radius-main);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 340px;
    box-shadow: var(--shadow-main);
    border: 1px solid var(--color-borde);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}
.pricing-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primario);
    margin: 0;
}
.pricing-card.trial-card h4 {
    color: var(--color-acento);
}
.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
}
.price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.billing-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 40px; /* Para alinear botones */
}
.btn-pro {
    background: var(--color-primario);
    color: var(--color-secundario);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    width: 100%;
}
.btn-pro.btn-trial {
    background: var(--color-acento);
}
.btn-pro:hover {
    filter: brightness(110%);
}

footer { text-align: center; padding: 2rem; font-size: 0.9rem; color: var(--text-secondary); margin-top: auto; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .pro-hero h2 { font-size: 1.8rem; }
    .pro-hero p { font-size: 1rem; }
    
    .table-header { display: none; }
    .table-row {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 1.5rem;
    }
    .feature-name {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .table-row .feature-value {
        text-align: left;
        display: flex;
        justify-content: space-between;
        padding-left: 1rem;
        border-left: 3px solid var(--color-borde);
    }
    .table-row .feature-value::before {
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 1rem;
    }
    .table-row .feature-value:nth-of-type(1)::before { content: 'Free: '; }
    .table-row .feature-value:nth-of-type(2)::before { content: 'PRO: '; }

    .pro-cta-section h3 { font-size: 1.6rem; }
}
