/* ========================================
   CONFIGURACIÓN GENERAL
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f1eb;
    color: #222;
}


/* ========================================
   PORTADA
======================================== */

.portada {
    min-height: 100vh;

    background:
        linear-gradient(
            90deg,
            rgba(18, 18, 18, 0.98) 0%,
            rgba(18, 18, 18, 0.88) 35%,
            rgba(18, 18, 18, 0.40) 65%,
            rgba(18, 18, 18, 0.15) 100%
        ),
        url("imagenes/portada.jpg.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}


/* ========================================
   MENÚ
======================================== */

.menu {
    width: 90%;
    max-width: 1200px;

    margin: auto;
    padding: 28px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo span {
    color: #c6a66b;
}

.enlaces {
    display: flex;
    gap: 32px;
}

.enlaces a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}


/* ========================================
   CONTENIDO DE PORTADA
======================================== */

.contenido-portada {
    width: 90%;
    max-width: 1200px;

    margin: auto;
    padding-top: 130px;
}

.etiqueta {
    color: #c6a66b;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;

    margin-bottom: 20px;
}

h1 {
    font-size: 58px;
    line-height: 1.1;

    max-width: 750px;
}

.descripcion {
    max-width: 550px;

    margin-top: 25px;
    margin-bottom: 38px;

    color: #d4d4d4;

    font-size: 18px;
    line-height: 1.6;
}

.boton {
    display: inline-block;

    padding: 15px 28px;

    background-color: #c6a66b;
    color: #181818;

    text-decoration: none;
    font-weight: bold;

    border-radius: 4px;
}


/* ========================================
   CATÁLOGO
======================================== */

.catalogo {
    background-color: #f4f1eb;

    padding: 90px 5%;

    text-align: center;
}

.titulo-seccion {
    max-width: 750px;

    margin: 0 auto 45px;
}

.subtitulo-seccion {
    color: #a98548;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;

    margin-bottom: 15px;
}

.titulo-seccion h2 {
    color: #222222;

    font-size: 38px;

    margin-bottom: 18px;
}

.texto-seccion {
    color: #666666;

    font-size: 17px;
    line-height: 1.6;
}


/* ========================================
   BOTONES DE CATEGORÍAS
======================================== */

.categorias {
    display: flex;
    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}

.categorias button {
    background-color: transparent;

    border: 1px solid #b99a61;

    color: #292929;

    padding: 13px 25px;

    border-radius: 30px;

    font-size: 15px;

    cursor: pointer;

    transition: 0.3s;
}

.categorias button:hover {
    background-color: #c6a66b;
    color: #181818;
}

.categorias button.activo {
    background-color: #c6a66b;
    color: #181818;
}


/* ========================================
   GRUPOS DEL CATÁLOGO
======================================== */

.grupo-colores {
    max-width: 1200px;

    margin: 70px auto 0;
}

.grupo-colores h3 {
    font-size: 28px;

    color: #222;

    margin-bottom: 30px;
}

.precio-categoria {
    color: #777;

    margin-bottom: 30px;
}

.grupo-categoria {
    display: none;
}

.grupo-categoria.activo {
    display: block;
}


/* ========================================
   REJILLA DE COLORES
======================================== */

.rejilla-colores {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.tarjeta-color {
    background-color: white;

    border-radius: 10px;

    overflow: hidden;

    text-align: left;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);

    transition: 0.3s;

    cursor: pointer;
}

.tarjeta-color:hover {
    transform: translateY(-5px);
}

.tarjeta-color.seleccionada {
    outline: 3px solid #c6a66b;

    transform: translateY(-5px);
}

.tarjeta-color img {
    width: 100%;
    height: 260px;

    object-fit: cover;

    display: block;
}

.tarjeta-color h4 {
    font-size: 18px;

    margin: 18px 18px 5px;
}

.tarjeta-color p {
    color: #9b7b43;

    font-size: 14px;

    margin: 0 18px 20px;
}


/* ========================================
   FONDO DE LA VENTANA DE COTIZACIÓN
======================================== */

.modal-cotizacion {
    display: none;

    position: fixed;

    inset: 0;

    background-color:
        rgba(0, 0, 0, 0.70);

    z-index: 1000;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal-cotizacion.activo {
    display: flex;
}


/* ========================================
   VENTANA DE COTIZACIÓN
======================================== */

.contenido-modal {
    position: relative;

    width: 100%;
    max-width: 900px;

    height: 600px;
    max-height: 90vh;

    background-color: #f4f1eb;

    border-radius: 12px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1.15fr 1fr;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}


/* La imagen se usa para obtener la textura,
   pero no se muestra como fotografía grande */

#imagenCotizacion {
    display: none;
}


/* ========================================
   BOTÓN CERRAR
======================================== */

.cerrar-modal {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background-color: white;

    color: #222;

    font-size: 27px;

    cursor: pointer;

    z-index: 10;
}


/* ========================================
   LADO IZQUIERDO:
   SELECCIÓN DE MODELO
======================================== */

.selector-modelo {
    padding: 30px 22px;

    margin: 0;

    background-color: #f4f1eb;

    overflow-y: auto;
}

.selector-modelo h3 {
    font-size: 17px;

    text-align: left;

    margin-bottom: 18px;

    padding-right: 40px;
}


/* ========================================
   REJILLA DE MODELOS
======================================== */

.modelos-cubierta {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    align-items: start;
}


/* ========================================
   TARJETA DE CADA MODELO
======================================== */

.modelo-opcion {
    width: 100%;
    height: 135px;

    padding: 8px;

    border:
        1px solid #d5d0c7;

    border-radius: 8px;

    background-color: #ffffff;

    display: flex;

    flex-direction: column;

    justify-content: center;

    cursor: pointer;

    color: #222;

    transition: 0.2s;
}

.modelo-opcion:hover {
    border-color: #c6a66b;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


/* ========================================
   DIBUJO DE LOS MODELOS
======================================== */

.dibujo-modelo {
    width: 100%;
    height: 65px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 6px;
}

.dibujo-modelo::before {
    content: "";

    position: absolute;

    width: 75%;
    height: 34px;

    top: 8px;
    left: 12%;

    background:
        linear-gradient(
            135deg,
            #e4e0d8,
            #bcb6aa
        );

    border:
        1px solid #9d978c;

    transform:
        skewX(-18deg);

    box-shadow:
        0 5px 7px rgba(0, 0, 0, 0.16);
}

.dibujo-modelo::after {
    content: "";

    position: absolute;

    width: 73%;
    height: 13px;

    top: 37px;
    left: 13%;

    background: #9e988d;

    border:
        1px solid #888278;

    transform:
        skewX(-18deg);
}


/* ========================================
   RADIO DEL MODELO
======================================== */

.modelo-opcion input[type="radio"] {
    accent-color: #b58a43;

    cursor: pointer;
}

.modelo-opcion:has(input:checked) {
    border:
        2px solid #b58a43;

    background-color:
        #fffaf1;

    box-shadow:
        0 3px 14px rgba(181, 138, 67, 0.20);
}

.eleccion-modelo {
    display: flex;

    align-items: flex-start;

    gap: 7px;

    font-size: 11px;

    line-height: 1.25;
}

.eleccion-modelo input {
    margin-top: 1px;

    flex: 0 0 auto;
}

.eleccion-modelo span {
    text-align: left;
}


/* ========================================
   FOTOGRAFÍAS REALES DE LOS MODELOS
======================================== */

.foto-modelo {
    width: 100%;
    height: 78px;

    object-fit: contain;

    display: block;

    margin-bottom: 6px;

    border-radius: 5px;

    background-color: #ffffff;
}

.modelo-opcion {
    height: 150px;
}

.modelo-opcion .foto-modelo {
    flex: 0 0 78px;
}


/* ========================================
   SELECTOR DE CANTIDAD DE LADOS
======================================== */

.selector-cantidad-lados {
    width: 100%;

    margin-top: 8px;

    padding: 10px;

    border:
        1px solid #d8c6a4;

    border-radius: 7px;

    background:
        #fffaf1;
}

.selector-cantidad-lados p {
    font-size: 11px;

    font-weight: bold;

    margin-bottom: 7px;

    color: #333;

    text-align: left;
}

.opciones-lados {
    display: flex;

    gap: 5px;

    flex-wrap: wrap;
}

.opciones-lados label {
    display: flex;

    align-items: center;

    gap: 4px;

    padding: 5px 7px;

    border:
        1px solid #d6d0c7;

    border-radius: 5px;

    background:
        #ffffff;

    cursor: pointer;

    font-size: 10px;
}

.opciones-lados label:has(input:checked) {
    border-color:
        #b58a43;

    background:
        #f7ead1;
}

.opciones-lados input {
    accent-color:
        #b58a43;
}


/* ========================================
   LADO DERECHO:
   INFORMACIÓN DE COTIZACIÓN
======================================== */

.info-cotizacion {
    padding: 35px;

    color: #222;

    background-color: #ffffff;

    overflow-y: auto;
}

.info-cotizacion .subtitulo-seccion {
    text-align: left;

    margin-bottom: 8px;
}

.info-cotizacion h2 {
    font-size: 27px;

    margin-bottom: 25px;
}


/* ========================================
   CAMPOS DEL MODAL
======================================== */

.campo-modal {
    margin-bottom: 20px;
}

.campo-modal label {
    display: block;

    font-size: 14px;

    font-weight: bold;

    margin-bottom: 8px;

    color: #333;
}


/* ========================================
   ENTRADAS DE MEDIDAS
======================================== */

.entrada-medida {
    display: flex;

    align-items: center;

    border:
        1px solid #cccccc;

    border-radius: 6px;

    background:
        #ffffff;

    overflow: hidden;
}

.entrada-medida input {
    width: 100%;

    border: none;

    outline: none;

    padding: 13px;

    font-size: 16px;

    color: #222;

    background:
        transparent;
}

.entrada-medida span {
    padding:
        0 13px;

    color:
        #777;

    font-size:
        13px;
}


/* ========================================
   SELECT DE EXTRAS
======================================== */

.campo-modal select {
    width: 100%;

    padding: 13px;

    border:
        1px solid #cccccc;

    border-radius: 6px;

    background:
        #ffffff;

    color:
        #222;

    font-size:
        15px;

    outline:
        none;

    cursor:
        pointer;
}

.campo-modal select:focus,
.entrada-medida:focus-within {
    border-color:
        #b58a43;
}


/* ========================================
   BOTÓN CALCULAR
======================================== */

.boton-calcular {
    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 6px;

    background-color:
        #c6a66b;

    color:
        #181818;

    font-size:
        16px;

    font-weight:
        bold;

    cursor:
        pointer;

    transition:
        0.2s;
}

.boton-calcular:hover {
    background-color:
        #b89558;
}


/* ========================================
   RESULTADO
======================================== */

.resultado-cotizacion {
    margin-top: 20px;

    padding: 17px;

    background:
        #f4f1eb;

    border-radius:
        7px;

    text-align:
        center;
}

.resultado-cotizacion p {
    font-size:
        13px;

    color:
        #777;

    margin-bottom:
        5px;
}

.resultado-cotizacion h2 {
    font-size:
        28px;

    color:
        #222;

    margin:
        0;
}

.resultado-cotizacion strong {
    font-size:
        28px;

    color:
        #222;
}


/* ========================================
   NOTA DE LA COTIZACIÓN
======================================== */

.nota-cotizacion {
    margin-top:
        16px;

    padding-top:
        15px;

    border-top:
        1px solid #e5e0d8;
}

.nota-cotizacion p {
    color:
        #777;

    font-size:
        12px;

    line-height:
        1.5;
}


/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 900px) {

    .contenido-modal {
        max-width:
            760px;

        grid-template-columns:
            1fr 1fr;
    }

    .modelo-opcion {
        height:
            145px;
    }

    .foto-modelo {
        height:
            72px;
    }

    .selector-modelo {
        padding:
            25px 18px;
    }

    .info-cotizacion {
        padding:
            30px 25px;
    }

}


/* ========================================
   RESPONSIVE CELULAR
======================================== */

@media (max-width: 700px) {

    .menu {
        flex-direction:
            column;

        gap:
            20px;
    }

    .enlaces {
        gap:
            18px;

        flex-wrap:
            wrap;

        justify-content:
            center;
    }

    .contenido-portada {
        padding-top:
            90px;
    }

    h1 {
        font-size:
            42px;
    }

    .rejilla-colores {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contenido-modal {
        display:
            block;

        width:
            95%;

        height:
            90vh;

        overflow-y:
            auto;
    }

    .selector-modelo {
        overflow:
            visible;
    }

    .info-cotizacion {
        overflow:
            visible;
    }

    .modelos-cubierta {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .catalogo {
        padding:
            65px 4%;
    }

    .titulo-seccion h2 {
        font-size:
            30px;
    }

    .rejilla-colores {
        grid-template-columns:
            1fr;
    }

    .tarjeta-color img {
        height:
            240px;
    }

    .contenido-modal {
        width:
            100%;

        max-height:
            94vh;
    }

    .selector-modelo {
        padding:
            25px 15px;
    }

    .info-cotizacion {
        padding:
            28px 18px;
    }

    .modelos-cubierta {
        grid-template-columns:
            1fr 1fr;

        gap:
            8px;
    }

    .modelo-opcion {
        height:
            140px;

        padding:
            7px;
    }

    .foto-modelo {
        height:
            70px;
    }

    .cerrar-modal {
        top:
            8px;

        right:
            8px;
    }

}


/* ========================================
   AJUSTE DE ALTURA DE TARJETAS
======================================== */

.contenido-modal .modelo-opcion {
    height:
        150px;

    min-height:
        150px;
}


/* La tarjeta que contiene el selector
   de 2, 3 o 4 lados puede crecer */

.contenido-modal .modelo-opcion:has(#selectorCantidadLados) {
    height:
        auto;

    min-height:
        205px;

    justify-content:
        flex-start;
}

.contenido-modal
.modelo-opcion:has(#selectorCantidadLados)
.foto-modelo {
    flex:
        0 0 78px;
}

.contenido-modal
.modelo-opcion:has(#selectorCantidadLados)
.eleccion-modelo {
    flex:
        0 0 auto;
}


/* ========================================
   SELECTOR DE LADOS DENTRO DE LA TARJETA
======================================== */

.contenido-modal #selectorCantidadLados {
    width:
        100%;

    margin-top:
        8px;

    padding:
        8px 6px;

    border:
        1px solid #d8c6a4;

    border-radius:
        7px;

    background:
        #fffaf1;

    flex:
        0 0 auto;
}

.contenido-modal #selectorCantidadLados p {
    margin:
        0 0 6px;

    font-size:
        10px;

    font-weight:
        bold;

    line-height:
        1.2;

    color:
        #333;

    text-align:
        left;
}

.contenido-modal
#selectorCantidadLados
.opciones-lados {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-start;

    gap:
        5px;

    flex-wrap:
        wrap;
}

.contenido-modal
#selectorCantidadLados
.opciones-lados label {
    display:
        flex;

    align-items:
        center;

    gap:
        3px;

    width:
        auto;

    margin:
        0;

    padding:
        4px 6px;

    border:
        1px solid #d6d0c7;

    border-radius:
        5px;

    background:
        #ffffff;

    font-size:
        9px;

    line-height:
        1;

    white-space:
        nowrap;

    cursor:
        pointer;
}

.contenido-modal
#selectorCantidadLados
.opciones-lados label:has(input:checked) {
    border-color:
        #b58a43;

    background:
        #f7ead1;
}

.contenido-modal
#selectorCantidadLados
.opciones-lados input {
    width:
        14px;

    height:
        14px;

    margin:
        0;

    flex:
        0 0 14px;

    accent-color:
        #b58a43;

    cursor:
        pointer;
}


/* Asegura que las otras tarjetas de la misma
   fila no se estiren junto con la mesa seleccionada */

.modelos-cubierta {
    align-items:
        start;
}


/* ========================================
   PASO 2:
   DATOS DEL CLIENTE Y WHATSAPP
======================================== */


/* BOTÓN SIGUIENTE */

.boton-siguiente {
    width: 100%;

    margin-top: 18px;

    padding: 15px;

    border: none;

    border-radius: 6px;

    background-color: #222222;

    color: #ffffff;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.boton-siguiente:hover {
    background-color: #3a3a3a;
}


/* TEXTO DEL SEGUNDO PASO */

.texto-paso-datos {
    margin-top: -15px;

    margin-bottom: 22px;

    color: #666666;

    font-size: 14px;

    line-height: 1.5;
}


/* ========================================
   RESUMEN DE LA COTIZACIÓN
======================================== */

.resumen-whatsapp {
    margin-bottom: 24px;

    padding: 15px;

    background-color: #ffffff;

    border: 1px solid #ded8ce;

    border-radius: 8px;

    color: #444444;

    font-size: 13px;

    line-height: 1.6;
}


/* ========================================
   DATOS DEL CLIENTE
======================================== */

.entrada-cliente {
    width: 100%;

    padding: 14px;

    border: 1px solid #cccccc;

    border-radius: 6px;

    background-color: #ffffff;

    color: #222222;

    font-size: 16px;

    outline: none;
}

.entrada-cliente:focus {
    border-color: #b58a43;
}


/* ========================================
   MENSAJE DE ERROR
======================================== */

.mensaje-error-cliente {
    min-height: 18px;

    margin-top: -10px;

    margin-bottom: 14px;

    color: #a33a32;

    font-size: 13px;

    line-height: 1.4;
}


/* ========================================
   BOTONES DEL SEGUNDO PASO
======================================== */

.acciones-paso-datos {
    display: grid;

    grid-template-columns:
        0.7fr 1.3fr;

    gap: 10px;
}

.boton-volver,
.boton-whatsapp {
    min-height: 48px;

    padding: 12px 14px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}


/* BOTÓN VOLVER */

.boton-volver {
    border: 1px solid #b99a61;

    background-color: transparent;

    color: #292929;
}

.boton-volver:hover {
    background-color: #eee7dc;
}


/* BOTÓN WHATSAPP */

.boton-whatsapp {
    border: none;

    background-color: #1f8f4e;

    color: #ffffff;
}

.boton-whatsapp:hover {
    filter: brightness(0.94);
}


/* ========================================
   NOTA DE WHATSAPP
======================================== */

.nota-whatsapp {
    margin-top: 16px;

    color: #777777;

    font-size: 12px;

    line-height: 1.45;
}


/* ========================================
   PASO 2 EN CELULAR
======================================== */

@media (max-width: 500px) {

    .acciones-paso-datos {
        grid-template-columns:
            1fr;
    }

}


/* ========================================
   SECCIÓN CONTACTO
======================================== */

.seccion-contacto {
    padding: 100px 5%;

    background-color: #181818;

    color: #ffffff;

    text-align: center;
}

.contenido-contacto {
    width: 100%;

    max-width: 720px;

    margin: 0 auto;
}

.subtitulo-contacto {
    margin-bottom: 15px;

    color: #c6a66b;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;
}

.contenido-contacto h2 {
    margin-bottom: 20px;

    color: #ffffff;

    font-size: 38px;

    line-height: 1.2;
}

.descripcion-contacto {
    max-width: 620px;

    margin: 0 auto 30px;

    color: #cfcfcf;

    font-size: 16px;

    line-height: 1.7;
}


/* ========================================
   NÚMERO DE WHATSAPP
======================================== */

.numero-contacto {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    margin-bottom: 25px;
}

.numero-contacto span {
    color: #aaaaaa;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.numero-contacto strong {
    color: #ffffff;

    font-size: 21px;
}


/* ========================================
   BOTÓN WHATSAPP DE CONTACTO
======================================== */

.boton-contacto-whatsapp {
    display: inline-block;

    padding: 15px 28px;

    border-radius: 6px;

    background-color: #1f8f4e;

    color: #ffffff;

    font-size: 15px;

    font-weight: bold;

    text-decoration: none;

    transition: 0.2s;
}

.boton-contacto-whatsapp:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);
}


/* ========================================
   DETALLE FINAL
======================================== */

.detalle-contacto {
    margin-top: 28px;

    color: #999999;

    font-size: 12px;

    letter-spacing: 0.5px;
}


/* ========================================
   CONTACTO EN CELULAR
======================================== */

@media (max-width: 500px) {

    .seccion-contacto {
        padding: 75px 20px;
    }

    .contenido-contacto h2 {
        font-size: 30px;
    }

    .descripcion-contacto {
        font-size: 15px;
    }

    .boton-contacto-whatsapp {
        width: 100%;

        max-width: 320px;
    }

}