/* ===================================
   BOOKART - IDENTIDAD DE MARCA ARTESANAL
   Paleta oficial + elementos handmade
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Martian+Mono:wght@400;500;600;700&display=swap');

:root {
    /* COLORES OFICIALES DE MARCA */
    --amarillo-bookart: #FBD216;
    --verde-bookart: #1E9332;
    --rojo-bookart: #ED2939;
    --azul-bookart: #0033AD;
    --blanco: #FFFFFF;
    
    /* Tonos complementarios para profundidad */
    --amarillo-claro: #FFDE59;
    --amarillo-oscuro: #E8C20A;
    --verde-oscuro: #166B25;
    --marron-texto: #4A3830;
    --crema-papel: #FFF9F0;
    
    /* Tipografía oficial */
    --font-display: 'Chewy', cursive;
    --font-body: 'Martian Mono', monospace;
    
    /* Efectos artesanales */
    --sombra-papel: 3px 5px 15px rgba(0, 0, 0, 0.2);
    --sombra-profunda: 5px 8px 20px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--marron-texto);
    background: var(--crema-papel);
    line-height: 1.6;
    /* Textura de papel sutil */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(251, 210, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 147, 50, 0.03) 0%, transparent 50%);
}

/* ===================================
   HEADER CON MANCHAS DE PINTURA
   =================================== */

header {
    position: relative;
    background: linear-gradient(135deg, var(--amarillo-bookart) 0%, var(--amarillo-claro) 100%);
    padding: 1.5rem 0;
    border-bottom: 5px solid var(--verde-bookart);
    box-shadow: var(--sombra-papel);
}

/* Mancha de pintura decorativa */
header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--amarillo-oscuro) 0%, transparent 70%);
    border-radius: 50% 40% 60% 50%;
    opacity: 0.4;
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--rojo-bookart) 0px,
        var(--rojo-bookart) 20px,
        var(--azul-bookart) 20px,
        var(--azul-bookart) 40px,
        var(--verde-bookart) 40px,
        var(--verde-bookart) 60px
    );
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg) scale(1.08);
}

.site-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--blanco);
    text-shadow: 
        3px 3px 0px var(--verde-bookart),
        -1px -1px 0px var(--azul-bookart);
    display: none;
}

/* Navegación con efecto de trazos */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--marron-texto);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subrayado con pincelada */
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-bookart), var(--azul-bookart));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--verde-bookart);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Botón de sesión estilo sticker */
.btn-session {
    background: var(--verde-bookart);
    color: var(--blanco);
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--marron-texto);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 4px 4px 0px var(--marron-texto);
}

.btn-session::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--amarillo-bookart);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.btn-session:hover {
    color: var(--marron-texto);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.btn-session:hover::before {
    width: 300px;
    height: 300px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    font-size: 2rem;
    color: var(--verde-bookart);
}

/* ===================================
   HERO SECTION - COLLAGE ARTESANAL
   =================================== */

.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--crema-papel) 0%, var(--blanco) 100%);
    overflow: hidden;
    padding: 4rem 2rem;
}

/* Manchas decorativas de fondo */
.hero-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 210, 22, 0.15) 0%, transparent 70%);
    border-radius: 60% 40% 50% 60%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(30, 147, 50, 0.12) 0%, transparent 70%);
    border-radius: 40% 60% 50% 40%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    padding: 2rem;
}

.hero-pretitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--verde-bookart);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--amarillo-bookart);
    border-radius: 20px;
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--marron-texto);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title .highlight {
    color: var(--verde-bookart);
    position: relative;
    display: inline-block;
}

/* Subrayado irregular tipo marcador */
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: -8px;
    right: -8px;
    height: 20px;
    background: var(--amarillo-bookart);
    opacity: 0.5;
    transform: rotate(-1.5deg);
    z-index: -1;
    border-radius: 3px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--marron-texto);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Botones con estilo recortado de papel */
.btn-primary,
.btn-secondary {
    padding: 1.1rem 2.2rem;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 4px solid var(--marron-texto);
}

.btn-primary {
    background: var(--verde-bookart);
    color: var(--blanco);
    box-shadow: 5px 5px 0px var(--marron-texto);
}

