/* ================================================= */
/* ================== 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;
    overflow-x: hidden;
}

/* ================================================= */
/* ================== HEADER ======================= */
/* ================================================= */

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

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

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

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

.logo h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: black;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-list a {
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list a.active {
    border-bottom: 2px solid rgb(0, 0, 0);
}

/* ================================================= */
/* ================== HERO (INICIO) =============== */
/* ================================================= */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
}

.hero-content i {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #A5B49E;
}

/* ================================================= */
/* ================== BOTONES ====================== */
/* ================================================= */

.btn-main,
.btn-secondary {
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.65rem;
    transition: 0.3s;
    text-align: center;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-main {
    background: #000000;
    color: rgb(255, 255, 255);
    border: 1px solid var(--border);
}

.btn-main:hover {
    background: #6F7F6A;

}

.btn-secondary {
    background: #000000;
    color: rgb(255, 255, 255);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #6F7F6A;
}

.btn-cart-modal {
    width: auto;
    padding: 12px 25px;
    align-self: flex-start;
    margin-top: 10px;
}

/* ================================================= */
/* ================= MODAL ========================= */
/* ================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    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;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
}

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

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

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

.modal-right {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

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

.modal-info {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.modal-selectors {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

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

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

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

/* --- ANIMACIONES Y OTROS --- */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .modal-flex {
        flex-direction: column;
    }
    .modal-left {
        height: 300px;
    }
    .modal-right {
        padding: 30px;
    }
}

.tituloIlustraciones {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    color: #6F7F6A;
    font-size: 80px;
    text-align: center;
    margin-bottom: 40px;
}

.botonCarrito{
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.65rem;
    transition: 0.3s;
    text-align: center;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    background: #000000;
    color: rgb(255, 255, 255);
    border: 1px solid var(--border);
}

.botonCarrito:hover{
    background: #6F7F6A;
    color: rgb(255, 255, 255);
    border: 1px solid var(--border);
}
/* ================================================= */
/* ================== QUIÉN SOY ==================== */
/* ================================================= */

.section-padding {
    padding: 100px 5%;
}

/* ================================================= */
/* ================= SLIDER INFINITO ================= */
/* ================================================= */
.infinite-slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #000000;
    color: white;
    overflow: hidden;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position:absolute;
    top: 65px;     /* debajo del header fijo */
    left: 0;
    right: 0;
    z-index: 2500;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
}

.slide {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 50px;
    flex-shrink: 0;
}

.slide span {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.slide i { color: #A5B49E; font-size: 0.8rem; }

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ================================================= */
/* ================= ILUSTRACIONES ================= */
/* ================================================= */

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

#pagina-ilustraciones .section-padding{
    padding: 80px 5%;
}


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

#pagina-ilustraciones .card {
    background: white;
    border-radius: 25px;
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#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 {
    width: 100%;
    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;
}



/* ================================================= */
/* ================= PEGATINAS ===================== */
/* ================================================= */

#pagina-pegatinas {
    background: #d6d1c4;
    overflow-x: hidden;
}

/* CONTENEDOR GENERAL */
#pagina-pegatinas .album-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    position: relative; /* para posicionar las flechas dentro del contenedor */
}

/* ÁLBUM */
/* 👉 EMPIEZA MUY A LA DERECHA */
#pagina-pegatinas .album {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.9s ease;

    /* MUCHO MÁS A LA DERECHA AL INICIO */
    transform: translateX(200px);
}

/* Clase que lo mueve para quedar centrado al abrir */
#pagina-pegatinas .album.slide-open {
    transform: translateX(390px);
}

/* LIBRO */
#pagina-pegatinas .book {
    position: relative;
    width: 800px;
    height: 550px;
    perspective: 2500px;
}

/* PÁGINAS */
#pagina-pegatinas .paper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: left;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(.65,.05,.36,1);
}

#pagina-pegatinas .paper.flipped {
    transform: rotateY(-180deg);
}

#pagina-pegatinas .front,
#pagina-pegatinas .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

#pagina-pegatinas .back {
    transform: rotateY(180deg);
}

/* PÁGINAS VISUALES */
#pagina-pegatinas .page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: #fdfbf7;
    padding: 60px;
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.05),
        0 15px 40px rgba(0,0,0,0.15);
}

