/* Calculadora ROI Alojamientos - Smiley */

.smiley-roi-calculator {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.calculator-header {
    text-align: center;
    margin-bottom: 48px;
}

.calculator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000 0%, #ff6b6b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.calculator-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
}

.calculator-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin: 0;
}

/* Inputs Card */
.calculator-inputs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

.inputs-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 32px 0;
}

.input-group {
    margin-bottom: 32px;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #33cc33;
    box-shadow: 0 0 0 3px rgba(51, 204, 51, 0.1);
}

.input-help {
    font-size: 0.875rem;
    color: #718096;
    margin: 8px 0 0 0;
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.input-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.input-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #33cc33 0%, #28a428 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(51, 204, 51, 0.3);
}

.input-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #33cc33 0%, #28a428 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(51, 204, 51, 0.3);
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #33cc33;
    min-width: 80px;
    text-align: right;
}

.slider-value-red {
    color: #ff0000;
}

/* Plan Selector */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.plan-button {
    position: relative;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.plan-button:hover {
    border-color: #33cc33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 204, 51, 0.2);
}

.plan-button-active {
    border-color: #33cc33;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.plan-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
}

.plan-badge-recommended {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.plan-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
}

.plan-details {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

/* Botón Calcular */
.btn-calcular {
    width: 100%;
    background: linear-gradient(135deg, #33cc33 0%, #28a428 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 32px;
}

.btn-calcular:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(51, 204, 51, 0.4);
}

/* Results */
.calculator-results {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 24px 0;
}

.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.breakdown-label {
    color: #4a5568;
}

.breakdown-value {
    font-weight: 600;
    color: #1a202c;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.comparison-card {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    border: 2px solid;
}

.comparison-card-ota {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #ff0000;
}

.comparison-card-smiley {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #33cc33;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.comparison-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.comparison-card-ota .comparison-header {
    color: #991b1b;
}

.comparison-card-smiley .comparison-header {
    color: #166534;
}

.comparison-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    color: #4a5568;
}

.comparison-total {
    padding-top: 16px;
    border-top: 2px solid;
    margin-bottom: 16px;
}

.comparison-card-ota .comparison-total {
    border-color: #ff0000;
}

.comparison-card-smiley .comparison-total {
    border-color: #33cc33;
}

.total-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.comparison-card-ota .total-label {
    color: #991b1b;
}

.comparison-card-smiley .total-label {
    color: #166534;
}

.total-amount {
    font-size: 2rem;
    font-weight: 700;
}

.comparison-card-ota .total-amount {
    color: #991b1b;
}

.comparison-card-smiley .total-amount {
    color: #166534;
}

.comparison-cons,
.comparison-pros {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.875rem;
}

.comparison-cons {
    color: #991b1b;
}

.comparison-pros {
    color: #166534;
}

/* Savings Banner */
.savings-banner {
    background: linear-gradient(135deg, #ff0000 0%, #fbbf24 50%, #33cc33 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 48px 32px;
    text-align: center;
    color: white;
    margin-bottom: 32px;
}

.savings-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.savings-amount {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1;
}

.savings-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.savings-stat {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 0.875rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-month {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    color: #4a5568;
}

.timeline-bar {
    flex: 1;
    background: #f7fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
}

.timeline-bar-highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #33cc33;
}

/* CTA Card - CORRECCIONES */
.cta-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: white;
    margin-top: 40px; /* SEPARACIÓN del Ahorro total */
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #ffffff; /* BLANCO explícito */
}

.cta-text {
    font-size: 1.25rem;
    margin: 0 0 32px 0;
    opacity: 0.9;
    color: #ffffff; /* BLANCO explícito */
}

.cta-button {
    background: #ff0000;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 18px 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* CENTRADO del texto */
    gap: 12px;
    transition: all 0.3s;
    margin: 0 auto; /* CENTRADO del botón */
}

.cta-button:hover {
    background: #33cc33;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(51, 204, 51, 0.4);
}

.cta-subtitle {
    font-size: 0.875rem;
    margin: 16px 0 0 0;
    opacity: 0.7;
    color: #ffffff; /* BLANCO explícito */
}

/* Responsive */
@media (max-width: 768px) {
    .smiley-roi-calculator {
        padding: 20px 15px;
        margin: 30px auto;
    }
    
    .calculator-title {
        font-size: 2rem;
    }
    
    .calculator-inputs {
        padding: 24px;
    }
    
    .plan-selector {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .savings-amount {
        font-size: 2.5rem;
    }
    
    .cta-card {
        padding: 32px 20px;
    }
}