:root {
    --morado-oscuro: #28064d;
    --morado-vivo: #6a0dad;
    --morado-promo: #7e009e;
    --amarillo: #ffd600;
    --magenta: #ff1e8a;
    --cian: #00d2ff;
    --verde: #5cd629;
    --negro: #111111;
    --blanco: #ffffff;
    --borde-comic: 3.5px solid #111111;
    --sombra-comic: 4px 4px 0px #111111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fredoka', sans-serif;
    background-color: #f8f6fc;
    color: var(--negro);
    overflow-x: hidden;
}

.contenedor {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BARRA PROMO */
.barra-promo {
    background: var(--morado-promo);
    color: var(--blanco);
    text-align: center;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

    .barra-promo span {
        color: var(--amarillo);
    }

/* CABECERA */
.cabecera {
    background: var(--morado-oscuro);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--borde-comic);
}

.cabecera-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.marca-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
}

/* LOGO MÁS GRANDE QUE BAJA Y SOBRESALE EN EL BANNER */
.logo-img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    margin-top: -16px;
    margin-bottom: -48px;
    position: relative;
    z-index: 120;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.marca-link:hover .logo-img {
    transform: rotate(-6deg) scale(1.06);
}

.logo-texto {
    font-family: 'Titan One', cursive;
    font-size: 2rem;
    color: var(--blanco);
    text-shadow: 2px 2px 0 var(--negro);
}

.buscador {
    flex: 1;
    max-width: 340px;
    display: flex;
    background: var(--blanco);
    border-radius: 999px;
    border: 2.5px solid var(--negro);
    overflow: hidden;
}

    .buscador input {
        border: none;
        padding: 9px 16px;
        width: 100%;
        font-family: inherit;
        font-size: 0.95rem;
        outline: none;
    }

    .buscador button {
        border: none;
        background: transparent;
        padding: 0 14px;
        cursor: pointer;
        font-size: 1.1rem;
    }

.menu-principal {
    display: flex;
    gap: 18px;
    align-items: center;
}

    .menu-principal a {
        color: var(--blanco);
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: color 0.15s;
    }

        .menu-principal a:hover,
        .menu-principal .link-destacado {
            color: var(--amarillo);
        }

.btn-carrito {
    background: var(--amarillo);
    border: 3px solid var(--negro);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--negro);
    transition: transform 0.15s;
}

    .btn-carrito:hover {
        transform: translateY(-2px);
    }

/* PORTADA HERO: LETRAS GRANDES CENTRADAS A LA IZQUIERDA + 8 BRILLITOS */
.hero {
    position: relative;
    width: 100%;
    border-bottom: var(--borde-comic);
    background: #5e11a8;
    overflow: hidden;
}

.hero-fondo-completo {
    display: block;
    width: 109%;
    margin-left: -9%;
    height: auto;
}

/* CAPA DE LOS 8 BRILLOS EN EL FONDO DE RAYOS */
.capa-brillos-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 52%; /* Cubre toda la mitad izquierda de rayos sin meterse en la tablet */
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.brillo {
    position: absolute;
    color: #fff799;
    text-shadow: 0 0 8px #ffd600, 0 0 16px #ffffff;
    animation: girarDestello 4.5s ease-in-out infinite;
}

.b-1 {
    top: 10%;
    left: 10%;
    font-size: 1.8rem;
    animation-duration: 4.1s;
}

.b-2 {
    top: 14%;
    left: 48%;
    color: #a8f5ff;
    text-shadow: 0 0 10px #00d2ff;
    font-size: 1.5rem;
    animation-duration: 5.3s;
    animation-direction: reverse;
}

.b-3 {
    top: 18%;
    left: 86%;
    font-size: 1.9rem;
    animation-duration: 3.9s;
}

