/**
 * Quote Wizard - Estilos
 * Formulario de cotización en 2 pasos con carrusel visual
 *
 * @version 1.0.0
 */

/* Contenedor principal */
.quote-wizard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Pasos */
.wizard-step-1,
.wizard-step-2 {
    animation: fadeIn 0.3s ease;
}

.wizard-step-2 {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PASO 1: SELECTOR Y CARRUSEL ===== */

/* Selector de proyecto */
.project-selector {
    margin-bottom: 40px;
    text-align: center;
}

.project-selector.hidden {
    display: none;
}

.project-selector-label {
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.project-select {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    padding-right: 45px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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 15px center;
    background-size: 20px;
}

.project-select:focus {
    outline: none;
    border-color: #ffa500;
}

/* Wrapper de carruseles */
.carousels-wrapper {
    margin-top: 40px;
}

.carousel-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Carrusel */
.carousel {
    position: relative;
    min-height: 500px;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Contenido del slide */
.slide-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Imagen de la planta */
.slide-image {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.slide-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Información */
.slide-info {
    padding: 20px 0;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
}

.slide-typology {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 40px 0;
    color: #666;
}

/* Botón cotizar */
.btn-quote {
    background-color: #ffbd59;
    color: #222;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 189, 89, 0.3);
}

.btn-quote:hover {
    background-color: #ffa500;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 165, 0, 0.4);
}

.btn-quote:active {
    transform: translateY(0);
}

/* Navegación del carrusel */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.nav-btn:hover {
    border-color: #ffa500;
    background: #ffbd59;
    color: #222;
}

.nav-counter {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    min-width: 60px;
    text-align: center;
}

/* ===== PASO 2: FORMULARIO ===== */

.wizard-step-2 .step-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-step-2 .step-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.wizard-step-2 .step-subtitle {
    font-size: 16px;
    color: #666;
}

.btn-back {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: #999;
    color: #333;
}

/* Responsive */
@media (max-width: 968px) {
    .slide-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-typology {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .carousel-container {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .quote-wizard {
        padding: 20px 15px;
    }

    .project-selector-label {
        font-size: 20px;
    }

    .project-select {
        font-size: 16px;
        padding: 12px 15px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-typology {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .btn-quote {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .carousel-nav {
        gap: 20px;
        margin-top: 30px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .nav-counter {
        font-size: 16px;
    }
}
