/* ==================================================
   VARIABLES
================================================== */

:root {

    --negro: #000000;

    --blanco: #fffef9;

    --rosa: #ff006e;

    --amarillo: #ffd600;

    --cyan: #13aec0;

    --cyan-video: #00b7c7;

    --gris: #e9e8e6;

    --beige: #ead6c4;

    --texto: #111111;

}



/* ==================================================
   RESET
================================================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    min-width: 320px;

    overflow-x: hidden;

    background: var(--blanco);

    color: var(--texto);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

}



a {

    color: inherit;

}



img {

    display: block;

    max-width: 100%;

}



/* ==================================================
   CABECERA
================================================== */

.cabecera-principal {

    min-height: 82px;

    position: relative;

    display: grid;

    /* logo · menú · ¡Crea Ahora! · modo oscuro · carrito */
    grid-template-columns:
        90px
        1fr
        auto
        auto
        70px;

    align-items: start;

    gap: 18px;

    padding: 0 3%;

    background: var(--negro);

    color: white;

}



/* LOGO PEQUEÑO */

.logo-mini {

    width: 65px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    align-self: center;

    text-decoration: none;

}



.logo-mini span {

    display: inline-block;

    font-size: 42px;

    line-height: 1;

    font-weight: 900;

    font-style: italic;

    background:
        linear-gradient(
            145deg,
            var(--amarillo),
            var(--rosa),
            var(--cyan)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}



/* NAVEGACIÓN */

.menu-principal {

    display: flex;

    justify-content: center;

    align-items: flex-start;

    gap: 3px;

}



.menu-principal a {

    min-width: 145px;

    padding: 17px 24px 21px;

    display: flex;

    justify-content: center;

    background: var(--cyan);

    color: var(--negro);

    border-bottom-left-radius: 38px;

    border-bottom-right-radius: 38px;

    border-bottom: 2px solid var(--amarillo);

    text-decoration: underline;

    font-size: 15px;

    font-weight: 500;

    transition:
        filter 0.2s ease;

}



.menu-principal a:hover {

    filter: brightness(1.08);

}



/* CREAR AHORA */

.crear-ahora {

    margin-top: 18px;

    padding: 13px 28px;

    align-self: start;

    background: var(--rosa);

    color: white;

    border-radius: 30px;

    text-decoration: none;

    white-space: nowrap;

    font-size: 15px;

}



.crear-ahora:hover {

    filter: brightness(1.07);

}



/* CARRITO */

.carrito-cabecera {

    width: 52px;

    min-height: 70px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    align-self: center;

    text-decoration: none;

}



.carrito-cabecera svg {

    width: 30px;

    height: 30px;

    fill: none;

    stroke: var(--cyan);

    stroke-width: 1.7;

}



.carrito-cantidad {

    position: absolute;

    top: 8px;

    right: 3px;

    color: white;

    font-size: 12px;

}



/* BOTÓN MENÚ MÓVIL */

.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 28px;

    cursor: pointer;

}



/* BOTÓN MODO OSCURO (lo crea tema.js) */

.tema-boton {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    align-self: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    background: transparent;

    color: var(--cyan);

    cursor: pointer;

    transition:
        border-color 0.2s ease;

}



.tema-boton:hover {

    border-color: var(--cyan);

}



.tema-boton:focus-visible {

    outline: 3px solid var(--rosa);

    outline-offset: 3px;

}



.tema-boton svg {

    width: 20px;

    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;

}



/* En claro se ve la luna (pasar a oscuro); en oscuro, el sol */

.tema-boton .tema-icono-sol,
[data-tema="oscuro"] .tema-boton .tema-icono-luna {

    display: none;

}



[data-tema="oscuro"] .tema-boton .tema-icono-sol {

    display: block;

}



/* ==================================================
   HERO
================================================== */

.hero-video {

    width: 100%;

    background: var(--negro);

}