.b-4 {
    top: 48%;
    left: 6%;
    color: #ffb3da;
    text-shadow: 0 0 10px #ff1e8a;
    font-size: 1.6rem;
    animation-duration: 4.8s;
    animation-direction: reverse;
}

.b-5 {
    top: 52%;
    left: 90%;
    color: #a8f5ff;
    text-shadow: 0 0 10px #00d2ff;
    font-size: 1.7rem;
    animation-duration: 4.4s;
}

.b-6 {
    bottom: 12%;
    left: 12%;
    font-size: 1.7rem;
    animation-duration: 5.0s;
    animation-direction: reverse;
}

.b-7 {
    bottom: 8%;
    left: 50%;
    color: #ffb3da;
    text-shadow: 0 0 10px #ff1e8a;
    font-size: 1.5rem;
    animation-duration: 4.2s;
}

.b-8 {
    bottom: 14%;
    left: 84%;
    font-size: 1.8rem;
    animation-duration: 4.7s;
    animation-direction: reverse;
}

@keyframes girarDestello {
    0% {
        transform: rotate(0deg) scale(0.75);
        opacity: 0.65;
    }

    50% {
        transform: rotate(180deg) scale(1.25);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) scale(0.75);
        opacity: 0.65;
    }
}

/* CONTENEDOR CENTRADO ENTRE EL BORDE IZQUIERDO Y LA MESA */
.hero-capa-contenido {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 52%; /* Delimita exactamente el espacio desde el borde izquierdo hasta donde empieza la mesa/tazas */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    pointer-events: none;
    z-index: 10;
}

.hero-columna-izq {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 560px;
}

