/* Contenedor principal del configurador */
.configurador-container {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e3f2fd 100%);
}

/* Header del configurador */
.configurador-header {
    text-align: center;
    margin-bottom: 3rem;
}

.configurador-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.configurador-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Barra de progreso */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Contenedor de pasos */
.step {
    display: none;
    animation: fadeInUp 0.5s ease;
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-title {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.step-instruction {
    background: var(--light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
}

/* Grid de opciones */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.option-card {
    position: relative;
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.option-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(143,213,255,0.05) 0%, rgba(0,168,232,0.05) 100%);
}

.option-header {
    text-align: center;
    margin-bottom: 1rem;
}

.option-icon {
    font-size: 3rem;
    display: inline-block;
}

.option-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.option-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.option-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: var(--light);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Botón de información */
.info-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.info-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Navegación */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: white;
}

/* Grid de ubicaciones */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-btn {
    padding: 1rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--dark);
}

.location-btn:hover {
    border-color: var(--primary);
    background: var(--light);
}

.location-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Campos de fecha y acceso */
.date-access-section {
    margin-bottom: 2rem;
}

.date-access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.date-input, .access-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.date-input:focus, .access-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(143, 213, 255, 0.1);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Opciones de reforma */
.reform-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reform-option {
    position: relative;
    padding: 1.5rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.reform-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.reform-option.selected {
    border-color: var(--primary);
    background: var(--light);
}

.reform-info-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Vista previa de piscina */
.pool-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    min-height: 250px;
}

.pool-shape {
    background: linear-gradient(135deg, #87CEEB 0%, #5BA0E6 100%);
    border: 3px solid var(--primary);
    transition: all 0.3s;
}

.pool-shape.rectangular {
    border-radius: 10px;
}

.pool-shape.circular {
    border-radius: 50%;
}

.pool-shape.ovalada {
    border-radius: 50%;
}

.pool-shape.romana {
    border-radius: 10px 10px 50% 50%;
}

.pool-shape.riñon {
    border-radius: 60% 40% 40% 60%;
}

.pool-shape.ele {
    clip-path: polygon(0 0, 60% 0, 60% 40%, 100% 40%, 100% 100%, 0 100%);
}

/* Inputs de dimensiones */
.size-input {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(143, 213, 255, 0.1);
}

/* Lista de características */
.features-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.feature-item.selected {
    border-color: var(--primary);
    background: var(--light);
}

.feature-checkbox {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.feature-content {
    flex: 1;
}

.feature-info-btn {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Resumen de presupuesto */
.budget-summary {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.budget-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary);
}

/* Formulario de contacto */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Presupuesto flotante */
.floating-budget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.floating-budget.show {
    transform: translateY(0);
}

.floating-budget-title {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.floating-budget-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Modal mejorado */
.modal-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Carrusel */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-placeholder {
    min-width: 100%;
    text-align: center;
    color: white;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: var(--radius);
}

.carousel-nav:hover {
    background: rgba(255,255,255,0.3);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensajes */
.success-message,
.error-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease;
}

.success-message {
    background: var(--success);
    color: white;
}

.error-message {
    background: var(--danger);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .configurador-header h1 {
        font-size: 1.75rem;
    }
    
    .step {
        padding: 2rem 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .date-access-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .floating-budget {
        left: 50%;
        transform: translateX(-50%) translateY(150%);
    }
    
    .floating-budget.show {
        transform: translateX(-50%) translateY(0);
    }
}