* {
    box-sizing: border-box; margin: 0; padding: 0;
    font-family: "Noto Sans JP", sans-serif; 
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #0f0e0e;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
}

/* NAVBAR */
.navbar {
    background: #c0392b;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .logo img {
    height: 80px;
    object-fit: contain;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 300;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-family: "Noto Sans JP", sans-serif;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    position: relative;
    padding: 8px 12px;
}

.nav-links a:hover { opacity: 0.8; }

/* Linea animada */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.35s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

/* SOMBRA ESTILO ANIME - NAVBAR */
.navbar {
    box-shadow: 
        0 6px 0px #1c1312,
        0 10px 25px rgba(0, 0, 0, 0.5);
}

/* SOMBRA ESTILO ANIME - FOOTER */
footer {
    box-shadow: 
        0 -6px 0px #160c0a,
        0 -10px 25px rgba(0, 0, 0, 0.5);
}

/* HERO */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

main { 
    flex: 1;
}

.hero-contenido {
    position: relative;
    z-index: 2;
}

.hero h1 { font-size: 3rem; margin-bottom: 15px; }
.hero p  { font-size: 1.3rem; margin-bottom: 25px; }

/* BOTONES */
.btn {
    background: #c0392b;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background: #a93226; }

/* SECCIONES */
section {
    padding: 50px 30px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #c0392b;
}

/* CARDS PRODUCTOS */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    width: 280px;
    text-align: center;
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-5px); }

.card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    color: #c0392b; 
}

.card p { 
    color: #666; 
    margin-bottom: 15px; 
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* CARDS CATEGORÍAS */
.categorias {
    background: white;
    padding: 80px 30px;
}

.categorias h2 {
    color: #c0392b;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 50px;
    text-align: center;
}

.card-categoria {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: white;
    border: 1px solid rgba(192,57,43,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
}

.card-categoria:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(192,57,43,0.3);
}

.card-categoria h3 {
    color: #c0392b;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-categoria .btn {
    background: #c0392b;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card-categoria .btn:hover {
    background: #a93226;
}

/* MISION VISION */
.mision-vision {
    background: #f9f9f9;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.mv-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 350px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mv-card h3 { color: #c0392b; margin-bottom: 10px; font-size: 1.4rem; }

/* FOOTER */
footer {
    background: #c0392b;
    color: white;
    text-align: center;
    padding: 20px;
}

/* FORMULARIO CONTACTO */
.form-contacto {
    max-width: 600px;
    margin: 0 auto;
}

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.form-contacto textarea { height: 150px; resize: vertical; }

/* TIPOGRAFÍA */
h1 { font-size: 28px; font-weight: 400; }
h2 { font-size: 22px; font-weight: 400; }
h3 { font-size: 18px; font-weight: 400; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { gap: 10px; }
    .card { width: 100%; }
}

/* CARRITO FLOTANTE */
.carrito-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 999;
}

.carrito-contador {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c0392b;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* MODAL CARRITO */
.carrito-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.carrito-contenido {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.carrito-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8e8;
}

/* CORTINA TRANSICIÓN */
#cortina {
    position: fixed;
    inset: 0;
    background: #c0392b;
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

footer {
    background: #c0392b;
    color: white;
    padding: 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.footer-info p,
.footer-equipo p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.footer-centro {
    text-align: center;
    font-size: 0.85rem;
}

.footer-pagos {
    text-align: center;
}

.footer-pagos img {
    width: 200px;
    max-width: 100%;
}

.footer-equipo {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-equipo {
        text-align: center;
    }
}

.mensaje-exito {
    color: green;
    text-align: center;
    margin-bottom: 15px;
}

.mensaje-error {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

.hero-nosotros {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('/img/maztlan.jpg') center/cover no-repeat;
}

.historia {
    max-width: 800px;
    margin: 0 auto;
}

.historia p {
    line-height: 1.8;
    color: #555;
    margin-top: 15px;
}


#logo-text span {
    display: inline-block;
    will-change: transform;
}

.product-card {
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.product-card img,
.product-card h3,
.product-card p {
    pointer-events: none;
}
.product-card:hover {
    transform: translateY(-5px);
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    text-align: center;

    animation: pop 0.25s ease;
}

@keyframes pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}