/* Estilos para las páginas de recursos */

/* Hero de recursos */
.resource-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.resource-hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.resource-subtitle {
    font-size: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contenedor principal más ancho para esta página */
.resource-content .container {
    max-width: 1300px;
    width: 95%;
    margin: 0 auto;
}

/* Contenido principal */
.resource-content {
    padding: 4rem 0;
}

.resource-intro {
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.resource-benefits {
    margin: 1.5rem 0;
    padding-left: 0;
}

.resource-benefits li {
    list-style: none;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.resource-benefits li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.1rem;
    margin-top: 0.3rem;
}

/* Calculadora de LTV */
.calculator-container {
    max-width: 900px;
    margin: 0 auto 4rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.calculator-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.calculator {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    background-color: var(--white);
}

.calculator-header {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 1.2rem;
    text-align: center;
}

.calculator-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.3rem;
}

.calculator-section {
    border-bottom: 1px solid var(--gray-300);
    padding: 0.5rem 0;
}

.calculator-section:last-child {
    border-bottom: none;
}

.calculator-section-header {
    background-color: var(--gray-200);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
}

.calculator-row {
    display: grid;
    grid-template-columns: 60% 5% 35%;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.calculator-row:last-child {
    border-bottom: none;
}

.calculator-row label {
    font-size: 1rem;
    line-height: 1.4;
}

.calculator-dash {
    text-align: center;
    color: var(--text-light);
}

.calculator-input {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: 0.8rem;
    border-radius: 4px;
    width: 100%;
    text-align: right;
    font-family: inherit;
    font-size: 1.1rem;
}

.result-row {
    background-color: rgba(37, 99, 235, 0.05);
}

.calculator-result {
    font-weight: 600;
    text-align: right;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.calculator-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.calculator-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.calculator-info ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.calculator-info li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Contenido SEO */
.resource-seo-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.resource-seo-content h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.resource-seo-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta-box {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-box h3 {
    margin-top: 0;
}

.cta-box .btn {
    margin-top: 1rem;
}

/* FAQ */
.resource-faq {
    max-width: 1100px;
    margin: 4rem auto;
}

.resource-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 0.8rem;
    color: var(--heading-color);
}

/* Estilos para análisis de cohortes */
.cohort-instructions {
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.cohort-instructions h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.instruction-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.instruction-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instruction-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.instruction-card ul {
    text-align: left;
    padding-left: 1.5rem;
}

.instruction-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sample-data {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.sample-data h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.sample-table {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.sample-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sample-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
    text-align: left;
}

.sample-table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--gray-200);
}

.sample-table tr:last-child td {
    border-bottom: none;
}

.sample-data .btn {
    display: block;
    margin: 0 auto;
}

/* Herramienta de análisis de cohortes */
.cohort-tool {
    max-width: 1200px;
    margin: 0 auto 4rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.cohort-tool h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-container {
    background-color: var(--white);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-container:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-container h3 {
    margin-bottom: 0.5rem;
}

.upload-container p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.file-input {
    display: none;
}

.file-info {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.file-info p {
    margin-bottom: 0.8rem;
}

.file-info button {
    margin-top: 1rem;
}

.analysis-options {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.analysis-options h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.select-input, .number-input {
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    background-color: var(--white);
}

.select-input:focus, .number-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Estilos para la sección de resultados */
.results-section {
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    white-space: nowrap;
}

/* Estilos para botones pequeños */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* Acciones para tablas y gráficos */
.table-actions, .chart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Mejoras para la tabla de cohortes */
.cohort-table-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.cohort-table-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.cohort-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cohort-table table {
    width: 100%;
}

.cohort-table th, .cohort-table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #eaeaea;
}

.cohort-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cohort-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.cohort-table td.cohort-cell {
    font-weight: 600;
    text-align: left;
    background-color: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 5;
}

.cohort-table td.retention-cell {
    position: relative;
    padding: 0;
    height: 40px;
}

.retention-cell-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retention-cell-value {
    position: relative;
    z-index: 2;
    color: #333;
    font-weight: 500;
}

/* Estilos mejorados para los gráficos */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.chart-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.chart-box h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Botones de exportación */
.export-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.export-container .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.export-container .btn i {
    font-size: 1rem;
}

.export-container .btn:hover {
    transform: translateY(-2px);
}

/* Paleta de colores para las celdas de retención */
.retention-colors {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.color-item {
    width: 20px;
    height: 20px;
    margin: 0 5px;
    border-radius: 50%;
}

.color-low {
    background-color: rgba(220, 53, 69, 0.7);
}

.color-medium-low {
    background-color: rgba(255, 193, 7, 0.7);
}

.color-medium {
    background-color: rgba(255, 153, 0, 0.7);
}

.color-medium-high {
    background-color: rgba(40, 167, 69, 0.7);
}

.color-high {
    background-color: rgba(0, 123, 255, 0.7);
}

/* Indicador de carga */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensaje de error */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 1.2rem;
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}

/* Interpretación de resultados */
.results-interpretation {
    max-width: 1100px;
    margin: 4rem auto;
}

.results-interpretation h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.interpretation-section {
    margin-bottom: 2.5rem;
}

.interpretation-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.interpretation-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.interpretation-section li {
    margin-bottom: 0.5rem;
}

/* Solución de problemas */
.troubleshooting {
    max-width: 1100px;
    margin: 3rem auto;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.troubleshooting h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.troubleshooting-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.troubleshooting-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.troubleshooting-item h3 {
    color: #b91c1c; /* Color rojo para destacar los errores */
    margin-bottom: 1rem;
}

.troubleshooting-item ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.troubleshooting-item li {
    margin-bottom: 0.5rem;
}

.troubleshooting-item strong {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .resource-hero h1 {
        font-size: 2.2rem;
    }
    
    .calculator-row {
        grid-template-columns: 1fr;
        grid-gap: 0.5rem;
    }
    
    .calculator-dash {
        display: none;
    }
    
    .calculator-input, 
    .calculator-result {
        text-align: left;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .resource-hero {
        padding: 7rem 0 3rem;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .calculator-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .calculator-section-header span:last-child {
        margin-top: 0.5rem;
    }
    
    .cohort-tool {
        padding: 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el combinador de keywords */
.keyword-tool {
    max-width: 1200px;
    margin: 0 auto 4rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.keyword-tool h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.keyword-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.keyword-box {
    display: flex;
    flex-direction: column;
}

.keyword-box h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.keyword-box textarea {
    height: 200px;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
}

.keyword-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.keyword-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.keyword-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.results-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Instrucciones para el combinador de keywords */
.keyword-instructions {
    max-width: 1000px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.keyword-instructions h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Casos de uso */
.use-cases {
    max-width: 1000px;
    margin: 4rem auto;
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.use-case-icon i {
    font-size: 1.5rem;
}

.use-case-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Media queries */
@media (max-width: 768px) {
    .keyword-tool {
        padding: 2rem;
    }
    
    .keyword-boxes {
        grid-template-columns: 1fr;
    }
    
    .keyword-box textarea {
        height: 150px;
    }
    
    .keyword-options {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .keyword-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el submenú de navegación */
.has-submenu {
    position: relative;
}

.has-submenu .submenu-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-submenu .submenu-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-toggle i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0.5rem 0;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0 !important;
}

.submenu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-weight: 400;
    transition: all 0.2s ease;
}

.submenu a:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .has-submenu.active .submenu {
        max-height: 300px;
    }
    
    .submenu li {
        padding-left: 1rem;
    }
    
    .submenu a {
        padding: 0.5rem 1rem;
    }
}

/* Calculadora de LTV Avanzada */
.calculator-container.advanced {
    max-width: 1200px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.calculator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-group label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0;
}

.styled-input, .styled-select {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.styled-input:focus, .styled-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.styled-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

#equal-shipping-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

#equal-shipping-container label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0;
}

.calculator-table-container {
    margin-bottom: 2rem;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calculator-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.calculator-table th, .calculator-table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #eaeaea;
}

.calculator-table th {
    background-color: var(--bg-dark);
    color: var(--white);
    font-weight: 600;
    padding: 1rem 0.8rem;
    text-align: center;
}

.calculator-table th:first-child {
    text-align: left;
}

.calculator-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.calculator-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.calculator-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.calculator-table input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.calculator-table input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.calculator-section-title {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem;
    margin: 2.5rem 0 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculator-section-title h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
}

.ad-data-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
}

.ad-data-controls .control-group label {
    color: var(--text-color);
}

.ad-data-controls .styled-select {
    background-color: white;
    color: var(--text-color);
    border-color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.btn {
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculator-table .table-header th {
    background-color: #1a2942;
    color: white;
    font-weight: 600;
    padding: 1.2rem 0.8rem;
    text-align: center;
}

/* Estilos para el gráfico */
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-height: 400px;
    position: relative;
}

/* Estilos para las instrucciones */
.calculator-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.calculator-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.calculator-info ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-info li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.calculator-info ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.calculator-info ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .calculator-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .control-group {
        flex-wrap: wrap;
    }
    
    .calculator-table th, .calculator-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .calculator-table input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .ad-data-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .calculator-container.advanced {
        padding: 1.5rem;
    }
    
    .calculator-table th, .calculator-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .calculator-section-title h3 {
        font-size: 1.1rem;
    }
    
    .styled-input, .styled-select {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Estilos para el Paywall */
.paywall-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .paywall-container {
        flex-direction: row;
    }
}

.paywall-content {
    padding: 30px;
    flex: 1;
}

.paywall-preview {
    padding: 30px;
    background-color: #f0f2f5;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.paywall-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.paywall-features {
    margin: 25px 0;
}

.paywall-features ul {
    list-style: none;
    padding: 0;
}

.paywall-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.paywall-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.paywall-price {
    text-align: center;
    margin: 30px 0;
}

.price-tag {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.price-info {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 5px;
}

.paywall-cta {
    text-align: center;
    margin: 25px 0;
}

.paywall-cta .btn {
    padding: 12px 30px;
    font-size: 18px;
}

.paywall-guarantee {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.paywall-guarantee p {
    margin: 5px 0;
}

.paywall-guarantee i {
    margin-right: 5px;
    color: var(--primary-color);
}

.preview-image {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilos para testimonios */
.testimonials-section {
    margin: 50px 0;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.testimonial-card {
    flex: 1;
    min-width: 280px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    font-size: 16px;
}

.author-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

/* Estilos para FAQ */
.faq-section {
    margin: 50px 0;
}

.faq-container {
    margin-top: 20px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.faq-question h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 15px;
}

/* Estilos para productos premium en la página de inicio */
.premium-resource {
    position: relative;
    overflow: hidden;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.resource-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
    text-align: center;
}

/* Estilos para promoción en calculadora básica */
.premium-promo {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
    border-left: 5px solid var(--primary-color);
}

.premium-promo h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.premium-promo-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

@media (max-width: 576px) {
    .premium-promo-buttons {
        flex-direction: column;
    }
} 