/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1dd1a1;
    --secondary-color: #10ac84;
    --accent-color: #00d2d3;
    --danger-color: #ff6b6b;
    --warning-color: #feca57;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #2d3436;
    --white: #ffffff;
    --turquoise-light: #55efc4;
    --turquoise-dark: #00b894;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(29, 209, 161, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 50%, #00b894 100%);
    min-height: 100vh;
    color: var(--dark-gray);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.header-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid rgba(29, 209, 161, 0.1);
}

.appointment-form {
    padding: 40px;
}

.appointment-form h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.appointment-form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Steps */
.step {
    animation: fadeIn 0.5s ease-in;
}

.step h3 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--turquoise-light);
}

.hidden {
    display: none !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.15);
    transform: translateY(-1px);
}

.help-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Horarios Grid */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.horario-btn {
    padding: 12px;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.horario-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(29, 209, 161, 0.1), transparent);
    transition: left 0.5s;
}

.horario-btn:hover {
    border-color: var(--primary-color);
    background: var(--turquoise-light);
    color: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 209, 161, 0.2);
}

.horario-btn:hover::before {
    left: 100%;
}

.horario-btn.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 209, 161, 0.3);
}

.horario-btn:disabled {
    background: var(--light-gray);
    color: #999;
    cursor: not-allowed;
    border-color: var(--medium-gray);
}

/* Consultation Types */
.consultation-types {
    display: grid;
    gap: 15px;
}

.consultation-card {
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--white);
}

.consultation-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(29, 209, 161, 0.15);
    transform: translateY(-3px);
}

.consultation-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(29, 209, 161, 0.05), rgba(0, 210, 211, 0.05));
    box-shadow: 0 8px 25px rgba(29, 209, 161, 0.2);
}

.consultation-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.consultation-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.consultation-card .description {
    color: #666;
    font-size: 0.95rem;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, var(--light-gray), rgba(29, 209, 161, 0.05));
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(29, 209, 161, 0.1);
}

.summary-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Payment Section */
.payment-section {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(29, 209, 161, 0.02), rgba(0, 210, 211, 0.02));
}

.payment-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(29, 209, 161, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-color), var(--turquoise-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 209, 161, 0.4);
}

.btn-next {
    background: linear-gradient(135deg, var(--accent-color), var(--turquoise-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 210, 211, 0.3);
}

.btn-next:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--turquoise-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 211, 0.4);
}

.btn-back {
    background: var(--medium-gray);
    color: var(--dark-gray);
}

.btn-back:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
}

.btn-pay {
    background: linear-gradient(135deg, var(--warning-color), #ff9f43);
    color: var(--white);
    font-size: 1.1rem;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.3);
}

.btn-pay:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff9f43, #feca57);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 202, 87, 0.4);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Estilos para mensaje de éxito */
.success-alert {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.success-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.success-content p {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.email-notification {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.email-notification i {
    font-size: 1.2rem;
}

.next-steps {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

.next-steps h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: #555;
}

.next-steps li:last-child {
    border-bottom: none;
}

/* Responsive para mensaje de éxito */
@media (max-width: 768px) {
    .success-alert {
        flex-direction: column;
        text-align: center;
    }
    
    .success-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .email-notification {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}
.info-text {
    background: linear-gradient(135deg, var(--light-gray), rgba(29, 209, 161, 0.05));
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    line-height: 1.6;
    border-left: 4px solid var(--primary-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

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

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .appointment-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .horarios-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .horarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para confirmación de WhatsApp */
.whatsapp-confirmation {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.whatsapp-confirmation h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.whatsapp-confirmation p {
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
        padding: 18px 25px;
    }
    
    .whatsapp-confirmation {
        margin: 15px 0;
        padding: 15px;
    }
}