/* ==============================
   🎨 LA MUSA INCARNATA - ESTILO GENERAL
   ============================== */

/* ---------- VARIABLES ---------- */
:root {
    --fondo: #0f0f12;
    --texto: #f1f1f1;
    --acento: #9bc47a;
    --secundario: #6c6c8b;
    --secundarioOscuro: #4a4765;
    --transparente: rgba(255, 255, 255, 0.05);
}

/* ---------- RESET ---------- */
html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* ==============================
   🔤 BASE TIPOGRÁFICA Y ESTRUCTURA
   ============================== */
body {
    font-family: 'unispace', monospace;
    font-size: 1.6rem;
    line-height: 1.7;
    letter-spacing: 0.2px;
    background-color: var(--fondo);
    color: var(--texto);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'unispace', monospace;
    color: var(--acento);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

p {
    color: var(--texto);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

section {
    margin-bottom: 5rem;
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    padding: 2rem;
}

/* ==============================
   🧭 HEADER
   ============================== */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--secundario);
    background-color: var(--transparente);
}

.header__logo {
    max-width: 180px;
    filter: drop-shadow(0 0 8px var(--acento));
}

.header__titulo {
    font-family: 'Staatliches', cursive;
    font-size: 3.5rem;
    color: var(--acento);
    letter-spacing: 2px;
    margin: 1rem 0;
    text-align: center;
}

/* ==============================
   🪶 HERO
   ============================== */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    margin-top: 5rem;
    background: linear-gradient(180deg, rgba(107, 146, 83, 0.15), rgba(0, 0, 0, 0.8));
    color: var(--acento);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(155, 196, 122, 0.2);
    border-bottom: none;
}

.hero h2 {
    color: var(--acento);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 70rem;
    margin: 0 auto;
    font-style: italic;
    color: var(--texto);
    opacity: 0.9;
}

/* ==============================
   🛍️ PRODUCTOS
   ============================== */
#productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    /* ✅ limita visualmente a 4 productos */
    gap: 35px;
    justify-content: center;
    margin: 4rem auto;
    max-width: 1000px;
}

.producto {
    background: #1a1a20;
    border: 1px solid var(--secundario);
    border-radius: 10px;
    width: 250px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.producto:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(155, 196, 122, 0.3);
}

.producto img {
    max-width: 90%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.producto h3 {
    color: var(--acento);
    font-size: 2rem;
}

.producto p {
    color: var(--texto);
    font-size: 1.4rem;
    opacity: 0.85;
}

.producto button {
    margin: 0.4rem 0;
}

/* ==============================
   🎛️ BOTONES Y LINKS
   ============================== */
button {
    background: var(--secundario);
    color: var(--texto);
    border: none;
    padding: 8px 14px;
    margin: 6px 0;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--secundarioOscuro);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(155, 196, 122, 0.3);
}

.boton-volver {
    display: inline-block;
    background-color: var(--secundario);
    color: var(--texto);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
    margin: 2rem auto;
    font-size: 1.6rem;
}

.detalle__volver {
    text-align: center;
    margin-top: 2rem;
}

a {
    text-decoration: none;
    color: var(--acento);
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--texto);
}

/* ==============================
   🛒 CARRITO
   ============================== */
.carrito {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 2rem auto 5rem auto;
}

#lista-carrito {
    margin-top: 30px;
    font-size: 1.8rem;
    color: var(--texto);
    background: var(--transparente);
    border-radius: 8px;
    padding: 1.5rem;
}

.carrito-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

#contador-carrito {
    transition: transform 0.2s ease;
}

#contador-carrito.agregado {
    transform: scale(1.5);
    color: var(--acento);
}

/* ----- Bloques internos del carrito ----- */
.carrito__items {
    width: 100%;
    background: var(--transparente);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(155, 196, 122, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.carrito__resumen {
    width: 100%;
    background: #1a1a20;
    border: 1px solid var(--secundario);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(155, 196, 122, 0.15);
    margin-bottom: 4rem;
}

.carrito__resumen p#total {
    font-size: 2rem;
    font-weight: 600;
    color: var(--acento);
    margin-bottom: 1.5rem;
}

.carrito__botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.carrito__botones button {
    background-color: var(--secundario);
    color: var(--texto);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrito__botones button:hover {
    background-color: var(--secundarioOscuro);
    transform: scale(1.05);
}

/* ----- Botones de pago ----- */
.botones-pago {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.boton-pago {
    display: inline-block;
    background-color: var(--acento);
    color: var(--fondo);
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
}

.boton-pago:hover {
    background-color: var(--texto);
    color: var(--fondo);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(155, 196, 122, 0.4);
}

/* ==============================
   📄 DETALLE DE PRODUCTO
   ============================== */
#detalle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

#detalle h2 {
    color: var(--acento);
}

#detalle p {
    max-width: 70rem;
    margin: 1rem auto;
    color: var(--texto);
}

#detalle button {
    margin: 0.3rem 0;
}

/* ==============================
   💬 QUIÉNES SOMOS
   ============================== */
.quienes {
    max-width: 1000px;
    margin: 8rem auto 6rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(107, 146, 83, 0.08), rgba(0, 0, 0, 0.8));
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(155, 196, 122, 0.15);
    text-align: center;
    animation: fadeUp 1.2s ease forwards;
    border-top: 1px solid rgba(155, 196, 122, 0.15);
    border-bottom: 1px solid rgba(155, 196, 122, 0.15);
}

