/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --color-dark-bg: #05070c;
    --color-dark-surface: #0b0e17;
    --color-dark-border: rgba(196, 171, 130, 0.2);
    --color-dark-border-hover: rgba(196, 171, 130, 0.5);

    --color-gold: #c4ab82;
    --color-gold-hover: #b89d70;
    --color-gold-light: rgba(196, 171, 130, 0.15);

    --color-light-bg: #f9f7f0;
    --color-light-surface: #ffffff;
    --color-light-text: #2c2925;
    --color-light-text-muted: #5e5953;

    --color-white: #ffffff;
    --color-white-muted: rgba(255, 255, 255, 0.7);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --font-signature: 'Alex Brush', cursive;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-bg);
    color: var(--color-white-muted);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-gold);
    color: var(--color-dark-bg);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.btn-gold:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 171, 130, 0.2);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-dark-bg);
    box-shadow: 0 4px 15px rgba(196, 171, 130, 0.15);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 10px 0;
    background-color: rgba(5, 7, 12, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.feather-icon {
    stroke-width: 1.5;
    transition: var(--transition-smooth);
}

.logo:hover .feather-icon {
    transform: rotate(-10px) translateY(-2px);
}

.main-navigation>ul {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-white-muted);
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gold);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: #000000;
    display: flex;
    align-items: center;
    padding: 120px 20px 60px;
}

.hero-container-new {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 40px;
    align-items: center;
}

.hero-image-side {
    width: 35%;
    max-width: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-author-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text-side {
    width: 65%;
}

.hero-title-new {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: #c4ab82;
    /* Crimson red title matching mockup */
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-paragraphs p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-white-muted);
    font-weight: 400;
    text-align: justify;
}

/* ==========================================================================
   ABOUT SECTION ("Sobre Mí")
   ========================================================================== */
.about-section {
    background-color: var(--color-light-bg);
    color: var(--color-light-text);
    padding: 100px 20px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-badge {
    text-align: center;
    margin-bottom: 60px;
}

.about-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-gold-hover);
    display: block;
    margin-bottom: 10px;
}

.about-title {
    font-size: 2.5rem;
    color: var(--color-light-text);
    margin-bottom: 15px;
}

.about-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
}

.feather-divider {
    stroke-width: 1.5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    align-self: center;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-image {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.about-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-p {
    font-size: 1rem;
    color: var(--color-light-text-muted);
    font-weight: 400;
    line-height: 1.7;
}

.about-poem-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-poem {
    font-size: 18px;
    font-style: italic;
    font-weight: bold;
    color: var(--color-light-text);
    line-height: 1.6;
    margin-bottom: 0;
    font-family: 'Calibri', sans-serif;
}

.author-signature {
    font-family: var(--font-signature);
    font-size: 3rem;
    color: var(--color-gold-hover);
    margin-top: 10px;
    align-self: flex-start;
}

/* ==========================================================================
   BOOKS SECTION ("Libros Disponibles")
   ========================================================================== */
.books-section {
    background-color: var(--color-dark-bg);
    padding: 100px 20px;
}

.books-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider-line {
    width: 50px;
    height: 1px;
    background-color: var(--color-gold);
    opacity: 0.4;
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    transform: rotate(45deg);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Card General Styling */
.book-card {
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.book-info {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.book-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.book-genre {
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 2px;
    width: 100%;
    transition: var(--transition-smooth);
}

.download-icon {
    transition: transform 0.3s ease;
}

.btn-download:hover .download-icon {
    transform: translateY(2px);
}

/* Theme Dark Card */
.book-card.dark-card {
    background-color: var(--color-dark-surface);
    border-color: var(--color-dark-border);
}

.book-card.dark-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-dark-border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.book-card.dark-card .book-title {
    color: var(--color-white);
}

.book-card.dark-card .book-genre {
    color: var(--color-gold);
}

.book-card.dark-card .btn-download {
    border: 1px solid var(--color-dark-border-hover);
    color: var(--color-gold);
    background-color: transparent;
}

.book-card.dark-card .btn-download:hover {
    background-color: var(--color-gold);
    color: var(--color-dark-bg);
}

/* Theme Light Card (Highlight) */
.book-card.light-card {
    background-color: #e4e1d7;
    border-color: #d1cdbf;
}

.book-card.light-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.book-card.light-card .book-title {
    color: var(--color-light-text);
}

.book-card.light-card .book-genre {
    color: var(--color-light-text-muted);
}

.book-card.light-card .btn-download {
    border: 1px solid #c5c0b0;
    color: var(--color-light-text);
    background-color: transparent;
}

.book-card.light-card .btn-download:hover {
    background-color: var(--color-light-text);
    color: var(--color-light-bg);
    border-color: var(--color-light-text);
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter-section {
    background-color: var(--color-light-bg);
    color: var(--color-light-text);
    padding: 80px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.newsletter-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.newsletter-feather-wrapper {
    color: var(--color-gold-hover);
}

.newsletter-title {
    font-size: 1.5rem;
    color: var(--color-light-text);
    margin-bottom: 6px;
}

.newsletter-desc {
    font-size: 0.95rem;
    color: var(--color-light-text-muted);
}

.newsletter-right {
    flex-grow: 1;
    max-width: 500px;
    position: relative;
}

.newsletter-form {
    display: flex;
    width: 100%;
}

.newsletter-input {
    flex-grow: 1;
    border: 1px solid #dcd8cd;
    background-color: var(--color-white);
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-light-text);
    border-radius: 2px 0 0 2px;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    border-color: var(--color-gold-hover);
}

.btn-submit {
    background-color: #0b0e17;
    color: var(--color-white);
    border: none;
    padding: 0 25px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    background-color: var(--color-gold-hover);
    color: var(--color-dark-bg);
}

.newsletter-success-msg {
    display: none;
    color: #2e7d32;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #030508;
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-white-muted);
    line-height: 1.5;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    color: var(--color-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-white-muted);
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white-muted);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    transform: translateY(-3px);
    background-color: rgba(196, 171, 130, 0.05);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   MODAL DIALOG (DOWNLOAD)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--color-dark-surface);
    border: 1px solid var(--color-dark-border);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-white-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--color-gold);
}

.modal-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--color-white-muted);
    margin-bottom: 30px;
}