.titulo-animado-box {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.img-titulo-hero {
    display: block;
    width: 100%;
    max-width: 550px; /* Crece sin llegar a tocar la mesa ni las tazas */
    margin: 0 auto;
    height: auto;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    animation: entradaPlop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes entradaPlop {
    0% {
        opacity: 0;
        transform: scale(0.15) rotate(-8deg);
    }

    70% {
        opacity: 1;
        transform: scale(1.05) rotate(1.5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.hero-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.btn-comic {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 22px;
    border-radius: 999px;
    border: var(--borde-comic);
    box-shadow: var(--sombra-comic);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .btn-comic:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0 var(--negro);
    }

.btn-amarillo {
    background: var(--amarillo);
    color: var(--negro);
}

.btn-morado {
    background: var(--morado-oscuro);
    color: var(--blanco);
}

.btn-verde {
    background: var(--verde);
    color: var(--negro);
}

.w-100 {
    width: 100%;
}
/* 8 CATEGORÍAS CIRCULARES NÍTIDAS */
.categorias-seccion {
    background: var(--blanco);
    padding: 30px 0;
    border-bottom: var(--borde-comic);
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    text-align: center;
}

.cat-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--negro);
}

.cat-circulo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-item:hover .cat-circulo,
.cat-item.activa .cat-circulo {
    transform: translateY(-6px) scale(1.07);
}

.cat-circulo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ESTUDIO PERSONALIZADOR */
.seccion-estudio {
    padding: 55px 0;
}

.encabezado-seccion {
    text-align: center;
    margin-bottom: 32px;
}

    .encabezado-seccion h2 {
        font-family: 'Titan One', cursive;
        font-size: 2.2rem;
        color: var(--morado-oscuro);
        margin-bottom: 6px;
    }

.estudio-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    align-items: start;
}

.panel-controles {
    background: var(--blanco);
    border: var(--borde-comic);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--sombra-comic);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.paso-titulo {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

.input-comic {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 3px solid var(--negro);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
}

.tallas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.btn-talla {
    padding: 8px;
    border-radius: 10px;
    border: 2.5px solid var(--negro);
    background: var(--blanco);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .btn-talla.activa {
        background: var(--amarillo);
    }

.btn-subir {
    display: block;
    text-align: center;
    background: var(--cian);
    border: 3px solid var(--negro);
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--negro);
}

.slider-grupo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

    .slider-grupo input {
        flex: 1;
    }

.btn-secundario {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 2.5px solid var(--negro);
    background: #eee;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.resumen-estudio {
    border-top: 2px dashed #ccc;
    padding-top: 14px;
    text-align: center;
}

.precio-grande {
    font-family: 'Titan One', cursive;
    font-size: 2rem;
    color: var(--morado-vivo);
    margin-bottom: 10px;
}

/* PANEL TABLET LIENZO */
.panel-lienzo {
    background: var(--blanco);
    border: var(--borde-comic);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--negro);
}

.barra-tablet {
    background: #3d2c5e;
    color: var(--blanco);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: var(--borde-comic);
}

.punto-rojo, .punto-amarillo, .punto-verde {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--negro);
}

.punto-rojo {
    background: #ff5f56;
}

.punto-amarillo {
    background: #ffbd2e;
}

.punto-verde {
    background: #27c93f;
}

.tablet-titulo {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.escenario-mockup {
    position: relative;
    height: 500px;
    background: radial-gradient(circle, #ffffff 40%, #ece7f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.img-base {
    max-height: 440px;
    max-width: 90%;
    object-fit: contain;
    pointer-events: none;
}

.zona-impresion {
    position: absolute;
    width: 190px;
    height: 240px;
    border: 2.5px dashed rgba(40, 6, 77, 0.55);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guia-texto {
    text-align: center;
    font-weight: 700;
    color: rgba(40, 6, 77, 0.6);
    font-size: 0.9rem;
    pointer-events: none;
}

.capa-diseno {
    position: absolute;
    max-width: 160px;
    cursor: grab;
    mix-blend-mode: multiply;
}

    .capa-diseno:active {
        cursor: grabbing;
    }

.oculto {
    display: none !important;
}

/* CATÁLOGO */
.seccion-catalogo {
    padding: 50px 0 70px;
    background: var(--blanco);
    border-top: var(--borde-comic);
}

.filtros-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 2.5px solid var(--negro);
    background: var(--blanco);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .pill.activa {
        background: var(--magenta);
        color: var(--blanco);
    }

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.card-producto {
    background: #fdfbff;
    border: var(--borde-comic);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--sombra-comic);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s;
}

    .card-producto:hover {
        transform: translateY(-4px);
    }

.card-img-box {
    height: 210px;
    background: #f1ebf9;
    border-radius: 12px;
    border: 2px solid var(--negro);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

    .card-img-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 10px;
    }

.card-tag {
    display: inline-block;
    background: var(--cian);
    border: 2px solid var(--negro);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-titulo {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.card-precio {
    font-family: 'Titan One', cursive;
    font-size: 1.35rem;
    color: var(--morado-vivo);
    margin-bottom: 12px;
}

.card-acciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-mini {
    padding: 8px;
    border-radius: 10px;
    border: 2.5px solid var(--negro);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* CARRITO DRAWER */
.overlay-carrito {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 200;
}

.drawer-carrito {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--blanco);
    border-left: var(--borde-comic);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.25s ease;
}

    .drawer-carrito.abierto {
        right: 0;
    }

.carrito-header {
    background: var(--morado-oscuro);
    color: var(--blanco);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--borde-comic);
}

.btn-cerrar {
    background: var(--magenta);
    color: var(--blanco);
    border: 2px solid var(--negro);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-weight: 700;
    cursor: pointer;
}

.carrito-lista {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-carrito {
    border: 2.5px solid var(--negro);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.carrito-footer {
    padding: 16px 20px;
    border-top: var(--borde-comic);
    background: #f8f6fc;
}

.total-fila {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer {
    background: var(--morado-oscuro);
    color: var(--blanco);
    text-align: center;
    padding: 24px 0;
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .menu-principal {
        display: none;
    }

    .estudio-layout {
        grid-template-columns: 1fr;
    }

    .categorias-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