.hero-imagen-video {

    width: 100%;

    min-height: 650px;

    background-color: var(--negro);

    background-image:
        url("imagenes/hero-principal.jpg");

    background-repeat: no-repeat;

    background-position: center;

    background-size: cover;

}



/* ==================================================
   MARQUESINA
================================================== */

.marquesina {

    width: 100%;

    overflow: hidden;

    background: var(--rosa);

    color: white;

}



.marquesina-contenido {

    width: max-content;

    display: flex;

    align-items: center;

    animation:
        mover-marquesina
        26s
        linear
        infinite;

}



.marquesina span {

    padding: 11px 30px;

    white-space: nowrap;

    font-size: 22px;

    font-weight: 900;

}



@keyframes mover-marquesina {

    from {

        transform:
            translateX(0);

    }

    to {

        transform:
            translateX(-50%);

    }

}



/* ==================================================
   PRESENTACIÓN
================================================== */

.presentacion-video {

    padding:
        80px
        7%
        70px;

    background: var(--blanco);

}



.presentacion-video p {

    max-width: 800px;

    font-size:
        clamp(
            34px,
            4.6vw,
            62px
        );

    line-height: 1.08;

    letter-spacing: -2px;

}



/* ==================================================
   BLOQUES PRINCIPALES
================================================== */

.bloques-principales {

    display: grid;

    grid-template-columns:
        1.35fr
        0.9fr;

    gap: 16px;

    padding:
        0
        6%
        90px;

}



/* BLOQUE GENERAL */

.bloque-marca {

    min-height: 470px;

    position: relative;

    overflow: hidden;

    border-radius: 12px;

    background-repeat: no-repeat;

    background-position: center;

    background-size: cover;

}



.bloque-marca::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.24) 1px,
            transparent 1px
        );

    background-size: 8px 8px;

    background-position:
        right 24px
        top 40px;

    background-repeat: no-repeat;

    opacity: 0.45;

}



.bloque-para-ti {

    background-color: var(--rosa);

    background-image:
        url("imagenes/para-ti.png");

}



.bloque-regalar {

    background-color: var(--amarillo);

    background-image:
        url("imagenes/para-regalar.png");

}



.bloque-destacar {

    grid-column:
        1 / -1;

    min-height: 500px;

    background-color:
        var(--cyan-video);

    background-image:
        url("imagenes/para-destacar.png");

}



.bloque-decoracion {

    position: absolute;

    top: 17px;

    left: 22px;

    right: 22px;

    display: flex;

    justify-content: space-between;

    font-size: 10px;

    z-index: 2;

}



.bloque-texto {

    max-width: 360px;

    position: relative;

    z-index: 3;

    padding:
        64px
        34px
        35px;

}



.bloque-texto h2 {

    margin-bottom: 7px;

    font-size:
        clamp(
            40px,
            5vw,
            70px
        );

    line-height: 0.86;

    font-weight: 900;

}



.bloque-texto p {

    font-size: 18px;

    line-height: 1.05;

}



.bloque-texto em {

    font-weight: 700;

}



.bloque-texto small {

    display: block;

    margin-top: 1px;

    font-size: 12px;

}



.boton-bloque {

    min-width: 170px;

    margin-top: 32px;

    padding: 15px 24px;

    display: inline-block;

    border-radius: 35px;

    text-align: center;

    text-decoration: none;

    color: black;

    font-size: 16px;

}



.boton-cyan {

    background: var(--cyan);

}



.boton-rosa {

    background: var(--rosa);

}



.boton-amarillo {

    background: var(--amarillo);

}



/* ==================================================
   MÁS PEDIDO
================================================== */

.mas-pedido {

    padding:
        30px
        6%
        100px;

    background:
        var(--blanco);

}



.mas-pedido-cabecera {

    margin-bottom: 35px;

    text-align: center;

}



.mas-pedido-cabecera h2 {

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    line-height: 0.9;

    font-weight: 900;

}



