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

body {
    font-family: 'Inter', sans-serif;
    color: #111;
    background: #f7f7f7;
}

/* ================= GLOBAL ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
.header {
    background: white;
    border-bottom: 1px solid #eee;
}

.nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.nav .menu {
    display: flex;
    align-items: center;
    margin-right: auto;
    margin-left: 40px;
}

/* ================= NAV ICONS (carrito / cuenta) ================= */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #111;
    text-decoration: none;
}

.nav-cart-icon {
    width: 22px;
    height: 22px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #E97B08;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.auth-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color .3s ease;
}

.auth-link:hover {
    color: #E97B08;
}

/* ================= MENU TOGGLE (hamburguesa) ================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.logo img {
    height: 45px;
}

.menu a {
    position: relative;
    margin-left: 30px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all .3s ease;
}

/* línea oculta por defecto */
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #E97B08;
    
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

/* hover: color + línea */
.menu a:hover {
    color: #E97B08;
}

.menu a:hover::after {
    transform: scaleX(1);
}

/* ACTIVO (solo uno) */
.menu .active {
    color: #000;
    font-weight: 500;
}

.menu .active::after {
    transform: scaleX(1);
    background: #000;
}


/* ================= HERO ================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('img/principal.jpg') center/cover no-repeat;
    filter: brightness(0.85);
    animation: zoomFade 12s infinite alternate;
}

@keyframes zoomFade {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.08); opacity: 1; }
}

.hero-content {
    position: relative;
    color: white;
    max-width: 440px;

    /* 👇 ajuste fino hacia la izquierda */
    margin-left: 100px; /* ajusta entre -60px y -120px según lo quieras */
}

.hero .tag {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin: 20px 0;
    font-weight: 600;
}

.hero p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* ================= BUTTON ================= */
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: black;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all .3s ease;
}

.btn-primary:hover {
    background: #c96505;
    color: #fff;
}

/* ================= DESTACADOS ================= */
.destacados {
    padding: 60px 0;
    background: #f7f7f7;
}

.section-header {
    position: relative;
    margin-bottom: 40px;
}

.section-header span {
    font-size: 12px;
    color: #999;
}

.section-header h2 {
    font-size: 28px;
    margin-top: 10px;
}