.btn-primary:hover {
    background: var(--verde-oscuro);
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.btn-secondary {
    background: var(--amarillo-bookart);
    color: var(--marron-texto);
    box-shadow: 5px 5px 0px var(--marron-texto);
}

.btn-secondary:hover {
    background: var(--amarillo-oscuro);
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

/* Imagen hero con efecto polaroid pintado */
.hero-image {
    position: relative;
    padding: 2rem;
    background: var(--blanco);
    box-shadow: var(--sombra-profunda);
    transform: rotate(3deg);
    transition: transform 0.4s ease;
    border: 5px solid var(--marron-texto);
}

.hero-image:hover {
    transform: rotate(-2deg) scale(1.03);
}

/* Cinta adhesiva decorativa */
.hero-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 120px;
    height: 30px;
    background: rgba(251, 210, 22, 0.6);
    border: 2px solid rgba(74, 56, 48, 0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mancha de pintura en esquina */
.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--rojo-bookart) 0%, transparent 70%);
    border-radius: 60% 40% 50% 60%;
    opacity: 0.4;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.05) saturate(1.1);
}

.hero-image-caption {
    font-family: var(--font-display);
    text-align: center;
    margin-top: 1.2rem;
    color: var(--marron-texto);
    font-size: 1.3rem;
}

/* ===================================
   CARACTERÍSTICAS - TARJETAS PEGADAS
   =================================== */

.features-section {
    padding: 6rem 2rem;
    background: var(--crema-papel);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--marron-texto);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Subrayado con colores de marca */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--amarillo-bookart) 0%, 
        var(--verde-bookart) 50%, 
        var(--rojo-bookart) 100%);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--marron-texto);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Tarjetas con chincheta */
.feature-card {
    background: var(--blanco);
    padding: 2.5rem;
    box-shadow: var(--sombra-papel);
    position: relative;
    transition: all 0.3s ease;
    border: 4px solid var(--marron-texto);
    border-left-width: 8px;
}

.feature-card:nth-child(1) {
    transform: rotate(-1.5deg);
    border-left-color: var(--amarillo-bookart);
}

.feature-card:nth-child(2) {
    transform: rotate(1deg);
    border-left-color: var(--verde-bookart);
}

.feature-card:nth-child(3) {
    transform: rotate(-0.8deg);
    border-left-color: var(--rojo-bookart);
}

.feature-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.04);
    box-shadow: 6px 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

/* Chincheta decorativa con colores de marca */
.feature-card::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.5);
    border: 3px solid var(--marron-texto);
}

.feature-card:nth-child(1)::before {
    background: radial-gradient(circle at 30% 30%, var(--amarillo-claro), var(--amarillo-bookart));
}

.feature-card:nth-child(2)::before {
    background: radial-gradient(circle at 30% 30%, #32c750, var(--verde-bookart));
}

.feature-card:nth-child(3)::before {
    background: radial-gradient(circle at 30% 30%, #ff5566, var(--rojo-bookart));
}

.feature-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    background: var(--crema-papel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--marron-texto);
    box-shadow: 
        inset 0 2px 8px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* Destello de brillo en iconos */
.feature-icon::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
}

.feature-icon img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--marron-texto);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-description {
    color: var(--marron-texto);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--verde-bookart);
    text-decoration: none;
    font-weight: 700;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    transition: gap 0.3s ease, color 0.3s ease;
    font-size: 1.05rem;
}

.feature-link:hover {
    gap: 1.2rem;
    color: var(--verde-oscuro);
}

/* ===================================
   PRODUCTOS - ESTILO RECORTES
   =================================== */

.products-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--verde-bookart) 0%, var(--verde-bookart) 100%);
    text-align: center;
    border-bottom: 6px solid var(--amarillo-bookart);
    position: relative;
    box-shadow: var(--sombra-papel);
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--rojo-bookart) 0px,
        var(--rojo-bookart) 30px,
        var(--azul-bookart) 30px,
        var(--azul-bookart) 60px
    );
}

.products-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--blanco);
    margin-bottom: 1rem;
    text-shadow: 
        4px 4px 0px var(--amarillo-bookart),
        -2px -2px 0px var(--marron-texto);
}

.products-hero p {
    font-size: 1.2rem;
    color: var(--marron-texto);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 600;
}