.mas-pedido-cabecera p {

    margin-top: 22px;

    font-size: 15px;

}



.productos-carrusel {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 22px;

}



.producto-inicio a {

    display: block;

    text-decoration: none;

}



.producto-inicio-imagen {

    width: 100%;

    aspect-ratio: 0.82;

    margin-bottom: 15px;

    border-radius: 20px;

    background-color: var(--gris);

    background-repeat: no-repeat;

    background-position: center;

    background-size: cover;

}



.producto-peluche {

    background-image:
        url("imagenes/peluche.jpg");

}



.producto-calcetines {

    background-image:
        url("imagenes/calcetines.jpg");

}



.producto-funda {

    background-image:
        url("imagenes/funda.jpg");

}



.producto-taza {

    background-image:
        url("imagenes/taza.jpg");

}



.producto-inicio h3 {

    margin-left: 8px;

    font-size: 15px;

    font-weight: 400;

}



.producto-inicio p {

    margin:
        5px
        0
        0
        8px;

    color: var(--rosa);

    font-size: 15px;

}



/* ==================================================
   PORTFOLIO
================================================== */

.portfolio-video {

    padding:
        0
        6%
        120px;

}



.portfolio-cabecera {

    display: grid;

    grid-template-columns:
        0.8fr
        1.4fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 55px;

}



.portfolio-cabecera span {

    display: block;

    margin-bottom: 5px;

    font-size: 14px;

}



.portfolio-cabecera h2 {

    font-size: 46px;

}



.portfolio-cabecera > p {

    max-width: 620px;

    font-size: 16px;

    line-height: 1.4;

}



.portfolio-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

}



.portfolio-imagen {

    aspect-ratio:
        0.75;

    background-color:
        var(--gris);

    background-repeat:
        no-repeat;

    background-position:
        center;

    background-size:
        cover;

}



.portfolio-1 {

    background-image:
        url("imagenes/portfolio-1.jpg");

}



.portfolio-2 {

    background-image:
        url("imagenes/portfolio-2.jpg");

}



.portfolio-3 {

    background-image:
        url("imagenes/portfolio-3.jpg");

}



.portfolio-4 {

    background-image:
        url("imagenes/portfolio-4.jpg");

}



/* ==================================================
   CIERRE DE MARCA
================================================== */

.cierre-marca {

    display: grid;

    grid-template-columns:
        0.68fr
        1.7fr;

    gap: 0;

    align-items: stretch;

    padding:
        0
        0
        85px;

}



/* TEXTO BEIGE */

.cierre-texto {

    padding:
        58px
        38px;

    background:
        var(--beige);

    border-top-right-radius:
        38px;

    border-bottom-right-radius:
        38px;

}



.cierre-texto h2 {

    margin-bottom: 38px;

    font-size:
        clamp(
            30px,
            3.3vw,
            48px
        );

    line-height: 1;

}



.cierre-texto p {

    margin-bottom: 15px;

    font-size: 15px;

    line-height: 1.35;

}



.cierre-texto strong {

    font-weight: 900;

}



/* PANEL PRODUCTOS */

.cierre-productos {

    overflow: hidden;

    background:
        #fbf7f8;

    border-top-left-radius:
        38px;

    border-bottom-left-radius:
        38px;

}



.cierre-imagen {

    width: 100%;

    min-height: 480px;

    background-color:
        #d90065;

    background-image:
        url("imagenes/coleccion-imprimi2.jpg");

    background-repeat:
        no-repeat;

    background-position:
        center;

    background-size:
        cover;

}



.cierre-categorias {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    gap: 15px;

    padding:
        22px
        32px
        17px;

    text-align: center;

}



.cierre-categorias > div {

    display: flex;

    flex-direction: column;

    align-items: center;

}



.icono-categoria {

    min-height: 40px;

    margin-bottom: 8px;

    color: var(--rosa);

    font-size: 38px;

}



