/* ================== FUENTES ================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800&family=Cormorant+Garamond:ital,wght@1,600&display=swap');

/* ================== VARIABLES ================== */
:root {
    --bg: #F8F3E8;
    --primary: #1a1a1a;
    --green: #6F7F6A;
    --border: #1a1a1a;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--primary);
    padding-top: 65px;
}

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

/* ================= HEADER ======================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: var(--green);
    display: flex;
    align-items: center;
    z-index: 2000;
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* ================= LOGO ======================= */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: black;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo span {
    color: var(--bg);
}

/* ================= NAV LIST ===================== */
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

/* Links */
.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
}

/* Subrayado animado */
.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-list a:hover::after {
    transform: scaleX(1);
}

.nav-list a:hover {
    opacity: 1;
}

.nav-list a.active {
    border-bottom: 2px solid white;
}

/* ================= BOTONES ======================= */
.btn-main,
.btn-secondary,
.botonCarrito {
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.65rem;
    transition: 0.3s;
    border: 1px solid var(--border);
    background: black;
    color: white;
}

.btn-main:hover,
.btn-secondary:hover,
.botonCarrito:hover {
    background: var(--green);
}

/* ================= ILUSTRACIONES ================= */
#pagina-ilustraciones .section-padding {
    padding: 80px 5%;
}

#pagina-ilustraciones .tituloIlustraciones {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--green);
    font-size: 80px;
    text-align: center;
    margin-bottom: 40px;
}

#pagina-ilustraciones .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* CARD */
#pagina-ilustraciones .card {
    background: white;
    border-radius: 25px;
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.4s;
}

#pagina-ilustraciones .card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#pagina-ilustraciones .card-front img {
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 15px;
}

#pagina-ilustraciones .card-front h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

#pagina-ilustraciones .card-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

/* ================= MODAL ========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 30px;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
}

.modal-flex {
    display: flex;
    flex-wrap: wrap;
}

.modal-left {
    flex: 1.2;
    min-width: 300px;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-right {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.modal-right h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 15px;
}

.modal-info {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-selectors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.selector-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.selector-group label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.selector-group select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FOOTER ======================== */
.main-footer {
    background: #6F7F6A;
    color: white;
    padding: 60px 5% 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-brand p {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: 0.3s;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ================= HAMBURGUESA ================== */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

.menu-toggle.active i::before {
    content: "\f00d";
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1990;
}

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

/* ================================================= */
/* ================= MOBILE MENU =================== */
/* ================================================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;

        background: rgba(111,127,106,0.98);
        backdrop-filter: blur(10px);

        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 40px;
        gap: 25px;

        transform: translateX(100%);
        transition: transform 0.35s ease;

        z-index: 2000;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .header-container {
        gap: 10px;
    }
}

/* ================================================= */
/* ============== SMALL MOBILE ===================== */
/* ================================================= */
@media (max-width: 480px) {

    .logo h1 {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-main {
        font-size: 0.65rem;
        padding: 10px 18px;
    }
}

