
@font-face {
    font-family: "Minion";
    src: url("../fonts/MinionPro-Regular.otf") format("opentype");
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype");
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    width: 100%;
    overflow-x: hidden;
    background: #fff;
    color: #111;
}


/* ==================================================
   1. HEADER
================================================== */

.hero {
    width: 100%;
    height: 180px;

    background-image: url("../img/bkg_top.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo {
    width: 450px;
}

.hero__logo img {
    width: 100%;
    display: block;
}


/* ==================================================
   2. CARRUSEL / SLIDER
================================================== */

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}


/* --------------------------------------------------
   VIEWPORT
-------------------------------------------------- */

.carousel__viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}


/* --------------------------------------------------
   TRACK
-------------------------------------------------- */

.carousel__track {
    position: relative;
    width: 100%;
    height: auto;
}


/* --------------------------------------------------
   SLIDES
-------------------------------------------------- */

.carousel__track {
    position: relative;
    width: 100%;
}


/* El primer slide determina la altura */

.carousel__slide:first-child {
    position: relative;
}


/* Todos los demás quedan superpuestos */

.carousel__slide {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    z-index: 1;

    pointer-events: none;

   transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Slide visible */

.carousel__slide.is-active {
    opacity: 1;

    z-index: 2;

    pointer-events: auto;
}


/* Imágenes del slider: siempre al ancho del contenedor */

.carousel {
    touch-action: pan-y;   /* scroll vertical normal, el swipe horizontal lo maneja el slider */
}


/* --------------------------------------------------
   FLECHAS
-------------------------------------------------- */

.carousel__arrow {
    position: absolute;

    top: 50%;
    z-index: 10;

    width: 58px;
    height: 58px;

    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;

    background: rgba(0,0,0,.12);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

@media (hover: hover) {
    .carousel__arrow:hover {
        background: rgba(255,255,255,.16);
        border-color: rgba(255,255,255,.9);

        transform: translateY(-50%) scale(1.06);
    }
}

.carousel__arrow--prev {
    left: 30px;
}

.carousel__arrow--next {
    right: 30px;
}


/* Dibujamos las flechas con CSS */

.carousel__arrow span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 11px;
    height: 11px;

    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.carousel__arrow--next span {
    transform: translate(-65%, -50%) rotate(45deg);
}

.carousel__arrow--prev span {
    transform: translate(-35%, -50%) rotate(-135deg);
}


/* --------------------------------------------------
   DOTS
-------------------------------------------------- */

.carousel__dots {
    position: absolute;

    z-index: 10;

    left: 50%;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 9px;

    transform: translateX(-50%);
}

.carousel__dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.5);

    cursor: pointer;

    transition:
        width .35s ease,
        background .35s ease,
        transform .35s ease;
}

.carousel__dot:hover {
    transform: scale(1.3);
}

.carousel__dot.is-active {
    width: 28px;
    border-radius: 10px;

    background: #fff;
}


/* ==================================================
   3. CATÁLOGO
================================================== */

.catalogo {
    width: 100%;
}


/* Últimos lanzamientos */

.ultimos-lanzamientos {
    width: 100%;
    padding: 45px 5% 35px;
}



.lanzamientos__titulo {
    display: block;
    width: 480px;
    max-width: 100%;
    margin: 0 auto 40px;
}

/*

.ultimos-lanzamientos h2 {
    font-family: "Minion", serif;
    font-size: 30px;
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
}

*/


.lanzamientos-imagen {
    width: 100%;
    margin: 0 auto;
    transform: translateX(-10px);
}

.lanzamientos-imagen img {
    display: block;
    width: 100%;
    height: auto;
}

.lanzamientos-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.producto {
    min-height: 140px;
}


/* Nuestras colecciones */

.colecciones {
    width: 100%;
    padding: 30px 5% 70px;
}

.colecciones__titulo {
    display: block;
    width: 300px;
    max-width: 80%;
    margin: 0 auto 35px;
}

.colecciones__grid {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.coleccion {
    display: block;
    text-decoration: none;
    color: #111;
    text-align: center;
}

.coleccion img {
    width: 100%;
    display: block;
}

.coleccion span {
    display: block;

    font-family: "Minion", serif;
    font-size: 24px;

    margin-top: 8px;
}


/* ==================================================
   4. VIDEO
================================================== */

.video {
    width: 100%;
}

.video__container {
    width: 100%;
    aspect-ratio: 21 / 9;
}

.video__container {
    background: #000;
}

.video__container iframe {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;
    display: block;
    border: 0;

    opacity: 0;
    transition: opacity .6s ease;
}

.video__container iframe.is-ready {
    opacity: 1;
}

/* La portada queda por encima hasta que el video esté listo */
.video__poster {
    z-index: 2;
    transition: opacity .6s ease;
}

.video__poster.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Al hacer click, el botón de play se desvanece */
.video__play {
    transition: background .3s ease, transform .3s ease, opacity .3s ease;
}

.video__poster.is-loading .video__play {
    opacity: 0;
}




.video__container {
    position: relative;
}

.video__poster {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;
    background: none;

    cursor: pointer;
}

.video__poster picture {
    display: block;
    width: 100%;
    height: 100%;
}

.video__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón de play */
.video__play {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 130px;
    height: 90px;

    border-radius: 24px;
    background: rgba(255, 255, 255, .75);

    transform: translate(-50%, -50%);
    transition: background .3s ease, transform .3s ease;
}

/* Triángulo del play */
.video__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-35%, -50%);

    border-style: solid;
    border-width: 22px 0 22px 38px;
    border-color: transparent transparent transparent #5a0f16;
}