.cierre-categorias strong {

    margin-bottom: 5px;

    font-size: 15px;

}



.cierre-categorias p {

    font-size: 12px;

    line-height: 1.3;

}



.cierre-frase {

    padding:
        5px
        20px
        24px;

    text-align: center;

    font-size: 16px;

}



.cierre-frase > strong {

    display: block;

    margin-bottom: 4px;

}



.cierre-frase span {

    color: var(--rosa);

    font-weight: 900;

}



/* ==================================================
   FOOTER
================================================== */

.footer-video {

    display: grid;

    grid-template-columns:
        170px
        1fr
        170px;

    align-items: end;

    gap: 35px;

    padding:
        20px
        5%
        18px;

    background:
        var(--blanco);

}



.footer-sello {

    width: 120px;

    height: 120px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        2px solid
        var(--beige);

    border-radius: 50%;

    color: var(--rosa);

    font-weight: 900;

    transform:
        rotate(-8deg);

}



.footer-contacto {

    text-align: center;

}



.footer-contacto p {

    font-size: 12px;

    line-height: 1.5;

}



.footer-redes {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

}



.footer-redes a {

    width: 25px;

    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        var(--negro);

    color:
        white;

    text-decoration:
        none;

    font-size:
        12px;

}



.footer-redes a:nth-child(1) {

    background:
        #1877f2;

}



.footer-redes a:nth-child(2) {

    background:
        var(--rosa);

}



.footer-linea {

    grid-column:
        1 / -1;

    height: 1px;

    margin-top: 10px;

    background:
        var(--cyan);

}



.footer-legal {

    grid-column:
        1 / -1;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap:
        7px
        20px;

    padding-top: 13px;

}



.footer-legal a {

    color: #666666;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-decoration: none;

    transition:
        color .15s ease;

}



.footer-legal a:hover,
.footer-legal a:focus-visible {

    color: var(--rosa);

    text-decoration: underline;

}



.footer-copyright {

    grid-column:
        1 / -1;

    padding-top: 7px;

    text-align: center;

    color:
        #666666;

    font-size:
        9px;

}



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

/*
Entre 901 y 1400 px los apartados del menú no caben con
su ancho mínimo de 145 px (más el botón de modo oscuro):
la cabecera se desbordaba y el carrito quedaba fuera de
la pantalla. Los compactamos en ese tramo sin cambiar
el diseño.
*/
@media (min-width: 901px) and (max-width: 1400px) {

    .cabecera-principal {

        gap: 12px;

    }


    .menu-principal a {

        min-width: 0;

        padding:
            17px
            clamp(6px, calc(2.8vw - 18px), 24px)
            21px;

        font-size: 13px;

    }


    .crear-ahora {

        padding: 13px 20px;

        font-size: 14px;

    }

}