.products-options {
    padding: 5rem 2rem;
    background: var(--crema-papel);
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.product-option {
    background: var(--blanco);
    padding: 2.5rem;
    box-shadow: var(--sombra-profunda);
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 5px solid var(--marron-texto);
    position: relative;
}

.product-option:nth-child(1) {
    transform: rotate(-2.5deg);
}

.product-option:nth-child(2) {
    transform: rotate(2.5deg);
}

.product-option:hover {
    transform: rotate(0deg) translateY(-18px) scale(1.06);
    box-shadow: 8px 12px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Washi tape decorativo multicolor */
.product-option::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 15%;
    right: 15%;
    height: 20px;
    background: repeating-linear-gradient(
        45deg,
        var(--amarillo-bookart),
        var(--amarillo-bookart) 15px,
        var(--verde-bookart) 15px,
        var(--verde-bookart) 30px,
        var(--rojo-bookart) 30px,
        var(--rojo-bookart) 45px
    );
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0.8;
}

.product-option-image {
    width: 100%;
    height: 320px;
    background: var(--crema-papel);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--marron-texto);
    overflow: hidden;
    position: relative;
}

/* Esquinas decorativas */
.product-option-image::before,
.product-option-image::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border: 4px solid var(--verde-bookart);
}

.product-option-image::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.product-option-image::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.product-option-image img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-option:hover .product-option-image img {
    transform: scale(1.12);
}

.product-option-content {
    text-align: center;
}

.product-option-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--marron-texto);
    margin-bottom: 1rem;
}

.product-option-description {
    color: var(--marron-texto);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.product-option-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--verde-bookart);
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

.product-option:hover .product-option-cta {
    gap: 1.4rem;
    color: var(--verde-oscuro);
}

/* ===================================
   CATÁLOGO - TARJETAS POSTALES
   =================================== */

.catalog-hero {
    padding: 3rem 2rem;
    background: var(--verde-bookart);
    text-align: center;
    color: var(--blanco);
    position: relative;
    box-shadow: var(--sombra-papel);
}

.catalog-hero::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--amarillo-bookart),
        var(--amarillo-bookart) 25px,
        var(--rojo-bookart) 25px,
        var(--rojo-bookart) 50px
    );
}

.catalog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

.catalog-section {
    padding: 4rem 2rem;
    background: var(--crema-papel);
    min-height: 70vh;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.catalog-item {
    background: var(--blanco);
    padding: 1.8rem;
    box-shadow: var(--sombra-papel);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 4px solid var(--marron-texto);
    position: relative;
}

/* Estampilla decorativa */
.catalog-item::after {
    content: '';
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 45px;
    height: 45px;
    border: 4px dashed var(--marron-texto);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.catalog-item:nth-child(4n+1)::after {
    background: var(--amarillo-bookart);
}

.catalog-item:nth-child(4n+2)::after {
    background: var(--verde-bookart);
}

.catalog-item:nth-child(4n+3)::after {
    background: var(--rojo-bookart);
}

.catalog-item:nth-child(4n+4)::after {
    background: var(--azul-bookart);
}

.catalog-item:hover::after {
    opacity: 1;
}

.catalog-item:hover {
    transform: translateY(-12px) rotate(0deg);
    box-shadow: 8px 10px 25px rgba(0, 0, 0, 0.28);
    border-color: var(--verde-bookart);
}

/* Rotaciones para efecto natural */
.catalog-item:nth-child(3n+1) {
    transform: rotate(-1.2deg);
}

.catalog-item:nth-child(3n+2) {
    transform: rotate(1.5deg);
}

.catalog-item:nth-child(3n+3) {
    transform: rotate(-0.8deg);
}

.catalog-item-image {
    width: 100%;
    height: 280px;
    background: var(--crema-papel);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px dashed var(--marron-texto);
    position: relative;
}

.catalog-item-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.catalog-item:hover .catalog-item-image img {
    transform: scale(1.15);
}

.catalog-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.catalog-item-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--marron-texto);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.catalog-item-description {
    color: var(--marron-texto);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.catalog-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 3px dashed var(--marron-texto);
}

.catalog-item-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: bold;
    color: var(--verde-bookart);
}

.catalog-item-action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--verde-bookart);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.catalog-item:hover .catalog-item-action {
    gap: 0.9rem;
}

/* Estado vacío */
.catalog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--blanco);
    box-shadow: var(--sombra-papel);
    border-left: 10px solid var(--amarillo-bookart);
    border: 5px solid var(--marron-texto);
}

.catalog-empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.catalog-empty h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--marron-texto);
    margin-bottom: 1rem;
}