.modal-loader-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-bottom: 15px;
    overflow: hidden;
}

.modal-loader-progress {
    height: 100%;
    width: 0%;
    background-color: var(--color-gold);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.modal-status-text {
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .nav-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-dark-bg);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 40px;
        transform: translateX(-100%);
        transition: var(--transition-smooth);
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .header-cta {
        display: none;
        /* Hide subscribe on small mobile headers to keep space */
    }

    /* Hamburger Animation */
    .site-header.nav-active .hamburger {
        background-color: transparent;
    }

    .site-header.nav-active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .site-header.nav-active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Hero */
    .hero-container-new {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image-side {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-text-side {
        width: 100%;
        text-align: left;
    }

    .hero-title-new {
        font-size: 1.6rem;
        text-align: center;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Newsletter */
    .newsletter-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .newsletter-left {
        flex-direction: column;
        gap: 15px;
    }

    .newsletter-right {
        width: 100%;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand-col {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .about-title,
    .section-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        border-radius: 2px;
    }

    .btn-submit {
        padding: 15px;
        border-radius: 2px;
    }
}

/* ==========================================================================
   ADMIN PANEL STYLES (Gestión de publicación de libros)
   ========================================================================== */
.admin-panel-section {
    background-color: var(--color-dark-surface);
    border-top: 1px solid var(--color-dark-border);
    border-bottom: 1px solid var(--color-dark-border);
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.admin-container {
    max-width: 550px;
    margin: 0 auto;
    background-color: var(--color-dark-bg);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--color-dark-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.admin-panel-title {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 8px;
}

.admin-panel-desc {
    font-size: 0.9rem;
    color: var(--color-white-muted);
    margin-bottom: 30px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-white);
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-dark-surface);
    border: 1px solid var(--color-dark-border);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 2px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: var(--color-gold);
}

.form-group input[type="file"] {
    background-color: var(--color-dark-surface);
    border: 1px solid var(--color-dark-border);
    padding: 10px;
    color: var(--color-white-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-radius: 2px;
    cursor: pointer;
}

.btn-admin-submit {
    background-color: var(--color-gold);
    color: var(--color-dark-bg);
    border: none;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition-smooth);
    margin-top: 10px;
    text-align: center;
}

.btn-admin-submit:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 171, 130, 0.2);
}

/* ── ADMIN TABS ── */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-dark-border);
    padding-bottom: 0;
}

.admin-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-white-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: -1px;
}

.admin-tab:hover {
    color: var(--color-gold);
}

.admin-tab.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.btn-admin-danger {
    background-color: #8b2020;
    color: var(--color-white);
}

.btn-admin-danger:hover {
    background-color: #a02828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 32, 32, 0.3);
}

/* ── NAV DROPDOWN CATEGORÍAS ── */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background-color: rgba(5, 7, 12, 0.97);
    border: 1px solid var(--color-dark-border);
    border-radius: 2px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
    /* Puente invisible para que el ratón no "salga" al pasar del link al dropdown */
    margin-top: 0;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown-link {
    display: block;
    padding: 9px 20px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-white-muted);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active-cat {
    color: var(--color-gold);
    background-color: rgba(196, 171, 130, 0.06);
    padding-left: 26px;
}