/**
 * LauraBordados — Estilos principales
 * Autor: Daniel Rivero Escobar
 * Año: 2026
 * Todos los derechos reservados
 */

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

body {
    font-family: Arial, sans-serif;
    background-color: #FDF5FA;
    color: #2A1A35;
    background-color: #fdf2f8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23e8b8d0' opacity='0.3' transform='translate(2,2)'%3E%3Ccircle cx='60' cy='30' r='14'/%3E%3Ccircle cx='40' cy='55' r='14'/%3E%3Ccircle cx='80' cy='55' r='14'/%3E%3Ccircle cx='60' cy='80' r='14'/%3E%3Ccircle cx='60' cy='55' r='10'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='0.5' transform='translate(-1,-1)'%3E%3Ccircle cx='60' cy='30' r='14'/%3E%3Ccircle cx='40' cy='55' r='14'/%3E%3Ccircle cx='80' cy='55' r='14'/%3E%3Ccircle cx='60' cy='80' r='14'/%3E%3Ccircle cx='60' cy='55' r='10'/%3E%3C/g%3E%3Cg fill='%23f7d6e6' opacity='0.6'%3E%3Ccircle cx='60' cy='30' r='14'/%3E%3Ccircle cx='40' cy='55' r='14'/%3E%3Ccircle cx='80' cy='55' r='14'/%3E%3Ccircle cx='60' cy='80' r='14'/%3E%3Ccircle cx='60' cy='55' r='10'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px;
    background-attachment: fixed;
}

nav {
    background-color: #4A2370;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.nav-buttons button {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
}