.catalog-empty p {
    color: var(--marron-texto);
    font-size: 1.1rem;
}

/* ===================================
   DETALLE DE PRODUCTO - ÁLBUM SCRAPBOOK
   =================================== */

.product-detail {
    padding: 4rem 2rem;
    background: var(--crema-papel);
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-gallery {
    position: sticky;
    top: 100px;
    background: var(--blanco);
    padding: 2.5rem;
    box-shadow: var(--sombra-profunda);
    border: 5px solid var(--marron-texto);
}

/* Esquinas de foto tipo álbum */
.product-detail-gallery::before,
.product-detail-gallery::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 5px solid var(--amarillo-bookart);
}

.product-detail-gallery::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.product-detail-gallery::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.product-main-image {
    width: 100%;
    height: 500px;
    background: var(--crema-papel);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px dashed var(--marron-texto);
}

.product-main-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.product-detail-info {
    background: var(--blanco);
    padding: 3rem;
    box-shadow: var(--sombra-papel);
    border-left: 10px solid var(--verde-bookart);
    border: 5px solid var(--marron-texto);
    border-left-width: 10px;
}

.product-detail-breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--marron-texto);
}

.product-detail-breadcrumb a {
    color: var(--verde-bookart);
    text-decoration: none;
    font-weight: 700;
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--marron-texto);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.product-detail-price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--verde-bookart);
    font-weight: bold;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 4px dashed var(--marron-texto);
}

.product-detail-description {
    color: var(--marron-texto);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.product-detail-actions button,
.product-detail-actions a {
    padding: 1.3rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 4px solid;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-cart {
    background: var(--amarillo-bookart);
    color: var(--marron-texto);
    border-color: var(--marron-texto);
    box-shadow: 5px 5px 0px var(--marron-texto);
}

.btn-add-cart:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.btn-buy-now {
    background: var(--verde-bookart);
    color: var(--blanco);
    border-color: var(--marron-texto);
    box-shadow: 5px 5px 0px var(--marron-texto);
}

.btn-buy-now:hover {
    background: var(--verde-oscuro);
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.btn-back-catalog {
    background: transparent;
    color: var(--marron-texto);
    border-color: var(--marron-texto);
}

.btn-back-catalog:hover {
    background: var(--crema-papel);
}

/* ===================================
   PERSONALIZACIÓN - CUADERNO DE DISEÑO
   =================================== */

.personalized-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--verde-bookart) 0%, var(--verde-oscuro) 100%);
    text-align: center;
    position: relative;
    border-bottom: 6px solid var(--amarillo-bookart);
    box-shadow: var(--sombra-profunda);
}

.personalized-hero::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--amarillo-bookart) 0px,
        var(--amarillo-bookart) 30px,
        var(--rojo-bookart) 30px,
        var(--rojo-bookart) 60px
    );
}

.personalized-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--blanco);
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.personalized-hero p {
    font-size: 1.2rem;
    color: var(--blanco);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        var(--amarillo-bookart) 0px,
        var(--amarillo-bookart) 3px,
        transparent 3px,
        transparent 40px
    );
}

.personalized-form-section {
    padding: 5rem 2rem;
    background: var(--crema-papel);
}

.personalized-form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 3.5rem;
    box-shadow: var(--sombra-profunda);
    border-left: 12px solid var(--amarillo-bookart);
    border: 6px solid var(--marron-texto);
    border-left-width: 12px;
}

.form-section-title {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2.8rem;
    color: var(--marron-texto);
    margin-bottom: 1rem;
}

.form-section-subtitle {
    text-align: center;
    color: var(--marron-texto);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.options-section {
    margin: 4rem 0;
}

.options-section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--marron-texto);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.options-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--amarillo-bookart), var(--verde-bookart));
    border-radius: 3px;
}

.binding-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.binding-option {
    background: var(--blanco);
    border: 4px solid var(--marron-texto);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.binding-option:hover {
    border-color: var(--amarillo-bookart);
    transform: translateY(-12px);
    box-shadow: var(--sombra-papel);
}

.binding-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.binding-option input[type="radio"]:checked ~ .binding-content {
    border-color: var(--verde-bookart);
}

/* Checkmark tipo sello */
.binding-option input[type="radio"]:checked ~ .binding-content::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--verde-bookart);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    border: 4px solid var(--marron-texto);
    box-shadow: 3px 3px 0px var(--marron-texto);
}