@media (max-width: 900px) {


    /* HEADER */

    .cabecera-principal {

        min-height: 75px;

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

        align-items: center;

        padding:
            8px
            18px;

    }


    .logo-mini {

        width: 45px;

        height: 50px;

    }


    .logo-mini span {

        font-size:
            34px;

    }


    .menu-toggle {

        display:
            block;

    }


    .menu-principal {

        display:
            none;

        grid-column:
            1 / -1;

        width:
            100%;

        padding:
            10px
            0
            15px;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            8px;

    }


    .menu-principal.menu-abierto {

        display:
            flex;

    }


    .menu-principal a {

        width:
            100%;

        min-width:
            0;

        padding:
            13px
            18px;

        border-radius:
            30px;

        text-decoration:
            none;

    }


    .crear-ahora {

        margin:
            0
            0
            0
            auto;

        padding:
            11px
            17px;

        font-size:
            13px;

    }


    .carrito-cabecera {

        width:
            42px;

        min-height:
            50px;

    }



    /* HERO */

    .hero-imagen-video {

        min-height:
            460px;

    }



    /* PRESENTACIÓN */

    .presentacion-video {

        padding:
            55px
            22px;

    }


    .presentacion-video p {

        font-size:
            clamp(
                30px,
                8vw,
                45px
            );

        letter-spacing:
            -1px;

    }



    /* BLOQUES */

    .bloques-principales {

        grid-template-columns:
            1fr;

        padding:
            0
            18px
            65px;

    }


    .bloque-destacar {

        grid-column:
            auto;

    }


    .bloque-marca,
    .bloque-destacar {

        min-height:
            430px;

    }


    .bloque-texto {

        padding:
            60px
            25px
            30px;

    }



    /* PRODUCTOS */

    .mas-pedido {

        padding:
            25px
            18px
            70px;

    }


    .productos-carrusel {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }



    /* PORTFOLIO */

    .portfolio-video {

        padding:
            0
            18px
            80px;

    }


    .portfolio-cabecera {

        grid-template-columns:
            1fr;

        gap:
            25px;

    }


    .portfolio-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }



    /* CIERRE */

    .cierre-marca {

        grid-template-columns:
            1fr;

        gap:
            18px;

        padding:
            0
            18px
            60px;

    }


    .cierre-texto {

        border-radius:
            30px;

    }


    .cierre-productos {

        border-radius:
            30px;

    }


    .cierre-imagen {

        min-height:
            400px;

    }



    /* FOOTER */

    .footer-video {

        grid-template-columns:
            1fr;

        justify-items:
            center;

        text-align:
            center;

    }


    .footer-redes {

        justify-content:
            center;

    }


}



@media (max-width: 550px) {


    .cabecera-principal {

        gap: 10px;

    }


    .tema-boton {

        width: 34px;

        height: 34px;

    }


    .crear-ahora {

        font-size:
            12px;

    }


    .hero-imagen-video {

        min-height:
            360px;

        background-size:
            contain;

    }


    .marquesina span {

        padding:
            9px
            20px;

        font-size:
            16px;

    }


    .bloque-marca,
    .bloque-destacar {

        min-height:
            390px;

    }


    .bloque-texto h2 {

        font-size:
            45px;

    }


    .productos-carrusel {

        grid-template-columns:
            1fr;

    }


    .portfolio-grid {

        grid-template-columns:
            1fr;

    }


    .cierre-categorias {

        grid-template-columns:
            1fr
            1fr;

    }


    .cierre-imagen {

        min-height:
            310px;

    }


}

/* ==================================================
   BOTÓN FLOTANTE DE WHATSAPP
================================================== */

.whatsapp-flotante {

    position: fixed;

    right: 20px;

    bottom: 20px;

    z-index: 860;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        12px
        18px
        12px
        14px;

    background: #25d366;

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.22);

    transition:
        background .15s ease,
        transform .18s ease,
        bottom .2s ease;

}


.whatsapp-flotante:hover {

    background: #128c7e;

    transform: translateY(-2px);

}


.whatsapp-flotante svg {

    width: 26px;

    height: 26px;

    flex: none;

    fill: currentColor;

}


.whatsapp-flotante-texto {

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.06em;

}


/*
Cuando hay un aviso o una barra fija abajo, el botón
sube para no taparlos.
*/
.whatsapp-apartado {

    bottom: 96px;

}


@media (max-width: 700px) {

    .whatsapp-flotante {

        right: 14px;

        bottom: 14px;

        padding: 13px;

    }


    /*
    En móvil solo el icono: ocupa menos y no tapa
    contenido ni botones.
    */
    .whatsapp-flotante-texto {

        display: none;

    }


    .whatsapp-apartado {

        bottom: 82px;

    }

}


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

    .whatsapp-flotante {

        transition: none;

    }


    .whatsapp-flotante:hover {

        transform: none;

    }

}


@media print {

    .whatsapp-flotante {

        display: none;

    }

}