.nav-buttons button:first-child {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.nav-buttons button:last-child {
    background-color: #E8A0BF;
    color: white;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background-color: #E8EDD8;
    color: #6B7C3E;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 42px;
    color: #4A2370;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 15px;
    color: #6B5B73;
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 24px;
}

.hero-buttons button {
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
}

.btn-primary {
    background-color: #7B4F9E;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #7B4F9E;
    color: #7B4F9E;
}

.hero-img {
    flex: 1;
    background-color: #F3E5FB;
    height: 350px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
}

.categorias {
    padding: 60px 40px;
    text-align: center;
}

.categorias h2 {
    font-size: 28px;
    color: #4A2370;
    margin-bottom: 32px;
}

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

.cat-card {
    background-color: white;
    border-radius: 16px;
    padding: 28px 16px;
    box-shadow: 0 2px 10px rgba(123, 79, 158, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.cat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.cat-card h4 {
    color: #4A2370;
    font-size: 14px;
    margin-bottom: 6px;
}

.cat-card p {
    font-size: 12px;
    color: #8A7A95;
}

.galeria {
    padding: 60px 40px;
    background-color: #F3E8F7;
}

.galeria h2 {
    font-size: 2.2rem;
    font-size: 28px;
    color: #4A2370;
    margin-bottom: 24px;
}

.filtros {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.filtro-btn {
    padding: 8px 20px;
    border-radius: 18px;
    border: 1.5px solid #D4C8DC;
    background-color: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #8A7A95;
    cursor: pointer;
}

.filtro-btn.active {
    background-color: #7B4F9E;
    color: white;
    border-color: #7B4F9E;
}

.productos-grid {
    margin: 0 auto;
    max-width: 700px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.prod-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(123, 79, 158, 0.08);
}

.prod-img {
    height: 180px;
    background-color: #F3E5FB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
}

.prod-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #E0F2E9;
    color: #2A7A52;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 10px;
}

.prod-stock.poco {
    background-color: #FFF3E0;
    color: #A05A00;
}

.prod-info {
    padding: 16px;
}

.prod-info h4 {
    color: #4A2370;
    font-size: 15px;
    margin-bottom: 6px;
}

.prod-info p {
    font-size: 12px;
    color: #8A7A95;
    margin-bottom: 14px;
}

.prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-price {
    color: #7B4F9E;
    font-weight: bold;
    font-size: 17px;
}

.btn-add {
    background-color: #E8A0BF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.pedidos {
    padding: 60px 40px;
}

.pedidos h2 {
    font-size: 28px;
    color: #4A2370;
    margin-bottom: 24px;
}

.pedidos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pedido-card {
    background-color: white;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(123, 79, 158, 0.08);
    border-left: 4px solid #7B4F9E;
}

.pedido-icon {
    font-size: 30px;
}

.pedido-info h4 {
    font-size: 14px;
    color: #4A2370;
    margin-bottom: 6px;
}

.pedido-info p {
    font-size: 12px;
    color: #8A7A95;
    margin-bottom: 10px;
}

.pedido-status {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 10px;
}

.pedido-status.proceso {
    background-color: #F3E5FB;
    color: #7B4F9E;
}

.pedido-status.enviado {
    background-color: #E3F0FF;
    color: #1A5FAD;
}

.pedido-status.listo {
    background-color: #E0F2E9;
    color: #2A7A52;
}

.contabilidad {
    padding: 60px 40px;
    background-color: #2A1A35;
}

.contabilidad h2 {
    font-size: 28px;
    color: white;
}

.contab-subtitle {
    font-size: 13px;
    color: #9AAD5A;
    margin-bottom: 28px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
}

.kpi-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
}

.kpi-delta {
    font-size: 11px;
    font-weight: bold;
}

.kpi-delta.up {
    color: #9AAD5A;
}

.kpi-delta.down {
    color: #E8A0BF;
}

.grafica {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
}

.barra-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.barra {
    width: 100%;
    background: linear-gradient(180deg, #E8A0BF, #7B4F9E);
    border-radius: 6px 6px 0 0;
}

.barra-wrap span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.btn-admin {
    display: none;
    color: #9AAD5A;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-right: 12px;
    align-self: center;
}

footer {
    background-color: #4A2370;
    padding: 40px 40px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-brand h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.7;
}

.footer-col h5 {
    color: #E8A0BF;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    background-color: white;
    border-radius: 20px;
    padding: 36px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 16px 48px rgba(123, 79, 158, 0.15);
    border-top: 5px solid #7B4F9E;
}

.auth-card h3 {
    text-align: center;
    color: #4A2370;
    font-size: 20px;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    font-size: 12px;
    color: #8A7A95;
    margin-bottom: 24px;
}

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

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

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #4A2370;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #D4C8DC;
    border-radius: 11px;
    font-size: 13px;
    font-family: inherit;
    background-color: #FDF5FA;
    color: #2A1A35;
}

.form-group input:focus {
    outline: none;
    border-color: #7B4F9E;
}

.btn-full {
    width: 100%;
    background-color: #7B4F9E;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: #8A7A95;
}

.auth-footer a {
    color: #7B4F9E;
    font-weight: bold;
    text-decoration: none;
}

.carrito-icon {
    display: none;
    position: relative;
    width: 24px;
    height: 24px;
    font-size: 22px;
    margin-right: 14px;
}


.carrito-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #9AAD5A;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 26, 53, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.activo {
    display: flex;
}

.modal-box {
    background-color: white;
    border-radius: 20px;
    padding: 36px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border-top: 5px solid #7B4F9E;
}

.modal-box h3 {
    text-align: center;
    color: #4A2370;
    font-size: 20px;
    margin-bottom: 6px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #8A7A95;
    cursor: pointer;
}

#modal-pedidos .modal-box {
    max-width: 700px;
    width: 90%;
}

#modal-pedidos .pedidos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

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

.pedidos-admin {
    padding: 24px;
    margin-top: 24px;
}

.pedidos-admin h2 {
    color: white;
    margin-bottom: 16px;
}

.tabla-pedidos {
    width: 100%;
    border-collapse: collapse;
    background: #2a1a3a;
    border-radius: 12px;
    overflow: hidden;
}

.tabla-pedidos th,
.tabla-pedidos td {
    padding: 12px 16px;
    text-align: left;
    color: #eee;
    border-bottom: 1px solid #3a2a4a;
    word-break: break-word;
    max-width: 180px;
}

.tabla-pedidos th {
    background: #3a2a4a;
    color: #d8b4fe;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.tabla-pedidos tr:last-child td {
    border-bottom: none;
}

.oculto {
    display: none !important;
}

.admin-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    background: linear-gradient(135deg, #2a1a3a, #1a0f2a);
    color: white;
    padding: 40px 20px;
}

.admin-home-logo {
    font-size: 80px;
    margin-bottom: 16px;
}

.admin-home h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.admin-home p {
    color: #d8b4fe;
    margin-bottom: 32px;
}