.binding-content {
    text-align: center;
    position: relative;
    border: 3px dashed transparent;
    padding: 1rem;
    transition: all 0.3s ease;
}

.binding-image {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    background: var(--crema-papel);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--marron-texto);
    overflow: hidden;
}

.binding-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.binding-option:hover .binding-image img {
    transform: scale(1.12);
}

.binding-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--marron-texto);
    margin-bottom: 0.5rem;
}

.binding-description {
    color: var(--marron-texto);
    font-size: 0.95rem;
    line-height: 1.6;
}

.customization-form {
    background: var(--crema-papel);
    padding: 3rem;
    margin-top: 3rem;
    border: 4px dashed var(--marron-texto);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    color: var(--marron-texto);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-field label::before {
    content: '✎';
    color: var(--verde-bookart);
    font-size: 1.3rem;
}

.form-field select,
.form-field input[type="text"],
.form-field textarea {
    padding: 1rem;
    border: 4px solid var(--marron-texto);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--blanco);
    transition: all 0.3s ease;
    color: var(--marron-texto);
}

.form-field select:focus,
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--verde-bookart);
    box-shadow: 0 0 0 4px rgba(30, 147, 50, 0.2);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231E9332' d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--blanco);
    border: 4px solid var(--marron-texto);
    transition: all 0.3s ease;
}

.color-picker-wrapper:focus-within {
    border-color: var(--verde-bookart);
    box-shadow: 0 0 0 4px rgba(30, 147, 50, 0.2);
}

.color-picker-preview {
    width: 70px;
    height: 70px;
    border: 4px solid var(--marron-texto);
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 3px 3px 0px var(--marron-texto);
}

.color-picker-preview:hover {
    transform: rotate(5deg) scale(1.1);
}

.color-picker-input {
    flex: 1;
    border: none !important;
    cursor: pointer;
    height: 70px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 5px dashed var(--marron-texto);
    background: var(--blanco);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Clip decorativo */
.file-upload-label::before {
    content: '📎';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.25));
}

.file-upload-label:hover {
    border-color: var(--amarillo-bookart);
    background: rgba(251, 210, 22, 0.08);
}

.file-upload-icon {
    font-size: 3.5rem;
    color: var(--verde-bookart);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--marron-texto);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.file-upload-hint {
    color: var(--marron-texto);
    font-size: 0.9rem;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.image-preview {
    margin-top: 1rem;
    position: relative;
    background: var(--blanco);
    padding: 1.2rem;
    border: 4px solid var(--marron-texto);
    box-shadow: var(--sombra-papel);
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    background: var(--crema-papel);
}

.remove-preview {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 45px;
    height: 45px;
    background: var(--rojo-bookart);
    color: var(--blanco);
    border: 4px solid var(--marron-texto);
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0px var(--marron-texto);
}

.remove-preview:hover {
    background: var(--verde-bookart);
    transform: rotate(90deg);
}

.form-field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-note {
    background: var(--amarillo-bookart);
    border-left: 8px solid var(--marron-texto);
    padding: 1.8rem;
    margin: 2rem 0;
    box-shadow: var(--sombra-papel);
    position: relative;
    border: 4px solid var(--marron-texto);
    border-left-width: 8px;
}

.form-note::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20%;
    right: 20%;
    height: 20px;
    background: rgba(30, 147, 50, 0.5);
}

.form-note-text {
    color: var(--marron-texto);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-note-text strong {
    color: var(--marron-texto);
    font-weight: 700;
}

.submit-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 4px dashed var(--marron-texto);
}

.btn-submit-custom {
    padding: 1.6rem 4.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--verde-bookart);
    color: var(--blanco);
    border: 5px solid var(--marron-texto);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 7px 7px 0px var(--marron-texto);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-submit-custom:hover {
    background: var(--verde-oscuro);
    transform: translate(4px, 4px);
    box-shadow: 3px 3px 0px var(--marron-texto);
}

.btn-submit-custom:active {
    transform: translate(7px, 7px);
    box-shadow: none;
}

.btn-submit-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===================================
   CONTACTO - CARTA ARTESANAL
   =================================== */

.contact-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--azul-bookart) 0%, #0055CC 100%);
    text-align: center;
    color: var(--blanco);
    position: relative;
    box-shadow: var(--sombra-profunda);
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--amarillo-bookart),
        var(--amarillo-bookart) 25px,
        var(--verde-bookart) 25px,
        var(--verde-bookart) 50px
    );
}

