/* Estilos específicos para la página de Presupuesto */

/* Page Header */
.page-header {
    background: transparent;
    color: var(--text-main);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Presupuesto Section */
.presupuesto-section {
    padding: 100px 0;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.presupuesto-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.presupuesto-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.presupuesto-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Formulario */
.presupuesto-form {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-glow);
    overflow: hidden;
    color: var(--text-main);
}

.form-section {
    padding: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

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

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: var(--secondary-neon);
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control option {
    background-color: #1a1a1a;
    color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-neon);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 10px rgba(0,243,255,0.2);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

.date-display {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-neon);
    font-weight: 500;
}

/* Location Input Group */
.location-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.location-input-group .form-control {
    flex: 1;
}

.location-btn {
    padding: 0.8rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Terms Content */
.terms-content {
    margin-bottom: 2rem;
}

.terms-box {
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-neon);
}

.terms-box h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

.terms-box ul {
    list-style: none;
    padding: 0;
}

.terms-box li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.terms-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-neon);
    font-weight: bold;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-label .link {
    color: var(--secondary-neon);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label .link:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    padding: 3rem;
    background: transparent;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
    justify-content: center;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-neon);
    box-shadow: 0 0 15px rgba(0,243,255,0.5);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Alert Styles */
.alert {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #fff;
    border-color: #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #fff;
    border-color: #dc3545;
}

.alert h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert li {
    margin-bottom: 0.5rem;
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
}

.flatpickr-day {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.flatpickr-day:hover {
    background: #667eea;
    color: white;
}

.flatpickr-day.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.flatpickr-day.today {
    border-color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .presupuesto-section {
        padding: 60px 0;
    }

    .presupuesto-intro h2 {
        font-size: 2rem;
    }

    .form-section {
        padding: 2rem;
    }

    .form-section h3 {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-input-group {
        flex-direction: column;
    }

    .location-btn {
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        padding: 2rem;
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .process-step h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .presupuesto-intro h2 {
        font-size: 1.8rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-section h3 {
        font-size: 1.2rem;
    }

    .terms-box {
        padding: 1.5rem;
    }

    .form-actions {
        padding: 1.5rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation for form sections */
.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Focus states */
.form-control:focus {
    transform: translateY(-1px);
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}