.video__poster:hover .video__play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

/* ==================================================
   5. CONTACTO
================================================== */

.contacto {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    padding: 80px 10%;
    gap: 80px;

    text-align: center;
}

.contacto__bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
}



.contacto__bloque > img {
    height: 70px;          /* misma caja de alto para los dos: alinea los textos */
    object-fit: contain;   /* la imagen se ajusta adentro sin deformarse */
    max-width: 100%;
    max-height: none;
    display: block;
}



.contacto__titulo--mayoristas {
    width: 240px;
    display: block;
}


.contacto__bloque > img.contacto__titulo--puntos {
    width: 400px;
    max-width: 100%;
    max-height: none;
    display: block;
}


.contacto__bloque p {
    font-family: "Minion", serif;
    font-size: 22px;
    line-height: 1.15;
    margin-top: -10px;
    min-height: 62px;
}


.contacto__bloque a {
    display: block;
    margin-top: -1px;
}

.contacto__bloque a img {
    width: 70px;
    display: block;
}



/* ==================================================
   6. FOOTER
================================================== */

.footer {
    position: relative;

    min-height: 400px;

    background-image: url("../img/bkg_footer.jpg");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__contenido {
    text-align: center;
}

.footer__logo {
    width: 255px;
    max-width: 100%;
    margin-bottom: 7px;
}

.footer__datos {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 24px;
    line-height: 1.25;

    color: #fff;
}

.instagram {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.instagram svg {
    width: 24px;
    height: 24px;
}

.footer__whatsapp {
    position: absolute;

    right: 5%;
    bottom: 40px;
}

.footer__whatsapp img {
    width: 85px;
    display: block;
}


.footer__datos a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   RESPONSIVE
================================================== */

/* ---------- Tablet / mobile ---------- */

@media (max-width: 768px) {

    /* 1. Header */

    .hero {
        height: 120px;
    }

    .hero__logo {
        width: 170px;
        max-width: 60%;
    }


    /* 2. Slider (usa carrousel_resp_1/2/3.jpg vía <picture>) */

    .carousel__slide:first-child {
        height: auto;   /* el primer slide marca el alto según su imagen */
    }

    .carousel__slide picture {
        display: block;
        width: 100%;
    }

    .carousel__slide img {
        display: block;
        width: 100%;
        height: auto;
    }

    .carousel__slide:not(:first-child) picture,
    .carousel__slide:not(:first-child) img {
        height: 100%;
        object-fit: cover;
    }

    .carousel__arrow {
        width: 38px;
        height: 38px;
    }

    .carousel__arrow--prev {
        left: 12px;
    }

    .carousel__arrow--next {
        right: 12px;
    }

    .carousel__arrow span {
        width: 9px;
        height: 9px;
    }

    .carousel__dots {
        bottom: 14px;
    }


    /* 3. Catálogo */

    .ultimos-lanzamientos {
        padding: 35px 20px 25px;
    }



      .lanzamientos__titulo {
        width: 340px;
        margin-bottom: 28px;
    }

/*

    .ultimos-lanzamientos h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }


*/


    .lanzamientos-imagen {
        transform: none;   /* el desplazamiento de escritorio se cancela en mobile */
    }

    .lanzamientos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .colecciones {
        padding: 25px 20px 50px;
    }

    .colecciones__titulo {
        width: 240px;
        margin-bottom: 25px;
    }

    .colecciones__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* 4. Video (la portada en mobile es carrousel_resp_3.jpg) */

    .video__container {
        aspect-ratio: 16 / 9;
    }

    .video__play {
        width: 84px;
        height: 58px;
        border-radius: 16px;
    }

    .video__play::before {
        border-width: 14px 0 14px 24px;
    }


    /* 5. Mayoristas / puntos de venta */

    .contacto {
        grid-template-columns: 1fr;
        gap: 50px;

        padding: 50px 20px;
    }

    .contacto__bloque p {
        font-size: 20px;
        min-height: 0;
    }


    /* 6. Footer */

    .footer {
        min-height: 380px;
        padding: 40px 20px 100px;   /* deja lugar abajo para el botón de WhatsApp */
    }

    .footer__logo {
        width: 210px;
    }

    .footer__datos {
        font-size: 21px;
    }

    .footer__whatsapp {
        right: 20px;
        bottom: 20px;
    }

    .footer__whatsapp img {
        width: 62px;
    }

}


/* ---------- Mobile chico ---------- */

@media (max-width: 400px) {

    .hero__logo {
        width: 150px;
    }

    .contacto__bloque p {
        font-size: 18px;
    }

    .footer__datos {
        font-size: 19px;
    }

}


/* ==================================================
   REDUCIR ANIMACIONES
================================================== */

/*


@media (prefers-reduced-motion: reduce) {

    .carousel__slide {
        transition: opacity .3s ease;
        transform: none;
    }

    .carousel__slide.is-active {
        transform: none;
    }

}




*/

/* ==================================================
   MODAL (Puntos de venta)
================================================== */

html.modal-open {
    overflow: hidden;   /* bloquea el scroll de la página mientras el modal está abierto */
}

/* Título "Puntos de venta" como disparador */

.contacto__titulo--puntos[data-modal-open] {
    cursor: pointer;
    transition: opacity .3s ease;
}

@media (hover: hover) {
    .contacto__titulo--puntos[data-modal-open]:hover {
        opacity: .65;
    }
}

.contacto__titulo--puntos[data-modal-open]:focus-visible {
    outline: 2px solid #5a0f16;
    outline-offset: 6px;
}


/* Capa (fondo oscuro + blur) */

.modal {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;

    background: rgba(10, 10, 10, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);

    color: #111;

    opacity: 0;
    transition: opacity .35s ease;
}

.modal::backdrop {
    background: transparent;
}

.modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.modal.is-open {
    opacity: 1;
}


/* Panel */

.modal__panel {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 960px;
    min-height: 460px;
    max-height: 100%;

    overflow: hidden;

    background: #fff;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);

    transform: translateY(24px) scale(.98);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.modal.is-open .modal__panel {
    transform: none;
}

.modal__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 80px 56px 56px;
}


/* Botón cerrar (mismo lenguaje que las flechas del slider) */

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 1px solid rgba(17, 17, 17, .25);
    border-radius: 50%;
    background: #fff;

    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.modal__close::before,
.modal__close::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 18px;
    height: 1.5px;

    background: #111;

    transition: background .3s ease;
}

.modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) {
    .modal__close:hover {
        background: #111;
        border-color: #111;
        transform: rotate(90deg);
    }

    .modal__close:hover::before,
    .modal__close:hover::after {
        background: #fff;
    }
}