.quienes__lema {
    font-family: 'unispace', monospace;
    color: var(--acento);
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(155, 196, 122, 0.25);
    animation: fadeIn 1.5s ease forwards;
}

.quienes h2 {
    color: var(--acento);
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.quienes p {
    color: var(--texto);
    opacity: 0.9;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quienes__img {
    margin-top: 2.5rem;
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(155, 196, 122, 0.25);
}

/* ==============================
   ⚖️ POLÍTICAS
   ============================== */
.politicas {
    max-width: 800px;
    margin: 6rem auto;
    text-align: left;
    line-height: 1.8;
}

.politicas h2,
.politicas h3 {
    color: var(--acento);
    text-align: center;
    margin-bottom: 1.5rem;
}

.politicas p {
    color: var(--texto);
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.politicas a {
    color: var(--acento);
    font-weight: 600;
}

/* ==============================
   🦶 FOOTER
   ============================== */
.footer {
    background-color: #141418;
    border-top: 1px solid rgba(155, 196, 122, 0.2);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 5rem;
    color: var(--texto);
}

.footer__texto {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer__nav a {
    color: var(--acento);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.footer__nav a:hover {
    color: var(--texto);
}

/* ==============================
   🎬 ANIMACIONES
   ============================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

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

/* ==============================
   📱 RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    #productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 500px) {
    #productos {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.6rem;
        margin-bottom: 1.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1.5rem;
    }

    .header__titulo {
        font-size: 2.4rem;
    }

    .hero {
        padding: 6rem 1.5rem;
    }

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

    #productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

.producto {
    width: 90%;
    max-width: 320px;
    margin: 0 auto;
}

button,
.boton-pago {
    padding: 8px 14px;
    font-size: 1.4rem;
}

.footer__nav {
    flex-direction: column;
    gap: 0.5rem;
}
/* ==============================
   👩‍💻 Créditos Desarrolladora
   ============================== */
.creditos {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(155, 196, 122, 0.25);
    background: rgba(15, 15, 18, 0.4);
    backdrop-filter: blur(4px);
}

.creditos p {
    font-size: 1.5rem;
    color: var(--texto);
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.creditos__link {
    color: var(--acento);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.creditos__link:hover {
    color: var(--texto);
    text-shadow: 0 0 8px rgba(155, 196, 122, 0.4);
}

/* 📱 Ajuste móvil */
@media (max-width: 600px) {
    .creditos p {
        font-size: 1.3rem;
    }
}

/* ====== AJUSTES RESPONSIVE FINOS ====== */
@media (max-width: 600px) {
    #productos {
        grid-template-columns: 1fr;
        /* 🔹 Una prenda por fila */
        gap: 2rem;
        padding: 0 2rem;
    }

    .producto {
        width: 100%;
        max-width: 300px;
    }

    .producto img {
        max-width: 90%;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .header__titulo {
        font-size: 2.2rem;
    }
}

/* ===== ANIMACIÓN DE ENTRADA PARA PRODUCTOS ===== */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Aplica la animación a cada producto */
.producto {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease forwards;
}

/* Efecto escalonado para cada producto */
.producto:nth-child(1) {
    animation-delay: 0.1s;
}

.producto:nth-child(2) {
    animation-delay: 0.2s;
}

.producto:nth-child(3) {
    animation-delay: 0.3s;
}

.producto:nth-child(4) {
    animation-delay: 0.4s;
}

.producto:nth-child(5) {
    animation-delay: 0.5s;
}

.producto:nth-child(6) {
    animation-delay: 0.6s;
}

/* ====== TOAST DE CONFIRMACIÓN ====== */
.toast-mensaje {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(155, 196, 122, 0.95);
    color: #0f0f12;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 500;
    box-shadow: 0 0 10px rgba(155, 196, 122, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 9999;
}

.toast-mensaje.visible {
    opacity: 1;
    transform: translateY(0);
}

.quienes__video {
    margin-top: 2.5rem;
    position: relative;
    padding-bottom: 56.25%;
    /* relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(155, 196, 122, 0.25);
}

/* ==============================
   🎥 VIDEO DE FONDO ARTÍSTICO
   ============================== */

.video-fondo {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(155, 196, 122, 0.2);
    margin-bottom: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease forwards;
}

.video-fondo video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.8) contrast(1.05) saturate(1.1);
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

/* 🔹 Capa superior con velo y texto */
.video-fondo__overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--texto);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    padding: 3rem;
    background: rgba(15, 15, 18, 0.35);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    /* 💫 efecto de “tela suave” */
}

.video-fondo__overlay h2 {
    font-family: 'unispace', monospace;
    color: var(--acento);
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.video-fondo__overlay p {
    font-size: 1.6rem;
    opacity: 0.9;
}

/* ✨ Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 📱 Responsive */
@media (max-width: 768px) {
    .video-fondo {
        height: 45vh;
        margin-bottom: 4rem;
    }

    .video-fondo__overlay {
        padding: 2rem;
        background: rgba(15, 15, 18, 0.45);
    }

    .video-fondo__overlay h2 {
        font-size: 2.2rem;
    }

    .video-fondo__overlay p {
        font-size: 1.4rem;
    }
}
.proyecto {
    max-width: 900px;
    margin: 6rem auto;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(155, 196, 122, 0.25);
    border-bottom: 1px solid rgba(155, 196, 122, 0.25);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(155, 196, 122, 0.1);
}

.proyecto h2 {
    color: var(--acento);
    font-family: 'unispace', monospace;
    margin-bottom: 1.5rem;
}

.proyecto p {
    color: var(--texto);
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}