.ver-todos {
    position: absolute;
    right: 0;
    top: 20px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

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

/* ================= CARD ================= */
.card {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .3s ease;
}

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

.card img {
    width: 100%;
    display: block;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 13px;
    color: #666;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: black;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* ================= ADD BUTTON ================= */
.btn-add {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #eee;
    cursor: pointer;
    transition: all .3s ease;
}

.btn-add:hover {
    background: black;
    color: white;
}

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

    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {

    .nav .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: white;
        padding: 10px 5%;
        border-bottom: 1px solid #eee;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        margin: 0;
    }

    .nav .menu.open {
        display: flex;
    }

    .nav .menu a {
        margin: 12px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        height: 80vh;
        text-align: center;
    }

    .hero-content {
        margin: auto;
    }

    .hero h1 {
        font-size: 32px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

}

/* ================= CATALOGO ================= */
.catalogo {
    padding: 80px 0;
    background: #f7f7f7;
}

.catalogo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.catalogo-header span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #999;
}

.catalogo-header h2 {
    font-size: 48px;
    margin-top: 10px;
}

.catalogo-header p {
    max-width: 320px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.catalogo-filtros {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 30px;
}

.filtros span {
    margin-right: 25px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.orden {
    display: flex;
    align-items: center;
    gap: 15px;
}

.orden span {
    font-size: 11px;
    color: #999;
}

.orden button {
    background: #eee;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* grid */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


.catalogo-grid {
    transition: all 0.4s ease;
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}



/* card */
.catalogo-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.catalogo-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.catalogo-card p {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.catalogo-card span {
    font-size: 14px;
    font-weight: 500;
}

/* efecto contenedor */
.catalogo-card {
    overflow: hidden;
    border-radius: 10px;
}

/* imagen animada */
.catalogo-card img {
    transition: transform .5s ease;
}

/* hover */
.catalogo-card:hover img {
    transform: scale(1.08);
}





/* paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.paginacion button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #eee;
    cursor: pointer;
}

.paginacion button:hover {
    background: #000;
    color: #fff;
}

.paginacion span {
    font-size: 12px;
    color: #666;
}

/* ================= KIT ================= */
.kit {
    padding: 80px 0;
    background: #f1f1f1;
}

.kit-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-height: 500px;
}

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

.kit-info {
    padding: 90px;

   
}

.kit-info span {
    font-size: 11px;
    letter-spacing: 2px;
    color: #999;
}

.kit-info h2 {
    font-size: 30px;
    margin: 15px 0;
}

.kit-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 370px;
}

.btn-kit {
    display: inline-block;
    padding: 12px 26px;
    background: #E97B08;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    transition: all .3s ease;
}

.btn-kit:hover {
    background: #c96505;
}

/* ================= BOTÓN PARA SUBIR  ================= */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;

    width: 42px;
    height: 42px;

    background: black;
    color: white;
    border: none;
    border-radius: 50%;

    display: none;
    cursor: pointer;

    font-size: 16px;
    line-height: 42px;
    text-align: center;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background: #111;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transform: translateY(-3px);
}

/* ================= FOOTER ================= */
.footer {
    background: #0b132b;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    gap: 120px;
    margin-bottom: 40px;
}

/* 👇 NUEVO ajuste fino */
.footer-right {
    margin-right: 120px; /* mueve hacia la izquierda */
}

.footer-left h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-left p {
    font-size: 13px;
    color: #aaa;
    max-width: 300px;
    line-height: 1.6;
}

.footer-right h4 {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-right a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color .3s;
}

.footer-right a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.footer-bottom span {
    font-size: 11px;
    color: #777;
}

.social a {
    margin-left: 20px;
    font-size: 11px;
    color: #777;
    text-decoration: none;
    transition: color .3s;
}

.social a:hover {
    color: #fff;
}








/* ================= PRODUCTO  EN PÁGINA CATÁLOGO================= */
.producto {
    padding: 60px 0;
}

.producto-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

/* galería */
.producto-img-principal img {
    width: 100%;
    border-radius: 12px;
}

.producto-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.producto-thumbs img {
    width: 100%;
    border-radius: 10px;
}


/* contenedores con recorte limpio */
.producto-img-principal,
.producto-thumbs img {
    overflow: hidden;
    border-radius: 12px;
}

/* animación suave */
.producto-img-principal img,
.producto-thumbs img {
    transition: transform .5s ease;
}

/* hover */
.producto-img-principal:hover img,
.producto-thumbs img:hover {
    transform: scale(1.08);
}


/* info */
.producto-tag {
    font-size: 11px;
    letter-spacing: 2px;
    color: #999;
}

.producto-info h1 {
    font-size: 42px;
    margin: 10px 0 20px;
}

.producto-precio {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.badge-producto {
    background: black;
    color: white;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 20px;
}

.producto-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 420px; /* 👈 controla ancho */
}

/* opciones */
.producto-opciones {
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}


.colores {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #ccc;
}

.azul { background: #0b132b; }
.beige { background: #b8a98a; }

.size {
    margin-top: 10px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
}

.btn-producto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 18px 40px; /* más grande */
    min-width: 320px;   /* 👈 lo hace más largo */
    font-size: 14px;
}



/* icono carrito */
.icon-cart {
    width: 18px;
    height: 18px;
}



/* specs */
.spec-title {
    margin-top: 40px;
    font-size: 22px;
}

.spec span {
    display: block;
    font-size: 11px;
    color: #999;
    margin: 15px 0;
}

.spec p {
    font-size: 13px;
    color: #555;

    max-width: 400px; /* 👈 más estrecho */
    line-height: 1.9; /* 👈 más aire entre líneas */
    margin-bottom: 10px;
}

.nota {
    margin-top: 20px;
    background: #eee;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    color: #666;

    max-width: 370px; /* 👈 mismo ancho para consistencia */
    line-height: 1.7; /* un poco más de aire */
}


html {
    scroll-behavior: smooth;
}


/* ================= FORMULARIO ================= */
.formulario {
    padding: 60px 0;
    background: #f7f7f7;
}

.formulario h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.form-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

form {
    background: #f1f1f1;
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group.full {
    width: 100%;
}

.form-group label {
    font-size: 12px;
    margin-bottom: 6px;
    color: #666;
}

.form-group input,
.form-group select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cantidad {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cantidad button {
    width: 30px;
    height: 30px;
    border: none;
    background: #ddd;
    cursor: pointer;
}

.metodo-label {
    font-size: 12px;
    margin: 20px 0 10px;
    display: block;
}

.metodos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metodo {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.metodo span {
    font-size: 12px;
    color: #666;
}

.check {
    display: block;
    margin: 20px 0;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.cancelar {
    color: #666;
    text-decoration: none;
}

.btn-submit {
    background: #0b132b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #c96505; /* mismo hover que btn-kit */
    color: #fff;
}

.btn-submit:disabled,
.btn-submit:disabled:hover {
    background: #c9ccd3;
    color: #fff;
    cursor: not-allowed;
}

.mensaje-exito {
    margin-top: 20px;
    color: green;
}



.mensaje-exito {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.6s ease;
}

.success-logo {
    width: 120px;
    margin-bottom: 30px;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0, 200, 120, 0.1);
    color: #22c55e;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0.08);
}

.mensaje-exito h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.mensaje-exito p {
    max-width: 500px;
    margin: auto;
    color: #666;
    line-height: 1.6;
}

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






/* responsive */
@media (max-width: 900px) {
    .producto-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= TOAST ================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translate(-50%, 20px);
    background: #0b132b;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ================= CANTIDAD (widget genérico) ================= */
.cantidad {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 20px 16px 20px 0;
}

.cantidad .qty-menos,
.cantidad .qty-mas {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all .2s ease;
}

.cantidad .qty-menos:hover,
.cantidad .qty-mas:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.cantidad .qty-valor {
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* ================= CATÁLOGO: botón agregar rápido ================= */
.catalogo-card {
    position: relative;
}

.catalogo-card-media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.catalogo-card-media img {
    margin-bottom: 0;
}

.catalogo-card .btn-add {
    bottom: 60px;
}

/* ================= QUINCENAS ================= */
.quincenas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quincena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    color: #666;
    transition: all .2s ease;
}

.quincena input {
    accent-color: #E97B08;
}

.quincena strong {
    font-size: 16px;
    color: #111;
}

.quincena-monto {
    font-size: 12px;
    font-weight: 600;
    color: #E97B08;
    margin-top: 2px;
}

.quincena:has(input:checked) {
    border-color: #E97B08;
    background: #fff7ef;
}

.quincena-disabled {
    opacity: .4;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .quincenas {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= CARRITO ================= */
.carrito-layout {
    display: grid;
    /* minmax(0, …) evita que el contenido (selects con opciones largas) ensanche la columna */
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.carrito-layout > *,
.carrito-resumen form,
.carrito-resumen .form-group {
    min-width: 0;
}

.carrito-resumen select,
.carrito-resumen input[type="text"],
.carrito-resumen input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
}

.carrito-vacio {
    background: #fff;
    border-radius: 10px;
    padding: 60px 30px;
    text-align: center;
    color: #666;
}

.carrito-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.carrito-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.carrito-item-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.carrito-item-info span {
    font-size: 13px;
    color: #666;
}

.carrito-item-subtotal {
    font-size: 14px;
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

.carrito-remove {
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
}

.carrito-remove:hover {
    color: #d33;
}

.carrito-resumen {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    position: sticky;
    top: 20px;
}

.carrito-resumen h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.login-prompt {
    padding-top: 6px;
}

.login-prompt .form-sub {
    margin-bottom: 16px;
}

.carrito-resumen-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

@media (max-width: 900px) {
    .carrito-layout {
        grid-template-columns: 1fr;
    }

    .carrito-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "img info"
            "img subtotal"
            "img remove";
    }
}

/* ================= AUTENTICACIÓN (login / registro / cuenta) ================= */
.auth-section {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    background: #fff;
    max-width: 420px;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-box h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-box .form-sub {
    margin-bottom: 24px;
}

.auth-box form {
    background: transparent;
    padding: 0;
}

.auth-box .form-error {
    display: none;
    background: #fdecec;
    color: #b42318;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-box .form-error.show {
    display: block;
}

.auth-box .form-ok {
    display: none;
    background: #e8f5ee;
    color: #157347;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-box .form-ok.show {
    display: block;
}

/* Enlaces con aspecto de botón secundario (p. ej. "Cambiar contraseña" en los paneles) */
a.panel-btn-secundario {
    display: inline-block;
    text-decoration: none;
    margin-right: 8px;
}

.auth-box .form-actions {
    justify-content: stretch;
}

.auth-box .btn-submit {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.auth-switch a {
    color: #E97B08;
    text-decoration: none;
    font-weight: 500;
}

.cuenta-info {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.cuenta-info p {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.cuenta-info strong {
    color: #111;
}

.pedidos-lista {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.pedidos-lista h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.pedido-fila {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.pedido-fila strong {
    color: #111;
}

.pedido-estado {
    display: block;
    color: #E97B08;
    font-weight: 500;
}

.pedido-total {
    white-space: nowrap;
    color: #111;
    font-weight: 500;
}

/* ================= PANELES INTERNOS (RH, MKT) ================= */
.panel {
    padding: 40px 0 80px;
    background: #f6f6f6;
    min-height: 70vh;
}

.panel-usuario {
    font-size: 13px;
    color: #666;
    margin-right: 12px;
}

.panel-btn-secundario,
.panel-btn-peligro,
.panel-btn-peligro-borde {
    border-radius: 6px;
    padding: 9px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.panel-btn-secundario {
    background: #fff;
    border: 1px solid #ccc;
    color: #111;
}

.panel-btn-secundario:hover {
    border-color: #111;
}

.panel-btn-peligro {
    background: #b42318;
    border: 1px solid #b42318;
    color: #fff;
}

.panel-btn-peligro-borde {
    background: #fff;
    border: 1px solid #b42318;
    color: #b42318;
}

.panel-btn-peligro-borde:hover {
    background: #fdecec;
}

.panel-btn-secundario:disabled,
.panel-btn-peligro:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.panel-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    font: inherit;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.panel-tab.active {
    color: #111;
    border-bottom-color: #E97B08;
    font-weight: 600;
}

.panel-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

.panel-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    font: inherit;
    cursor: pointer;
}

.panel-item:hover,
.panel-item.active {
    border-color: #E97B08;
}

.panel-item-folio {
    font-size: 12px;
    color: #E97B08;
    font-weight: 600;
}

.panel-item-nombre {
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.panel-item-meta {
    display: block;
    font-size: 12px;
    color: #666;
}

.panel-detalle {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
}

.panel-detalle h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.panel-estado {
    color: #E97B08;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 18px;
}

.panel-subtitulo {
    margin: 26px 0 10px;
    font-size: 15px;
}

.panel-fila {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 14px;
    color: #666;
}

.panel-fila strong {
    color: #111;
    font-weight: 500;
    text-align: right;
}

.panel-total {
    border-top: 1px solid #eee;
    margin-top: 6px;
    padding-top: 12px;
}

.panel-total strong {
    font-size: 16px;
}

.panel-items {
    margin-top: 16px;
    border-top: 1px solid #eee;
}

.panel-item-linea {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #444;
}

.panel-sueldo {
    margin-top: 24px;
}

.panel-sueldo label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.panel-sueldo-controles {
    display: flex;
    gap: 8px;
}

.panel-sueldo-controles input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 9px 12px;
    font: inherit;
    font-size: 14px;
}

.panel-nota {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.panel-calculo {
    margin-top: 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px 20px;
}

.panel-calculo h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.panel-resultado {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.panel-resultado.ok {
    background: #e7f6ec;
    color: #157347;
}

.panel-resultado.no {
    background: #fdecec;
    color: #b42318;
}

.panel-error {
    margin-top: 14px;
    background: #fdecec;
    color: #b42318;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.panel-acciones {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.panel-acciones .btn-submit {
    flex: 1;
}

.panel-rechazo {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-rechazo textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.panel-revision {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-left: 3px solid #ccc;
    background: #fafafa;
    font-size: 13px;
}

.panel-revision.autorizado {
    border-left-color: #157347;
}

.panel-revision.rechazado {
    border-left-color: #b42318;
}

.panel-motivo {
    color: #b42318;
    font-size: 12px;
}

.panel-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #ececec;
    border-radius: 12px;
}

.panel-grupo-cabecera {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 4px 4px;
    font-size: 14px;
}

.panel-grupo-total {
    font-size: 12px;
    font-weight: 600;
    color: #E97B08;
}

.panel-quincena {
    display: grid;
    grid-template-columns: 1fr auto 100px;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eee;
}

.panel-quincena:last-child {
    border-bottom: 0;
}

.panel-quincena-estado {
    text-align: right;
    font-size: 12px;
    color: #b26a00;
}

.panel-quincena.paid .panel-quincena-estado {
    color: #157347;
}

@media (max-width: 900px) {
    .panel-layout {
        grid-template-columns: 1fr;
    }
}

/* ================= FACTURA EN EL CARRITO ================= */
.factura-campos {
    min-width: 0;
    margin: 4px 0 18px;
    padding: 18px 18px 6px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
}

.carrito-resumen .factura-campos .form-group {
    margin-bottom: 10px;
}

.carrito-resumen .factura-campos .form-sub {
    margin-bottom: 12px;
    font-size: 13px;
}

/* RFC + código postal en una sola fila */
.factura-fila {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 12px;
}

/* ---- Compactar el resumen del carrito ---- */
.carrito-resumen {
    padding: 24px;
}

.carrito-resumen h3 {
    margin-bottom: 12px;
}

.carrito-resumen-total {
    margin: 12px 0;
    padding-top: 12px;
}

.carrito-resumen .form-sub {
    margin-bottom: 16px;
}

/* el formulario global trae 40px de padding: aquí ya estamos dentro de una tarjeta */
.carrito-resumen form {
    padding: 20px;
}

.carrito-resumen .form-group {
    margin-bottom: 14px;
}

.carrito-resumen .form-group input,
.carrito-resumen .form-group select {
    padding: 10px 12px;
}

.carrito-resumen .metodo-label {
    display: block;
    margin-bottom: 8px;
}

.carrito-resumen .quincena {
    padding: 10px 4px;
    gap: 4px;
}

.carrito-resumen .check {
    margin: 12px 0;
}

.carrito-resumen .factura-campos .check {
    margin: 4px 0 8px;
}

.carrito-resumen .btn-submit {
    width: 100%;
}

.campo-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #b42318;
}

.factura-datos {
    margin: 10px 0 4px;
    padding: 12px 14px;
    background: #fafafa;
    border-left: 3px solid #E97B08;
    font-size: 13px;
    color: #444;
}

.factura-datos .panel-fila {
    padding: 3px 0;
    font-size: 13px;
}

/* ================= HISTORIAL DE COMPRAS (mis-pedidos.html) ================= */
.hist {
    max-width: 820px;
}

.hist-filtros {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.hist-filtro {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 7px 16px;
    font: inherit;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.hist-filtro.active {
    background: #0b132b;
    border-color: #0b132b;
    color: #fff;
}

.hist-pedido {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 18px;
}

.hist-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hist-folio {
    font-size: 16px;
}

.hist-fecha {
    font-size: 13px;
    color: #777;
}

.hist-estado {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff3e4;
    color: #b26a00;
    white-space: nowrap;
}

.hist-estado.entregado { background: #e7f6ec; color: #157347; }
.hist-estado.cancelado, .hist-estado.rh_rechazado { background: #fdecec; color: #b42318; }

.hist-productos {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    border-top: 1px solid #f0f0f0;
}

.hist-productos li {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.hist-productos img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f3f3;
}

.hist-producto-precio {
    color: #111;
    font-weight: 500;
}

.hist-datos {
    margin-bottom: 8px;
}

.hist-entrega strong {
    color: #E97B08;
}

.hist-pasos {
    list-style: none;
    margin: 18px 0 6px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hist-paso {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #999;
    border-top: 3px solid #e3e3e3;
    padding-top: 8px;
}

.hist-paso.done { border-top-color: #157347; color: #157347; }
.hist-paso.current { border-top-color: #E97B08; color: #b26a00; }
.hist-paso.failed { border-top-color: #b42318; color: #b42318; }

.hist-paso-marca { display: none; }
.hist-paso-texto { font-weight: 500; }
.hist-paso-detalle { color: #555; }

.hist-link {
    background: none;
    border: 0;
    padding: 6px 0;
    font: inherit;
    font-size: 13px;
    color: #E97B08;
    cursor: pointer;
}

.hist-bitacora {
    margin: 8px 0;
    padding: 4px 0 4px 14px;
    border-left: 3px solid #eee;
}

.hist-evento {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.hist-evento strong { color: #111; font-weight: 500; }

.hist-cancelar {
    border-color: #b42318 !important;
    color: #b42318 !important;
}

.hist-cancelar:hover {
    background: #b42318 !important;
    color: #fff !important;
}

.hist-nota {
    font-size: 12px;
    color: #888;
}

.nav-icons .orders-link {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    margin-right: 6px;
}

.nav-icons .orders-link:hover {
    color: #E97B08;
}

@media (max-width: 640px) {
    .hist-pasos { grid-template-columns: 1fr 1fr; }
    .hist-cabecera { flex-direction: column; align-items: flex-start; }
}

.pedido-fecha {
    display: block;
    margin-top: 2px;
    color: #111;
    font-weight: 500;
}

.panel-sueldo-controles input[type="date"] {
    font-family: inherit;
}

.pedido-motivo {
    display: block;
    margin-top: 4px;
    color: #b42318;
}

.pedido-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pedido-acciones button {
    background: #fff;
    border: 1px solid #E97B08;
    color: #E97B08;
    border-radius: 6px;
    padding: 6px 12px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.pedido-acciones button:hover {
    background: #E97B08;
    color: #fff;
}

/* ================= CATALOGO: responsive (anulado a propósito al final) ================= */
@media (max-width: 1024px) {
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
    }

    .catalogo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .catalogo-header h2 {
        font-size: 32px;
    }

    .catalogo-filtros {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}