#pagina-pegatinas .left-page {
    left: 0;
    border-right: 1px solid #ddd;
}

#pagina-pegatinas .right-page {
    right: 0;
}

/* FLECHAS */
#pagina-pegatinas .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    cursor: pointer;
    padding: 15px;
    font-size: 22px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 2000;
    outline: none;
}

#pagina-pegatinas .nav-arrow.left {
    left: 40px;
}

#pagina-pegatinas .nav-arrow.right {
    right: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #pagina-pegatinas .album {
        transform: translateX(0);
    }

    #pagina-pegatinas .album.slide-open {
        transform: translateX(0);
    }

    #pagina-pegatinas .nav-arrow.left {
        left: 10px;
    }

    #pagina-pegatinas .nav-arrow.right {
        right: 10px;
    }
}
/* ================================================= */
/* ================= FOOTER ======================== */
/* ================================================= */


/* --- FOOTER --- */

.main-footer {
    background: #6F7F6A;
    color: white;
    padding: 60px 5% 30px;
    margin-top: 0px;
}

.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 span {
    color: var(--bg);
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

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

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

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

/* ================================================= */
/* ================== LOGIN PAGE =================== */
/* ================================================= */

#pagina-login .login-container {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

#pagina-login .login-card {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: modalAppear 0.5s ease;
}

#pagina-login .login-header {
    text-align: center;
    margin-bottom: 35px;
}

#pagina-login .login-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--green);
}

#pagina-login .login-header p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

#pagina-login .input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#pagina-login .input-group label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#pagina-login .input-group input {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    transition: 0.3s;
}

#pagina-login .input-group input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(111, 127, 106, 0.1);
}

#pagina-login .input-group input.input-invalid {
    border-color: #d64545;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.12);
}

#pagina-login .input-error-text {
    color: #d64545;
    font-size: 0.85rem;
}

#pagina-login .login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

#pagina-login .login-options a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

#pagina-login .w-100 {
    width: 100%;
    padding: 15px;
    font-size: 0.8rem;
}

#pagina-login .login-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
}

#pagina-login .login-footer-text a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 480px) {
    #pagina-login .login-card {
        padding: 30px 20px;
    }
}

#pagina-login .separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-size: 0.8rem;
}

#pagina-login .separator::before,
#pagina-login .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

#pagina-login .separator span {
    padding: 0 10px;
}

#pagina-login .btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color .2s, box-shadow .2s;
}

#pagina-login .btn-google img {
    width: 18px;
    height: 18px;
}

#pagina-login .btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
    box-shadow: 0 1px 3px rgba(60,64,67,0.1);
}

#pagina-login .btn-google:active {
    background-color: #eeeeee;
}

/* ================================================= */
/* ================== ADMIN PAGE =================== */
/* ================================================= */

#pagina-admin .admin-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 40px;
}

#pagina-admin .admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

#pagina-admin .admin-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--green);
}

#pagina-admin .admin-header h2 i {
    font-style: italic;
}

#pagina-admin .table-section-title {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#pagina-admin .table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
}

#pagina-admin .admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

#pagina-admin .admin-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

#pagina-admin .admin-table tbody td {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    vertical-align: top;
    font-size: 0.9rem;
}

#pagina-admin .admin-table small {
    opacity: 0.75;
}

#pagina-admin .status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid var(--border);
}

#pagina-admin .status-pending {
    background: var(--bg);
    color: var(--primary);
}

#pagina-admin .status-shipped {
    background: var(--green);
    color: var(--bg);
}

#pagina-admin .admin-form {
    margin-top: 10px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
}

#pagina-admin .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#pagina-admin .admin-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#pagina-admin .admin-form-field-wide {
    grid-column: span 2;
}

#pagina-admin .admin-form-field label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#pagina-admin .admin-form-field input,
#pagina-admin .admin-form-field select {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
}

#pagina-admin .admin-form-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

#pagina-admin .admin-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    #pagina-admin .admin-container {
        padding: 25px;
        border-radius: 25px;
    }

    #pagina-admin .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #pagina-admin .admin-form-grid {
        grid-template-columns: 1fr;
    }

    #pagina-admin .admin-form-field-wide {
        grid-column: span 1;
    }
}
