/* RESET & FUENTE INTER */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { background-color: #fff; color: #111; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.theme-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #222;
    border-radius: 8px;
    background: #fff;
    color: #111;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 19px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

body.dark-mode { background-color: #111; color: #f2f2f2; }
body.dark-mode .navbar { background-color: #181818; border-color: #333; }
body.dark-mode .nav-links a,
body.dark-mode .menu-toggle,
body.dark-mode .dropdown-toggle { color: #f2f2f2; }
body.dark-mode .navbar .logo img { filter: brightness(0) invert(1); }
body.dark-mode .mega-menu { background-color: #202020; border-color: #383838; }
body.dark-mode .mega-categories li a { color: #eee; }
body.dark-mode .ticker-tape { background-color: #050505; color: #fff; }
body.dark-mode .ticker-content { color: #fff; }
body.dark-mode .main-footer { background-color: #111; color: #fff; }
body.dark-mode .footer-links a { color: #fff; }
body.dark-mode .footer-logo { filter: brightness(0) invert(1); }
body.dark-mode .nav-links,
body.dark-mode .nav-links.active { background-color: #181818; }
body.dark-mode .nav-links a,
body.dark-mode .dropdown-toggle,
body.dark-mode .menu-toggle { color: #f2f2f2; }
body.dark-mode .mega-menu,
body.dark-mode .mega-categories { background-color: #202020; }
body.dark-mode .mega-categories li a { color: #eee; }
body.dark-mode #seccion-categorias { background-color: #111; }
body.dark-mode .featured-section { background-color: #111; }
body.dark-mode .product-item p { color: #c4c4c4; }
body.dark-mode .about-editorial { background-color: #181818; }
body.dark-mode .about-editorial::before { opacity: 0.2; }
body.dark-mode .about-card { background-color: #242424; }
body.dark-mode .about-title { color: #f4f4f4; }
body.dark-mode .about-card p { color: #d0d0d0; }
body.dark-mode .about-divider { background-color: #f2f2f2; }
body.dark-mode .btn-dark { background-color: #f2f2f2; color: #111; }
body.dark-mode .btn-dark:hover { background-color: #d8d8d8; }
body.dark-mode .theme-toggle { background-color: #f2f2f2; color: #111; border-color: #f2f2f2; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.reveal,
.reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
}

/* TIPOGRAFÍA GLOBAL */
h1, h2, h3, h4 { 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
}
p { 
    font-weight: 400; 
    font-size: 16px; 
    line-height: 1.5; 
    text-transform: none;
}

/* HEADER STICKY */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 110px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
}

.nav-links { flex: 1; display: flex; }
.nav-links ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: #888; }
.nav-links i { font-size: 10px; margin-left: 5px; }
.menu-main-link { display: flex; align-items: center; gap: 8px; }
.catalog-link { display: inline-flex; align-items: center; }
.dropdown-toggle {
    display: none;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}
.dropdown-toggle i { transition: transform 0.3s ease; }

/* LOGO MÁS GRANDE */
.logo { flex: 1; display: flex; justify-content: center; z-index: 1001; }
.logo img { height: 128px; width: auto; object-fit: contain; }
.nav-spacer { flex: 1; }

/* HOVER CATÁLOGO */
.has-dropdown { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.mega-menu {
    position: absolute;
    top: 50px;
    left: 0;
    width: 220px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    z-index: 10;
}
.has-dropdown:hover .mega-menu,
.has-dropdown.is-open .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-categories { list-style: none; padding: 20px; display: flex; flex-direction: column; gap: 15px; }
.mega-categories li a { display: flex; justify-content: space-between; font-size: 13px; color: #333; font-weight: 500; }

/* RESPONSIVE HEADER (MOVIL) */
@media (max-width: 900px) {
    .navbar { padding: 0 20px; height: 80px; }
    .logo img { height: 88px; }
    
    .nav-spacer { display: none; }
    .menu-toggle { display: block; flex: 1; }
    .logo { flex: 2; justify-content: flex-end; }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        transition: left 0.4s ease;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
        z-index: 999;
        overflow-y: auto;
    }
    .nav-links.active { left: 0; }
    .nav-links ul { flex-direction: column; width: 100%; padding: 0 20px; gap: 20px; align-items: flex-start; }
    
    .has-dropdown { padding-bottom: 0; margin-bottom: 0; width: 100%; }
    .menu-main-link {
        width: 100%;
        justify-content: space-between;
        padding: 0 4px;
    }
    .dropdown-toggle {
        display: inline-flex;
        font-size: 14px;
    }
    .has-dropdown.is-open .dropdown-toggle i,
    .has-dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }
    .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: #fafafa;
        margin-top: 10px;
    }
    .has-dropdown.is-open .mega-menu,
    .has-dropdown:hover .mega-menu { display: block; }
}

/* TICKER */
.ticker-tape { background-color: #111; color: #fff; overflow: hidden; padding: 10px 0; white-space: nowrap; }
.ticker-wrapper { display: flex; width: 200%; animation: ticker 15s linear infinite; }
.ticker-content { width: 100%; font-weight: 700; font-size: 12px; letter-spacing: 2px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SLIDER NUEVO ESTILO */
.hero-slider { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.slider-container { width: 100%; height: 100%; position: relative; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 0.8s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}
.slide::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.slide.active { opacity: 1; z-index: 1; }

.slide-content.text-center { 
    position: relative; 
    z-index: 2; 
    color: #fff; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.overline { font-size: 14px; letter-spacing: 3px; font-weight: 600; margin-bottom: 5px; text-transform: uppercase; }
.hero-title { 
    font-size: 10vw;
    font-weight: 900; 
    margin: 0; 
    letter-spacing: -2px; 
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.subtitle { font-size: 14px; letter-spacing: 2px; font-weight: 500; margin-top: 5px; text-transform: uppercase; }

.quote { 
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 18px; 
    line-height: 1.4; 
    margin-top: 30px; 
    font-weight: 400; 
    max-width: 600px;
}

.hero-action {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.descubre-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-outline { 
    display: inline-block; 
    background-color: transparent; 
    color: #fff; 
    padding: 12px 30px; 
    font-size: 12px; 
    font-weight: 600; 
    border: 1px solid #fff;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.btn-outline:hover { background-color: #fff; color: #000; }

@media (max-width: 768px) {
    .hero-title { font-size: 60px; }
    .quote { font-size: 14px; margin-top: 20px; }
}

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent; color: #fff; border: none; font-size: 30px;
    cursor: pointer; z-index: 10; padding: 20px; opacity: 0.7;
}
.slider-btn:hover { opacity: 1; }
.prev-btn { left: 10px; } .next-btn { right: 10px; }
.menu-toggle:focus-visible,
.dropdown-toggle:focus-visible,
.slider-btn:focus-visible,
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* =========================================
   CATEGORÍAS TIPO NUDE PROJECT (PUNTA A PUNTA)
   ========================================= */
#seccion-categorias {
    width: 100%;
    padding: 0; /* Remueve los márgenes blancos */
    margin: 0;
    background-color: #fff;
    overflow: hidden;
}

.nude-project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 imágenes alineadas en escritorio */
    gap: 0; /* Cero espacio entre las imágenes */
    width: 100%;
    max-width: 100%; /* Permite que se estire al ancho total de la pantalla */
}

.cat-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3; /* Formato mucho más vertical y alargado */
    cursor: pointer;
    background-color: #e0e0e0;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.cat-card:hover img {
    transform: scale(1.04);
}

/* Sombra suavizada: Nude Project no usa negro fuerte, 
   solo una ligera capa oscura abajo para que el texto blanco se lea */
.cat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.cat-card h3 {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: #fff;
    font-size: 20px;
    font-weight: 500; /* Letra más delgada para un look más moderno */
    z-index: 2;
    margin: 0;
    letter-spacing: -0.5px;
}

/* RESPONSIVE: Adaptación a pantallas pequeñas */
@media (max-width: 1024px) {
    .nude-project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .nude-project-grid {
        grid-template-columns: repeat(2, 1fr); /* Mantiene 2 en móvil para parecerse al diseño original */
    }
    .cat-card h3 { 
        font-size: 15px; 
        left: 15px; 
        bottom: 15px; 
    }
}

/* PRODUCTOS Y DEMÁS */
.featured-section { padding: 80px 40px; }
.featured-title { text-align: center; margin-bottom: 40px; font-size: 32px; }
.products-container { display: flex; gap: 20px; max-width: 1400px; margin: 0 auto; overflow-x: auto; padding-bottom: 10px; }
.product-item { color: inherit; text-align: center; min-width: 200px; flex: 1; }
.product-item h4 { margin-top: 15px; font-size: 14px; }
.product-item p { font-size: 14px; color: #555; margin-top: 5px; }
.products-container::-webkit-scrollbar { height: 8px; }
.products-container::-webkit-scrollbar-track { background: #f1f1f1; }
.products-container::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }

.product-image-wrapper { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f6f6f6; }
.product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.badge-new { position: absolute; top: 15px; left: 15px; background: #fff; padding: 4px 12px; font-size: 11px; font-weight: 700; z-index: 2; }

/* --- FOOTER --- */
.main-footer { 
    background: #111; 
    color: #fff; 
    padding: 80px 40px; 
    text-align: center; 
}
.footer-links { 
    margin-bottom: 40px; 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
}
.footer-links a { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #888;
}
.footer-logo { 
    height: 90px; 
    filter: brightness(0) invert(1); 
    opacity: 0.9;
}

/* --- SECCIÓN NOSOTROS V2: ESTILO EDITORIAL --- */
.about-editorial {
    position: relative;
    isolation: isolate;
    padding: 100px 40px;
    background-color: #fafafa;
    overflow: hidden;
}

.about-editorial::before {
    content: '';
    position: absolute;
    inset: -18px;
    z-index: -1;
    background: url('IMAGENES/SOBRENOSOTROS.png') center / cover no-repeat;
    filter: blur(16px);
    opacity: 0.38;
}

.about-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.about-image-bg {
    width: 70%;
    margin-left: auto;
    overflow: hidden;
}

.about-image-bg img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.1);
}

.about-card {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 60px;
    width: 45%;
    box-shadow: 10px 15px 40px rgba(0,0,0,0.08);
}

.about-title {
    font-size: 55px;
    line-height: 1;
    margin-bottom: 20px;
    color: #111;
    letter-spacing: -2px;
}

.about-divider {
    width: 50px;
    height: 4px;
    background-color: #111;
    margin-bottom: 30px;
}

.about-card p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-dark {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 30px;
    background-color: #111;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: #444;
}

@media (max-width: 900px) {
    .about-wrapper { flex-direction: column; }
    .about-image-bg { width: 100%; }
    .about-image-bg img { height: 450px; }
    .about-card {
        position: relative;
        width: 90%;
        left: auto;
        top: auto;
        transform: none;
        margin: -80px auto 0;
        padding: 40px 25px;
        text-align: center;
    }
    .about-divider { margin: 0 auto 25px; }
    .about-title { font-size: 40px; }
}