.admin-home-buttons {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.admin-home-buttons button {
    width: 100%;
    white-space: nowrap;
}

.admin-home-buttons button {
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.admin-home-buttons .btn-primary {
    background: #a21caf;
    color: white;
}

.admin-home-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #a21caf;
}

.btn-volver {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #a21caf;
    border: 2px solid #a21caf;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
}

.pedidos-admin {
    background: linear-gradient(135deg, #2a1a3a, #1a0f2a);
    min-height: 100vh;
    padding: 32px 24px;
}

.select-estado {
    background: #1a0f2a;
    color: #eee;
    border: 1px solid #4a2a5a;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.aviso-guardado {
    display: inline-block;
    margin-left: 10px;
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: bold;
    transition: opacity 0.5s ease;
}

.estado-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.estado-badge {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.estado-badge.estado-en_preparacion {
    background: #fb923c; /* naranja */
}

.estado-badge.estado-enviado {
    background: #60a5fa; /* azul */
}

.estado-badge.estado-entregado {
    background: #4ade80; /* verde */
}

.estado-badge.estado-cancelado {
    background: #f87171; /* rojo */
}

.estado-badge.estado-pendiente_verificacion {
    background: #fb923c; /* naranja — esperando verificación */
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/fondopag.png');
    background-size: cover;
    background-position: center 7%;
    background-repeat: no-repeat;
    padding: 40px 20px;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-text p {
    margin: 0 auto 24px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

#modal-productos .modal-box {
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.vista-productos {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fdf2f8;
    z-index: 9999;
    overflow-y: auto;
}

.vista-productos.activo {
    display: block;
}

.vista-productos-box {
    width: 100%;
    min-height: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria {
    background-image: url('../img/prod6.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.prod-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

footer {
    padding: 20px 40px !important;
}

.footer-grid {
    margin-bottom: 12px !important;
    gap: 20px !important;
}

.footer-bottom {
    padding-top: 10px !important;
    margin-top: 10px !important;
}

footer {
    padding: 14px 40px !important;
}

.footer-grid {
    margin-bottom: 8px !important;
    gap: 16px !important;
}

.footer-bottom {
    padding-top: 6px !important;
    margin-top: 6px !important;
}

.footer-brand p,
.footer-col ul {
    margin: 0 !important;
}

.footer-col h5 {
    margin-bottom: 6px !important;
}

.hero {
    align-items: flex-start;
    padding-top: 20px;
}

.hero-text {
    transform: translateX(-30px);
}

.hero-text h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    line-height: 1.4;
}

.hero-text h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: normal !important;
}
.nav-links a {
    display: inline-block;
    background-color: #E8A0BF;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: #d988ab;
}

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

.nav-links.nav-links-admin {
    flex: 1;
    gap: 16px;
    justify-content: center;
}
.quienes-somos-content h4 {
    color: #7e22ce;
    margin-top: 16px;
    margin-bottom: 8px;
}

.quienes-somos-content p {
    color: #555;
    line-height: 1.6;
}

.prod-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdf2f8;
    padding: 24px 30px;
    box-sizing: border-box;
}

.prod-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-info h4 {
    font-family: 'Pacifico', cursive;
    font-weight: normal;
    font-size: 1.4rem;
    color: #7e22ce;
    text-transform: uppercase;
    text-align: center;
}

.prod-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px 16px;
}

.btn-ver {
    background-color: #E8A0BF;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-ver:hover {
    background-color: #d988ab;
}
.galeria h2 {
    font-size: 2.2rem;
    text-align: center;
}

.filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.prod-info h4 {
    font-size: 1rem;
}

.prod-imagen {
    object-position: center 80%;
}

/* Ajuste: "Amigurumi" con el mismo estilo de letra que "Nuestros productos" */
.prod-info h4 {
    font-family: Arial, sans-serif;
    text-transform: none;
    color: #4A2370;
    font-weight: bold;
}

.prod-info h4 {
    font-size: 1.2rem;
}


#nav-admin .nav-links { order: 3; }
#nav-admin .nav-buttons { order: 2; }

/* === BOTONES DE PERÍODO — DASHBOARD INGRESOS === */
.btn-periodo {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.btn-periodo.btn-primary {
    background: linear-gradient(135deg, #a21caf, #7e22ce);
    color: #fff;
    border-color: #d946ef;
    box-shadow: 0 0 12px rgba(162, 28, 175, 0.5);
}

.btn-periodo.btn-secondary {
    background: transparent;
    color: #d8b4fe;
    border-color: #4a2a5a;
}

.btn-periodo.btn-secondary:hover {
    background: rgba(162, 28, 175, 0.15);
    border-color: #a21caf;
    color: #fff;
}

/* === BOTONES DE PERÍODO — EGRESOS (mismo estilo que ingresos) === */
.btn-periodo-egreso {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.btn-periodo-egreso.btn-primary {
    background: linear-gradient(135deg, #a21caf, #7e22ce);
    color: #fff;
    border-color: #d946ef;
    box-shadow: 0 0 12px rgba(162, 28, 175, 0.5);
}

.btn-periodo-egreso.btn-secondary {
    background: transparent;
    color: #d8b4fe;
    border-color: #4a2a5a;
}

.btn-periodo-egreso.btn-secondary:hover {
    background: rgba(162, 28, 175, 0.15);
    border-color: #a21caf;
    color: #fff;
}

/* KPI cards de egresos y utilidad neta */
.kpi-card.kpi-egresos { border-left: 4px solid #f87171; }
.kpi-card.kpi-egresos .kpi-value { color: #f87171; }
.kpi-card.rojo { border-left: 4px solid #f87171; }
.kpi-card.rojo .kpi-value { color: #f87171; }
.kpi-card.verde { border-left: 4px solid #4ade80; }
.kpi-card.verde .kpi-value { color: #4ade80; }

/* === BOTONES DE FERIAS (mismo estilo que períodos) === */
.btn-feria-primary {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid #d946ef;
    background: linear-gradient(135deg, #a21caf, #7e22ce);
    color: #fff;
    box-shadow: 0 0 12px rgba(162, 28, 175, 0.5);
    transition: all 0.2s ease;
}

.btn-feria-secondary {
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid #4a2a5a;
    background: transparent;
    color: #d8b4fe;
    transition: all 0.2s ease;
}

.btn-feria-secondary:hover {
    background: rgba(162, 28, 175, 0.15);
    border-color: #a21caf;
    color: #fff;
}

/* === BOTÓN VOLVER AL PANEL — estilo gradiente === */
.btn-volver.btn-volver-inicio {
    background: linear-gradient(135deg, #a21caf, #7e22ce);
    border: 2px solid #d946ef;
    box-shadow: 0 0 12px rgba(162, 28, 175, 0.5);
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-volver.btn-volver-inicio:hover {
    box-shadow: 0 0 20px rgba(162, 28, 175, 0.7);
}

/* === RESPONSIVE MÓVIL === */
@media (max-width: 768px) {

    /* NAVBAR */
    nav {
        padding: 10px 16px;
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        order: 1;
    }

    .btn-menu-movil {
        order: 2;
    }

    .btn-menu-movil {
        display: block;
        background: transparent;
        border: 2px solid white;
        color: white;
        font-size: 20px;
        padding: 4px 10px;
        border-radius: 8px;
        cursor: pointer;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        order: 3;
        margin-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .nav-links.menu-abierto {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        list-style: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        background-color: transparent !important;
        color: white !important;
        text-align: left;
        padding: 12px 8px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0 !important;
    }

    .nav-buttons {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        order: 4;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .nav-buttons.menu-abierto {
        display: flex !important;
    }

    .nav-buttons button,
    .nav-buttons a {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    .nav-links a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .nav-buttons button {
        font-size: 12px;
        padding: 6px 12px;
        margin-left: 0;
    }

    .btn-admin {
        font-size: 12px;
    }

    /* HERO */
    .hero {
        padding: 20px 16px;
        min-height: auto;
        height: 55vw;
        background-position: center top;
        background-size: cover;
        align-items: flex-start;
        padding-top: 10px;
    }

    .hero-text {
        transform: none;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    /* QUITAR ESPACIO BLANCO DEBAJO DEL FOOTER */
    html, body {
        overflow-x: hidden;
        height: auto;
        min-height: auto;
    }

    body {
        background-attachment: scroll;
    }

    footer {
        margin-bottom: 0 !important;
    }

    /* PANEL ADMIN RESPONSIVE MÓVIL */
    .admin-home {
        padding: 16px !important;
    }

    .admin-home-logo {
        width: 80px !important;
        height: 80px !important;
    }

    .admin-home h1 {
        font-size: 1.4rem !important;
    }

    .admin-home-buttons {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
        padding: 0 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .admin-home-buttons button {
        padding: 22px 10px !important;
        font-size: 0.88rem !important;
        min-height: 100px !important;
        border-radius: 16px !important;
        line-height: 1.4 !important;
        width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* SECCIONES ADMIN EN MÓVIL */
    .pedidos-admin {
        padding: 16px !important;
    }

    .pedidos-admin h2 {
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
    }

    /* MENÚ HAMBURGUESA MEJORADO */
    .nav-links.menu-abierto {
        background: #2d1b4e !important;
        border-radius: 0 0 12px 12px !important;
        padding: 8px 0 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    }

    .nav-links a {
        padding: 14px 20px !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .nav-buttons.menu-abierto {
        background: #2d1b4e !important;
        padding: 12px 16px !important;
        border-radius: 0 0 12px 12px !important;
        gap: 10px !important;
    }

    .nav-buttons.menu-abierto button,
    .nav-buttons.menu-abierto a {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
        text-align: center !important;
    }

    /* GALERÍA */
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 8px !important;
    }

    .galeria-card {
        font-size: 0.85rem;
    }

    /* PRODUCTOS */
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 8px;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        text-align: justify;
    }

    footer {
        padding: 20px 16px !important;
    }

    /* MODAL */
    .modal-box {
        width: 95%;
        padding: 20px 16px;
        margin: 0 auto;
    }

    /* CHAT BURBUJA */
    #chat-panel {
        width: 290px !important;
        left: 8px !important;
        bottom: 80px !important;
    }

    #chat-burbuja {
        bottom: 16px !important;
        right: 16px !important;
        top: auto !important;
        left: auto !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.3rem !important;
    }

    #chat-panel {
        bottom: 80px !important;
        right: 8px !important;
        top: auto !important;
        left: auto !important;
    }



    /* BOTÓN VOLVER */
    .btn-volver {
        padding: 10px 16px;
        font-size: 0.8rem;
        bottom: 16px;
        right: 16px;
    }

    /* BANNER TEMPORAL */
    #banner-temporal, #banner-imprimir {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        font-size: 11px;
        padding: 5px 10px;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .galeria-grid {
        grid-template-columns: 1fr !important;
    }

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

    #chat-panel {
        width: calc(100vw - 16px) !important;
        left: 8px !important;
    }
}

/* === COLIBRÍ ANIMADO HERO === */
.hero-logo-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 16px;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.colibri-volador {
    position: absolute;
    width: 90px;
    animation: volarAlrededor 7s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes volarAlrededor {
    0%   { top: -10px;  left: 50%;   transform: translateX(-50%) scaleX(1); }
    25%  { top: 50%;    left: 110%;  transform: translateY(-50%) scaleX(-1); }
    50%  { top: 110%;   left: 50%;   transform: translateX(-50%) scaleX(-1); }
    75%  { top: 50%;    left: -20px; transform: translateY(-50%) scaleX(1); }
    100% { top: -10px;  left: 50%;   transform: translateX(-50%) scaleX(1); }
}

.colibri-estatico {
    position: absolute;
    bottom: 40px;
    left: 60px;
    width: 90px;
    pointer-events: none;
    z-index: 10;
    animation: flotar 3s ease-in-out infinite;
}

@keyframes flotar {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero {
    position: relative;
    overflow: hidden;
}

/* === COLIBRÍ JUNTO AL LOGO (inferior derecha) === */
.colibri-logo {
    position: absolute;
    bottom: 18%;
    right: 22%;
    width: 100px;
    pointer-events: none;
    z-index: 10;
    transform: scaleX(-1);
    animation: flotar 3s ease-in-out infinite;
}



/* === STICKY FOOTER — el footer siempre al fondo de la pantalla === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

footer {
    margin-top: auto;
}


/* === HERO LLENA EL ESPACIO ENTRE NAV Y FOOTER EN MÓVIL === */
/* min-height estable: el hero no se comprime cuando se abre el menú */
@media (max-width: 768px) {
    .hero {
        flex: 1;
        height: auto;
        min-height: 55vw;
        align-items: center;
        padding-top: 0;
    }
}


/* === BAJAR FRASE DEL HERO EN MÓVIL === */
@media (max-width: 768px) {
    .hero-text {
        margin-top: 86px;
    }
}


/* === MENÚ HAMBURGUESA COMPACTO — GRID 2x2 === */
@media (max-width: 768px) {
    .nav-links.menu-abierto {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px !important;
    }

    .nav-links.menu-abierto li {
        width: auto;
    }

    .nav-links.menu-abierto a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center !important;
        min-height: 52px;
        padding: 8px 10px !important;
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 12px !important;
        border-bottom: 1px solid rgba(255,255,255,0.15) !important;
        white-space: normal;
        line-height: 1.3;
    }

    /* Zona de sesión: todo en una sola fila */
    .nav-buttons.menu-abierto {
        display: grid !important;
        grid-template-columns: auto 1.2fr 1fr 1.2fr;
        gap: 8px !important;
        padding: 12px !important;
        align-items: stretch;
    }

    .nav-buttons.menu-abierto > * {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 6px 8px !important;
        border-radius: 12px !important;
        font-size: 0.8rem !important;
        white-space: normal;
        line-height: 1.2;
        text-align: center !important;
        margin: 0 !important;
    }

    .nav-buttons.menu-abierto .carrito-icon {
        width: auto;
        height: auto;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        padding: 6px 12px !important;
        margin-right: 0 !important;
    }

    .nav-buttons.menu-abierto .btn-admin {
        background: rgba(154,173,90,0.15);
        border: 1px solid rgba(154,173,90,0.4);
        margin-right: 0 !important;
    }
}


/* === OCULTAR FRASE DEL HERO CUANDO EL MENÚ ESTÁ ABIERTO === */
@media (max-width: 768px) {
    .hero-text {
        transition: opacity 0.25s ease;
    }

    body:has(.nav-links.menu-abierto) .hero-text,
    body:has(.nav-buttons.menu-abierto) .hero-text {
        opacity: 0;
        pointer-events: none;
    }
}


/* === COLIBRÍ DERECHO — MÁS ABAJO Y MÁS A LA DERECHA EN MÓVIL === */
@media (max-width: 768px) {
    .colibri-logo {
        bottom: 10%;
        right: 12%;
    }
}


/* === BOTÓN INICIO DEL PANEL ADMIN — rosado compacto === */
.btn-inicio-panel {
    background-color: #E8A0BF;
    color: white;
    border: none;
    border-radius: 20px !important;
    padding: 2px 12px !important;
    font-size: 0.75rem !important;
    font-weight: bold;
    cursor: pointer;
    min-height: 0 !important;
    height: 26px !important;
    flex-direction: row !important;
    align-self: center;
    justify-self: center;
    transition: background-color 0.2s;
}

.btn-inicio-panel:hover {
    background-color: #d988ab;
}


/* === BOTÓN INICIO — refuerzo móvil (debe ir al final del archivo) === */
@media (max-width: 768px) {
    .admin-home-buttons .btn-inicio-panel {
        height: 32px !important;
        min-height: 0 !important;
        padding: 4px 16px !important;
        font-size: 0.8rem !important;
        border-radius: 20px !important;
        flex-direction: row !important;
        width: auto !important;
        align-self: center !important;
        justify-self: center !important;
    }
}


/* === MENÚ MÓVIL ADAPTABLE — funciona con cualquier cantidad de items visibles === */
@media (max-width: 768px) {
    /* Los <li> ocultados por JS no deben ocupar celda del grid */
    .nav-links.menu-abierto li:has(> a[style*="display: none"]),
    .nav-links.menu-abierto li[style*="display: none"] {
        display: none !important;
    }

    /* Si solo queda 1 link visible, que ocupe el ancho completo */
    .nav-links.menu-abierto li:only-child,
    .nav-links.menu-abierto li:first-child:nth-last-child(1) {
        grid-column: 1 / -1;
    }

    /* nav-links-admin no debe interferir con el grid */
    .nav-links.nav-links-admin.menu-abierto {
        flex: none !important;
    }

    /* Botones de sesión ocultos por JS no ocupan celda */
    .nav-buttons.menu-abierto > [style*="display: none"] {
        display: none !important;
    }

    /* La barra de sesión se adapta a los elementos visibles */
    .nav-buttons.menu-abierto {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
    }
}


/* === CHAT: BURBUJA Y PANEL A LA IZQUIERDA EN MÓVIL === */
@media (max-width: 768px) {
    #chat-burbuja {
        left: 16px !important;
        right: auto !important;
        bottom: 16px !important;
    }

    #chat-panel {
        left: 8px !important;
        right: auto !important;
        bottom: 80px !important;
    }
}


/* === TARJETAS DE CATEGORÍAS — imagen completa, tamaño uniforme === */
.productos-grid .prod-img {
    padding: 10px 2px;
    background-color: #fdf2f8;
}

.productos-grid .prod-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}


/* === TABLAS ADMIN EN MÓVIL — scroll horizontal, columnas legibles === */
@media (max-width: 768px) {
    /* El contenedor de cada vista permite deslizar la tabla */
    .pedidos-admin {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* La tabla mantiene un ancho mínimo legible en vez de comprimirse */
    .tabla-pedidos {
        min-width: 760px;
    }

    .tabla-pedidos th,
    .tabla-pedidos td {
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        padding: 10px 12px;
        font-size: 0.85rem;
        max-width: 220px;
        vertical-align: middle;
    }

    /* Pista visual de que hay más contenido a la derecha */
    .tabla-pedidos th {
        position: sticky;
        top: 0;
    }
}


/* === MARCADOR DE VENTA EN FERIA === */
.marcador-feria {
    background: linear-gradient(135deg, #0d2a1a, #1a0f2a);
    border: 2px solid #4ade80;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    max-width: 500px;
}

.marcador-label {
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.marcador-total {
    color: #4ade80;
    font-size: 2.6rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 6px;
}

.marcador-unidades {
    color: #d8b4fe;
    font-size: 0.9rem;
}

.venta-feria-item {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #4ade80;
    border-radius: 8px;
    padding: 8px 12px;
    color: #eee;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    max-width: 500px;
}

@media (max-width: 768px) {
    .marcador-total { font-size: 2.2rem; }
}


/* === BOTÓN ANULAR VENTA EN FERIA === */
.btn-anular-venta {
    background: transparent;
    border: 1px solid #fb923c;
    border-radius: 6px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 8px;
}

.btn-anular-venta:hover {
    background: rgba(251, 146, 60, 0.15);
}


/* === TABLA FERIAS MÓVIL — botones de acción apilados y separados === */
@media (max-width: 768px) {
    .btn-vender-feria,
    .btn-cerrar-feria {
        display: block;
        width: 100%;
        white-space: nowrap;
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }

    .btn-vender-feria {
        margin: 0 !important;
    }

    /* Cerrar feria: bien abajo, lejos del Vender, y con aspecto distinto */
    .btn-cerrar-feria {
        margin: 32px 0 0 0 !important;
        background: transparent !important;
        border: 1.5px solid #f87171 !important;
        color: #f87171 !important;
        opacity: 0.85;
    }
}


/* === ENCABEZADOS DE TABLA MÓVIL — texto completo en 2 líneas, celdas centradas === */
@media (max-width: 768px) {
    .tabla-pedidos th {
        white-space: normal;
        max-width: none;
        min-width: 100px;
        text-align: center;
        vertical-align: middle;
        line-height: 1.3;
    }

    .tabla-pedidos td {
        text-align: center;
        vertical-align: middle;
    }
}


/* === BOTONES DE ACCIONES EN TABLAS MÓVIL — apilados === */
@media (max-width: 768px) {
    .tabla-pedidos td button {
        display: block;
        width: 100%;
        margin: 0 0 6px 0;
        white-space: nowrap;
    }
}


/* === CONTABILIDAD EN MÓVIL — KPIs en 2 columnas, sin scroll lateral === */
@media (max-width: 768px) {
    .contabilidad {
        padding: 20px 14px !important;
        overflow-x: hidden;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .kpi-card {
        padding: 14px !important;
    }

    .kpi-value {
        font-size: 1.15rem !important;
        word-break: break-word;
    }

    .kpi-label {
        font-size: 0.65rem !important;
    }

    /* Las tarjetas sueltas (ventas de productos, servicios, efectivo...) a ancho completo */
    .contabilidad > div[style*="flex"] > .kpi-card {
        min-width: calc(50% - 12px) !important;
        flex: 1 1 calc(50% - 12px) !important;
    }
}


/* === QUIÉNES SOMOS MÓVIL — fotos centradas === */
@media (max-width: 768px) {
    #modal-quienes-somos .quienes-somos-content img,
    #modal-quienes-somos [id*="fotos"] {
        margin-left: auto;
        margin-right: auto;
    }

    #modal-quienes-somos [id*="fotos"],
    #modal-quienes-somos .quienes-somos-content div[style*="flex"] {
        justify-content: center !important;
    }

    #modal-quienes-somos img {
        display: block;
        margin: 0 auto 10px;
        max-width: 100%;
    }
}


/* === QS-FOTOS-GRID — centrado definitivo en móvil === */
@media (max-width: 768px) {
    #qs-fotos-grid {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 10px;
    }

    #qs-fotos-grid img {
        max-width: 45%;
        height: auto;
        border-radius: 10px;
    }
}


/* === BOTÓN ELIMINAR FERIA === */
.btn-eliminar-feria {
    background: transparent;
    border: 1.5px solid #f87171;
    color: #f87171;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.btn-eliminar-feria:hover {
    background: rgba(248, 113, 113, 0.15);
}


/* === PANEL ADMIN MÓVIL — ORDEN PERSONALIZADO DE BOTONES === */
@media (max-width: 768px) {
    #btn-ver-registrar-venta   { order: 1; }
    #btn-ver-elaboracion       { order: 2; }
    #btn-ver-inventario        { order: 3; }
    #btn-ver-historial-ventas  { order: 4; }
    #btn-ver-pedidos           { order: 5; }
    #btn-ver-ferias            { order: 6; }
    #btn-ver-egresos           { order: 7; }
    #btn-ver-clientes          { order: 8; }
    #btn-ver-quienes-somos     { order: 9; }
    #btn-ver-contabilidad      { order: 10; }
    #btn-ver-mensajes          { order: 11; }
    #btn-ver-seguridad         { order: 12; }
    #btn-ir-inicio             { order: 13; }
}


/* === BOTÓN CANCELAR PEDIDO (cliente) === */
.btn-cancelar-pedido {
    background: transparent;
    border: 1.5px solid #f87171;
    color: #f87171;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    display: inline-block;
}

.btn-cancelar-pedido:hover {
    background: rgba(248, 113, 113, 0.12);
}

.pedido-status.cancelado {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}


/* === EVITAR QUE "VOLVER AL PANEL" TAPE ACCIONES DE TABLAS === */
#vista-inventario,
#vista-pedidos,
#vista-clientes,
#vista-ferias {
    padding-bottom: 100px;
}


/* === SEGURIDAD: Panel Admin nunca visible por defecto en menú móvil === */
/* Solo el JS (que valida el rol) puede mostrarlo, vía style inline */
@media (max-width: 768px) {
    .nav-buttons.menu-abierto > .btn-admin {
        display: none !important;
    }
}

/* ===== Dashboard de ingresos: grupos y tarjeta principal ===== */
.kpi-grupo-titulo {
    color: #d8b4fe;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin: 28px 0 12px;
}

#kpi-grid-ingresos .kpi-grupo-titulo:first-child {
    margin-top: 0;
}

.kpi-hero {
    background: linear-gradient(135deg, #7B4F9E, #4a1d96);
    border: 1px solid #a78bfa;
    margin-bottom: 14px;
}

.kpi-hero .kpi-label {
    font-size: 1rem;
    color: #e9d5ff;
}

.kpi-hero .kpi-value {
    font-size: 2.4rem;
    color: #ffffff;
}

/* ===== Restyle visual de tarjetas KPI (Opción A) ===== */
#vista-contabilidad .kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s ease, background 0.15s ease;
}

#vista-contabilidad .kpi-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.07);
}

#vista-contabilidad .kpi-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#vista-contabilidad .kpi-hero .kpi-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.15) !important;
}

#vista-contabilidad .kpi-icon-morado { background: rgba(167, 139, 250, 0.18); }
#vista-contabilidad .kpi-icon-azul   { background: rgba(96, 165, 250, 0.18); }
#vista-contabilidad .kpi-icon-verde  { background: rgba(74, 222, 128, 0.18); }
#vista-contabilidad .kpi-icon-rojo   { background: rgba(248, 113, 113, 0.18); }
#vista-contabilidad .kpi-icon-rosa   { background: rgba(216, 180, 254, 0.18); }

#vista-contabilidad .kpi-label {
    font-size: 0.78rem;
    color: #a78bfa;
    margin-bottom: 2px;
}

#vista-contabilidad .kpi-value {
    font-size: 1.3rem;
    font-weight: 600;
}

#vista-contabilidad .kpi-hero .kpi-value {
    font-size: 2.2rem;
}