.contact-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}

.contact-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.contact-main {
    padding: 5rem 2rem;
    background: var(--crema-papel);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info-side {
    background: var(--blanco);
    padding: 3rem;
    box-shadow: var(--sombra-papel);
    border-left: 10px solid var(--amarillo-bookart);
    position: relative;
    border: 5px solid var(--marron-texto);
    border-left-width: 10px;
}

.contact-info-side::before {
    content: '📎';
    position: absolute;
    top: -25px;
    left: 40px;
    font-size: 3rem;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.25));
}

.contact-info-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--marron-texto);
    margin-bottom: 1.5rem;
}

.contact-info-text {
    color: var(--marron-texto);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--crema-papel);
    padding: 1.5rem;
    border: 4px solid var(--marron-texto);
    display: flex;
    align-items: start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--verde-bookart);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    background: var(--blanco);
    border-color: var(--verde-bookart);
    transform: translateX(12px);
    box-shadow: var(--sombra-papel);
}

.info-card:hover::before {
    transform: scaleY(1);
}

.info-card-icon {
    width: 55px;
    height: 55px;
    background: var(--amarillo-bookart);
    border: 4px solid var(--marron-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
}

.info-card-content h3 {
    font-family: var(--font-display);
    color: var(--marron-texto);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-card-content p {
    color: var(--marron-texto);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(251, 210, 22, 0.15);
    border: 4px dashed var(--amarillo-bookart);
}

.social-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--marron-texto);
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-links-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: var(--blanco);
    border: 4px solid var(--marron-texto);
    text-decoration: none;
    color: var(--marron-texto);
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 4px 4px 0px var(--marron-texto);
}

.social-link:hover {
    background: var(--amarillo-bookart);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.social-link img {
    width: 32px;
    height: 32px;
}

.contact-form-side {
    background: var(--blanco);
    padding: 3.5rem;
    box-shadow: var(--sombra-papel);
    border: 5px solid var(--marron-texto);
    position: relative;
}

/* Líneas de cuaderno */
.contact-form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 70px;
    width: 3px;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 29px,
        var(--amarillo-bookart) 29px,
        var(--amarillo-bookart) 30px
    );
    opacity: 0.4;
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--marron-texto);
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    color: var(--marron-texto);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-contact {
    display: flex;
    flex-direction: column;
}

.form-group-contact label {
    color: var(--verde-bookart);
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group-contact label::before {
    content: '✎';
    color: var(--verde-bookart);
    font-size: 1.3rem;
}

.form-group-contact input,
.form-group-contact textarea {
    padding: 1rem;
    border: 4px solid var(--marron-texto);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--blanco);
    transition: all 0.3s ease;
    color: var(--marron-texto);
}

.form-group-contact input::placeholder,
.form-group-contact textarea::placeholder {
    color: #b8b8b8;
}

.form-group-contact input:focus,
.form-group-contact textarea:focus {
    outline: none;
    border-color: var(--verde-bookart);
    box-shadow: 0 0 0 4px rgba(30, 147, 50, 0.2);
}

.form-group-contact textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group-contact input.error,
.form-group-contact textarea.error {
    border-color: var(--rojo-bookart);
}

.form-group-contact input.valid,
.form-group-contact textarea.valid {
    border-color: var(--verde-bookart);
}