.modal__close:focus-visible {
    outline: 2px solid #5a0f16;
    outline-offset: 3px;
}


/* Mobile: tarjeta más angosta y más arriba */

@media (max-width: 768px) {

    .modal[open] {
        align-items: flex-start;
        padding: 72px 24px 24px;
    }

   .modal__panel {
        min-height: 460px;   /* antes 380px */
        border-radius: 14px;
    }

    .modal__body {
        padding: 38px 25px 32px;
    }

    .modal__close {
        top: 12px;
        right: 12px;

        width: 42px;
        height: 42px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .modal,
    .modal__panel {
        transition: none;
    }

}

/* ==================================================
   MODAL - Puntos de venta (contenido)
================================================== */

.puntos__heading {
    font-family: "Minion", serif;
    font-size: 32px;
    font-weight: 400;
    color: #111;
    margin: 0 0 6px;
}

.puntos__intro {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 15px;
    color: #666;
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(17, 17, 17, .1);
}

.puntos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 48px;
}

.puntos__provincia {
    break-inside: avoid;
}

.puntos__provincia-nombre {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #5a0f16;

    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #5a0f16;
}

.puntos__ciudad-bloque + .puntos__ciudad-bloque {
    margin-top: 16px;
}

.puntos__ciudad {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
}

.puntos__lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.puntos__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px;

    padding: 7px 0;
    border-bottom: 1px solid rgba(17, 17, 17, .08);

    font-family: "Roboto Condensed", sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: #111;
}

.puntos__item:last-child {
    border-bottom: none;
}

.puntos__optica {
    font-weight: 700;
}

.puntos__separador {
    margin: 0 4px;
    color: rgba(17, 17, 17, .35);
    font-weight: 400;
}

.puntos__direccion {
    color: #444;
}

/* Scroll prolijo dentro del modal */

.modal__body {
    scrollbar-width: thin;
    scrollbar-color: #5a0f16 rgba(17, 17, 17, .08);
}

.modal__body::-webkit-scrollbar {
    width: 8px;
}

.modal__body::-webkit-scrollbar-track {
    background: rgba(17, 17, 17, .05);
    border-radius: 8px;
}

.modal__body::-webkit-scrollbar-thumb {
    background-color: rgba(90, 15, 22, .55);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.modal__body::-webkit-scrollbar-thumb:hover {
    background-color: rgba(90, 15, 22, .8);
}

/* Mobile: una sola columna */

@media (max-width: 768px) {

    .puntos__heading {
        font-size: 26px;
    }

    .puntos {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}