.btn-submit-contact {
    padding: 1.3rem 2rem;
    background: var(--verde-bookart);
    color: var(--blanco);
    border: 5px solid var(--marron-texto);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 0px var(--marron-texto);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit-contact:hover {
    background: var(--verde-oscuro);
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.btn-submit-contact:active {
    transform: translate(5px, 5px);
    box-shadow: none;
}

.btn-submit-contact:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-sending .btn-submit-contact::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid var(--blanco);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.success-message {
    background: var(--verde-bookart);
    border: 4px solid var(--marron-texto);
    border-left: 10px solid var(--amarillo-bookart);
    padding: 1.8rem;
    color: var(--blanco);
    font-weight: 700;
    text-align: center;
    display: none;
    margin-top: 1.5rem;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message .material-symbols-outlined {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-decoration {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--blanco);
    border: 5px dashed var(--amarillo-bookart);
    text-align: center;
    box-shadow: var(--sombra-papel);
}

.contact-decoration-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--marron-texto);
    margin-bottom: 1rem;
}

.contact-decoration-text {
    color: var(--marron-texto);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   FOOTER ARTESANAL
   =================================== */

footer {
    background: var(--marron-texto);
    color: var(--crema-papel);
    padding: 3rem 2rem 2rem;
    position: relative;
    margin-top: 4rem;
}

/* Cinta decorativa superior con colores de marca */
footer::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        var(--amarillo-bookart),
        var(--amarillo-bookart) 25px,
        var(--verde-bookart) 25px,
        var(--verde-bookart) 50px,
        var(--rojo-bookart) 50px,
        var(--rojo-bookart) 75px,
        var(--azul-bookart) 75px,
        var(--azul-bookart) 100px
    );
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    width: 140px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 3px dashed rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===================================
   ELEMENTOS ADICIONALES ARTESANALES
   =================================== */

/* Botones generales del sitio */
button, .button {
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Inputs y selects generales */
input, select, textarea {
    font-family: var(--font-body);
}

/* Dialogs y modales */
dialog {
    border: 5px solid var(--marron-texto);
    box-shadow: var(--sombra-profunda);
    background: var(--blanco);
}

dialog::backdrop {
    background-color: rgba(74, 56, 48, 0.7);
}

/* Enlaces generales */
a {
    color: var(--verde-bookart);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--verde-oscuro);
}

/* Imágenes con estilo polaroid */
img {
    max-width: 100%;
    height: auto;
}

/* Separadores decorativos */
.separator {
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--amarillo-bookart) 10%,
        var(--verde-bookart) 30%,
        var(--rojo-bookart) 50%,
        var(--azul-bookart) 70%,
        var(--amarillo-bookart) 90%,
        transparent
    );
    margin: 3rem auto;
    max-width: 600px;
}

/* Títulos con efecto handwritten */
h1, h2, h3 {
    font-family: var(--font-display);
}

/* ===================================
   ANIMACIONES ARTESANALES
   =================================== */

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(2deg);
    }
    70% {
        transform: scale(0.9) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Aplicar animaciones a elementos clave */
.hero-image {
    animation: bounce-in 0.8s ease-out;
}

.feature-card {
    animation: bounce-in 0.6s ease-out backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===================================
   RESPONSIVE - MOBILE FIRST
   =================================== */

@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .site-title {
        display: block;
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .product-detail-gallery {
        position: static;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--blanco);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -6px 0 25px rgba(0,0,0,0.3);
        border-left: 6px solid var(--amarillo-bookart);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 3px dashed var(--marron-texto);
    }
    
    .nav-links a {
        display: block;
        padding: 1.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .btn-session {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .product-detail-info {
        padding: 2rem 1.5rem;
    }
    
    .product-main-image {
        height: 400px;
    }
    
    .binding-options-grid {
        grid-template-columns: 1fr;
    }
    
    .personalized-form-container {
        padding: 2rem 1.5rem;
    }
    
    .customization-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn-submit-custom {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    .contact-hero {
        padding: 3rem 1.5rem;
    }
    
    .contact-main {
        padding: 3rem 1rem;
    }
    
    .contact-info-side,
    .contact-form-side {
        padding: 2rem 1.5rem;
    }
    
    .info-cards {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-card:hover {
        transform: translateY(-5px) translateX(0);
    }
    
    .social-links-grid {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        width: 90px;
    }
    
    .hero-section {
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .hero-text {
        padding: 1rem;
    }
    
    .features-section {
        padding: 4rem 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-gallery,
    .product-detail-info {
        padding: 1.5rem;
    }
    
    .product-main-image {
        height: 350px;
    }
    
    .contact-info-side,
    .contact-form-side {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-title,
    .contact-info-title {
        font-size: 1.5rem;
    }
    
    .btn-submit-contact {
        width: 100%;
    }
    
    .form-section-title {
        font-size: 2rem;
    }
    
    .options-section-title {
        font-size: 1.5rem;
    }
    
    .personalized-form-container {
        padding: 1.5rem 1rem;
    }
    
    .customization-form {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-label {
        padding: 2rem 1rem;
    }
}

/* ===================================
   UTILIDADES ADICIONALES
   =================================== */

/* Clases de utilidad para manchas decorativas */
.paint-splatter {
    position: relative;
}

.paint-splatter::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--amarillo-bookart) 0%, transparent 70%);
    border-radius: 60% 40% 50% 60%;
    opacity: 0.3;
    pointer-events: none;
}

/* Clase para efecto de papel arrugado */
.paper-texture {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
}

/* Clase para texto destacado tipo marcador */
.highlight-text {
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--amarillo-bookart);
    opacity: 0.5;
    z-index: -1;
    transform: rotate(-1deg);
}

/* Clase para bordes irregulares */
.torn-edge {
    position: relative;
}

.torn-edge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12'%3E%3Cpath d='M0,6 Q25,0 50,6 T100,6 T150,6 T200,6 T250,6 T300,6 T350,6 T400,6 T450,6 T500,6 T550,6 T600,6 T650,6 T700,6 T750,6 T800,6 T850,6 T900,6 T950,6 T1000,6 T1050,6 T1100,6 T1150,6 T1200,6' fill='white'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--crema-papel);
}

::-webkit-scrollbar-thumb {
    background: var(--verde-bookart);
    border-radius: 6px;
    border: 2px solid var(--crema-papel);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--verde-oscuro);
}

/* Selección de texto personalizada */
::selection {
    background: var(--amarillo-bookart);
    color: var(--marron-texto);
}

::-moz-selection {
    background: var(--amarillo-bookart);
    color: var(--marron-texto);
}

/* Dialogs */

dialog {
    /* Centrado correcto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; /* IMPORTANTE: quitar el margin: auto */
    
    /* LIMITAR ALTURA DEL DIALOG */
    max-height: 90vh;
    background: var(--crema-papel);
    overflow: hidden;
    border: none;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 40vw;
    padding: 3em 5em;
    text-align: center;
}

dialog[open] {
    animation: fadeInDialog 0.3s ease;
    /* Estructura flex para header fijo y contenido con scroll */
    display: flex;
    flex-direction: column;
}

dialog::backdrop {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

dialog button{
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--verde-bookart);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

/* ===================================
   MENÚ DESPLEGABLE DE USUARIO
   =================================== */

.user-menu-wrapper {
    position: relative;
    display: none; /* Oculto por defecto, se mostrará con JS cuando haya sesión */
}

.user-menu-wrapper.active {
    display: block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: var(--verde-bookart);
    color: var(--blanco);
    border: 3px solid var(--marron-texto);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0px var(--marron-texto);
    transition: all 0.3s ease;
}

.user-menu-trigger:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--marron-texto);
}

.user-menu-trigger .material-symbols-outlined {
    font-size: 24px;
}

.user-menu-trigger .user-name-display {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    background: var(--blanco);
    border: 5px solid var(--marron-texto);
    box-shadow: 6px 6px 0px var(--marron-texto);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-wrapper.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    background: var(--amarillo-bookart);
    padding: 1.5rem;
    border-bottom: 3px solid var(--marron-texto);
    text-align: center;
}

.user-dropdown-avatar {
    width: 60px;
    height: 60px;
    background: var(--verde-bookart);
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--marron-texto);
}

.user-dropdown-avatar .material-symbols-outlined {
    font-size: 36px;
    color: var(--blanco);
}

.user-dropdown-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--marron-texto);
    margin-bottom: 0.3rem;
}

.user-dropdown-email {
    font-size: 0.85rem;
    color: var(--marron-texto);
    opacity: 0.8;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--marron-texto);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px dashed transparent;
}

.user-dropdown-item:hover {
    background: var(--crema-papel);
    border-bottom-color: var(--verde-bookart);
    padding-left: 2rem;
}

.user-dropdown-item .material-symbols-outlined {
    font-size: 24px;
    color: var(--verde-bookart);
}

.user-dropdown-item.logout {
    border-top: 3px solid var(--marron-texto);
    margin-top: 0.5rem;
}

.user-dropdown-item.logout:hover {
    background: var(--rojo-bookart);
    color: var(--blanco);
}

.user-dropdown-item.logout:hover .material-symbols-outlined {
    color: var(--blanco);
}

/* Badge de contador (para carrito) */
.user-menu-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--rojo-bookart);
    color: var(--blanco);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    border: 2px solid var(--marron-texto);
    min-width: 22px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .user-menu-wrapper {
        width: 100%;
    }
    
    .user-menu-trigger {
        width: 100%;
        justify-content: center;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 1rem;
    }
}