/* ========================================
   DISFRACES FANTASÍA - ESTILOS OPTIMIZADOS
   ======================================== */

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

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --bg-light: #f8f9ff;
    --text-dark: #1a1a2e;
    --text-muted: #666;
    --shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-attachment: fixed;
}

/* Accesibilidad */
*:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--primary); color: white; padding: 8px 16px;
    z-index: 1001; text-decoration: none; font-weight: bold;
}
.skip-link:focus { top: 0; }

/* Header */
header {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
nav {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.logo {
    font-size: 1.8rem; font-weight: bold;
    display: flex; align-items: center; gap: 0.8rem; color: white;
}
.logo-img { height: 50px; width: auto; border-radius: 10px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; }
.nav-clientes {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem; border-radius: 20px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 150px 2rem 100px; text-align: center;
    margin-top: 80px; position: relative; overflow: hidden;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-button {
    background: white; color: var(--primary);
    padding: 1rem 2.5rem; border: none; border-radius: 50px;
    font-size: 1.1rem; font-weight: bold; text-decoration: none;
    display: inline-block; transition: transform 0.3s;
}
.cta-button:hover { transform: scale(1.05); }

/* Sections */
section {
    max-width: 1200px; margin: 2rem auto; padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
section:first-of-type { margin-top: 0; border-radius: 0; background: transparent; box-shadow: none; }
h2 {
    font-size: 2.5rem; text-align: center; margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    position: relative;
}
h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

/* Servicios */
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.servicio-card {
    background: white; padding: 2rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); text-align: center; transition: transform 0.3s;
}
.servicio-card:hover { transform: translateY(-10px); }
.servicio-icon { font-size: 3rem; margin-bottom: 1rem; }
.servicio-card h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }

/* Catálogo */
.catalogo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.disfraz-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.3s;
}
.disfraz-card:hover { transform: translateY(-10px); }
.disfraz-img {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.disfraz-info { padding: 1.5rem; }
.precio { color: var(--primary); font-size: 1.3rem; font-weight: bold; margin-top: 0.5rem; }

/* Precios */
.precios-container {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 3rem; border-radius: var(--radius-lg); text-align: center;
}
.precios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 2rem; }
.precio-item { background: rgba(255,255,255,0.15); padding: 2rem; border-radius: var(--radius); }
.precio-item h3 { font-size: 2rem; margin-bottom: 0.5rem; }

/* Contacto */
.contacto-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.contacto-card {
    background: white; padding: 2rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); text-align: center; flex: 1 1 280px; max-width: 350px;
}
.mapa-card { flex: 1 1 100%; max-width: 100%; }
.mapa-container iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
.btn-mapa {
    display: inline-block; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 0.8rem 2rem; border-radius: 50px;
    text-decoration: none; font-weight: bold; margin-top: 1rem;
}
.contacto-icon img { width: 60px; height: 60px; }
.contacto-card h3 { color: var(--primary-dark); margin: 1rem 0; }
.contacto-card a { color: var(--primary); text-decoration: none; font-weight: bold; }

/* Redes */
.redes-sociales { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; }
.red-social img { width: 50px; height: 50px; border-radius: 50%; transition: transform 0.3s; }
.red-social:hover img { transform: scale(1.2); }

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white; text-align: center; padding: 2rem; margin-top: 4rem;
}

/* ========================================
   SISTEMA DE MODALES
   ======================================== */

.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000; overflow-y: auto; padding: 2rem;
}
.modal.active { display: flex; align-items: flex-start; justify-content: center; }
.modal-content {
    background: white; border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative; animation: modalSlideIn 0.3s ease; margin: auto;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.close-modal {
    position: absolute; top: 1rem; right: 1.5rem;
    font-size: 2rem; color: #999; cursor: pointer; z-index: 10;
    transition: color 0.2s;
}
.close-modal:hover { color: var(--danger); }

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

.modal-login-content { max-width: 420px; width: 100%; padding: 0; }
.login-container { padding: 3rem; text-align: center; }
.login-brand { margin-bottom: 2rem; }
.login-logo {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.login-brand h2 {
    color: var(--text-dark); font-size: 1.6rem; margin-bottom: 0.5rem;
    -webkit-text-fill-color: var(--text-dark);
}
.login-brand h2::after { display: none; }
.login-brand p { color: var(--text-muted); font-size: 0.95rem; }
.login-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.btn-google {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 28px; background: white; color: #444;
    border: 2px solid #ddd; border-radius: 50px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%; justify-content: center; max-width: 300px;
}
.btn-google:hover { background: #f8f9fa; border-color: var(--primary); box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
.btn-google:disabled { opacity: 0.5; cursor: not-allowed; }

.login-loading { display: flex; align-items: center; gap: 0.8rem; color: var(--primary); font-size: 0.9rem; }
.login-loading.loading-complete { display: none; }
.loading-spinner {
    width: 20px; height: 20px; border: 3px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

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

.modal-clientes-content { max-width: 900px; width: 100%; max-height: 95vh; overflow-y: auto; }
.modal-header-clientes {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 1rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-icon { font-size: 2rem; }
.modal-header-clientes h2 {
    color: white; -webkit-text-fill-color: white;
    margin: 0; font-size: 1.3rem;
}
.modal-header-clientes h2::after { display: none; }
.user-badge { font-size: 0.85rem; opacity: 0.9; display: block; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-logout {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2); color: white;
    border: none; padding: 0.5rem 1rem; border-radius: 20px;
    cursor: pointer; font-size: 0.85rem; transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255, 255, 255, 0.3); }
.modal-header-clientes .close-modal { position: static; color: white; font-size: 1.8rem; }

/* Stats Bar */
.stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--bg-light); padding: 1rem; gap: 1rem;
    border-bottom: 1px solid #eee;
}
.stat-item { text-align: center; }
.stat-icon { font-size: 1.5rem; display: block; }
.stat-value { font-size: 1.5rem; font-weight: bold; color: var(--primary); display: block; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Tabs */
.tabs-container {
    display: flex; background: #f5f5f5; padding: 0.5rem; gap: 0.3rem;
}
.tab-btn {
    flex: 1; padding: 0.7rem 0.5rem; border: none; background: transparent;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border-radius: 8px; display: flex; align-items: center;
    justify-content: center; gap: 0.4rem; transition: all 0.2s;
}
.tab-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tab-icon { font-size: 1rem; }
.tab-content { display: none; padding: 1.5rem; }
.tab-content.active { display: block; }

/* Forms */
.form-section { margin-bottom: 1.5rem; }
.section-label {
    font-size: 0.95rem; font-weight: 600; color: var(--primary);
    margin-bottom: 0.8rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 0.8rem; }
.form-group { margin-bottom: 0.5rem; }
.form-group label { display: block; margin-bottom: 0.3rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem; border: 2px solid #e0e0e0; border-radius: 8px;
    font-size: 0.95rem; transition: border-color 0.2s;
    font-family: Arial, sans-serif; font-weight: 600; color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); outline: none;
}
.form-group.full-width { grid-column: 1 / -1; }
.input-hint { display: block; font-size: 0.75rem; color: #888; margin-top: 0.2rem; }
.input-with-loader { position: relative; }
.input-loader {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    animation: spin 1s linear infinite;
}

/* Cliente Habitual Alert */
.cliente-habitual-alert {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.8rem;
}
.alert-icon { font-size: 1.5rem; }
.alert-text { font-weight: 600; color: var(--primary-dark); }
.alert-alquileres { margin-left: auto; background: var(--primary-dark); color: white; padding: 0.2rem 0.6rem; border-radius: 15px; font-size: 0.8rem; }

/* Alerta Deudas */
.alerta-deuda {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white; padding: 1rem; border-radius: 10px; margin-bottom: 1rem;
}
.deuda-lista { list-style: none; padding: 0; margin-top: 0.5rem; }
.deuda-lista li { background: rgba(255,255,255,0.2); padding: 0.4rem 0.6rem; border-radius: 6px; margin-bottom: 0.3rem; font-size: 0.85rem; }

/* Garantía */
.garantia-section {
    background: var(--bg-light); border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius); padding: 1.2rem;
}

/* Botones */
.form-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.btn-registrar {
    flex: 1; min-width: 150px; padding: 0.9rem;
    background: linear-gradient(135deg, var(--success) 0%, #2ecc71 100%);
    color: white; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: bold; cursor: pointer;
}
.btn-imprimir {
    padding: 0.9rem 1.2rem; background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white; border: none; border-radius: 10px; font-weight: bold; cursor: pointer;
}
.btn-limpiar {
    padding: 0.9rem 1.2rem; background: #f5f5f5; color: var(--text-muted);
    border: 2px solid #ddd; border-radius: 10px; cursor: pointer;
}
.mensaje-resultado {
    margin-top: 1rem; padding: 0.8rem; border-radius: 8px; text-align: center; display: none; font-size: 0.9rem;
}
.mensaje-resultado.exito { display: block; background: #d4edda; color: #155724; }
.mensaje-resultado.error { display: block; background: #f8d7da; color: #721c24; }

/* Búsqueda */
.busqueda-input-wrapper { display: flex; gap: 0.5rem; }
.busqueda-input-wrapper input { flex: 1; }
.btn-buscar {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.2rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer;
}
.resultados-container { min-height: 100px; }
.placeholder-text { text-align: center; color: #999; padding: 2rem; font-style: italic; }

/* Resultado Cards */
.resultado-card {
    background: white; border: 2px solid #e0e0e0; border-radius: 10px;
    padding: 1rem; margin-bottom: 0.8rem; transition: border-color 0.2s;
}
.resultado-card.alquilado { border-left: 4px solid var(--danger); }
.resultado-card.devuelto { border-left: 4px solid var(--success); }
.resultado-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.resultado-nombre { font-weight: bold; }
.resultado-estado { padding: 0.2rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: bold; }
.estado-alquilado { background: #fdecea; color: var(--danger); }
.estado-devuelto { background: #d4edda; color: var(--success); }
.resultado-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); }
.resultado-info strong { color: var(--text-dark); }
.resultado-actions { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid #eee; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-devolucion {
    padding: 0.4rem 0.8rem; background: linear-gradient(135deg, var(--danger) 0%, #c0392b 100%);
    color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.8rem;
}
.btn-recibo-busqueda {
    padding: 0.4rem 0.8rem; background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.8rem;
}

/* Modal Devolución */
.modal-inline {
    background: var(--bg-light); border: 2px solid var(--primary);
    border-radius: 10px; padding: 1rem; margin-top: 1rem;
}
.devolucion-content h3 { color: var(--primary); margin-bottom: 0.8rem; }
.garantia-devolucion-info { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 0.8rem; margin: 0.8rem 0; }
.devolucion-actions { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.btn-confirmar {
    padding: 0.6rem 1rem; background: var(--success); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold;
}
.btn-cancelar {
    padding: 0.6rem 1rem; background: #f5f5f5; color: var(--text-muted); border: 2px solid #ddd; border-radius: 8px; cursor: pointer;
}

/* Historial */
.historial-controles { display: flex; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.btn-cargar {
    padding: 0.6rem 1rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold;
}
#filtro-estado { padding: 0.6rem; border: 2px solid #e0e0e0; border-radius: 8px; }
.tabla-container { overflow-x: auto; }
.tabla-registros { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.tabla-registros th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; padding: 0.6rem 0.4rem; text-align: left;
}
.tabla-registros td { padding: 0.5rem 0.4rem; border-bottom: 1px solid #eee; }
.tabla-registros tr:hover { background: var(--bg-light); }

/* Clientes Habituales */
.clientes-habituales-header { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); padding: 1rem; border-radius: 10px; margin-bottom: 1rem; }
.clientes-habituales-header h3 { color: var(--primary-dark); margin-bottom: 0.3rem; font-size: 1rem; }
.clientes-habituales-header p { font-size: 0.8rem; color: var(--text-muted); }

/* Loading */
.loading { text-align: center; padding: 2rem; color: var(--primary); }
.loading::after {
    content: ''; display: inline-block; width: 18px; height: 18px;
    border: 3px solid var(--primary); border-top-color: transparent;
    border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 0.5rem; vertical-align: middle;
}

/* ========================================
   RECIBO
   ======================================== */

.modal-recibo-content { max-width: 240px; width: 100%; background: white; }
.recibo-no-print { display: flex; gap: 0.5rem; padding: 0.6rem; background: #f5f5f5; border-radius: var(--radius-lg) var(--radius-lg) 0 0; flex-wrap: wrap; justify-content: center; }
.btn-cerrar-recibo { padding: 0.4rem 0.7rem; background: var(--danger); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.75rem; }
.btn-print-recibo { padding: 0.4rem 0.8rem; background: #333; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 0.75rem; }

.recibo-contenido { padding: 10px; font-family: Arial, sans-serif; font-size: 10px; color: #000; background: #fff; }
.recibo-header { text-align: center; padding-bottom: 6px; border-bottom: 1.5px solid #000; }
.recibo-brand { font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.recibo-sub { font-size: 8px; color: #444; margin-top: 2px; }
.recibo-numero { text-align: center; font-size: 7px; color: #666; padding: 3px 0; font-family: monospace; }
.recibo-cliente { padding: 4px 0; border-bottom: 1px solid #ccc; }
.cliente-nombre { font-size: 11px; font-weight: 700; }
.cliente-dato { font-size: 8px; color: #444; margin-top: 2px; }
.recibo-disfraz { text-align: center; padding: 6px 0; border-bottom: 1px solid #ccc; }
.disfraz-nombre { font-size: 13px; font-weight: 700; }
.disfraz-estado { font-size: 9px; color: #555; margin-top: 2px; }
.recibo-fechas { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #ccc; }
.fecha-item { text-align: center; }
.fecha-label { font-size: 7px; color: #666; text-transform: uppercase; }
.fecha-valor { font-size: 10px; font-weight: 700; margin-top: 1px; }
.recibo-garantia { padding: 4px 0; border-bottom: 1px solid #ccc; }
.garantia-label { font-size: 7px; color: #666; text-transform: uppercase; }
.garantia-valor { font-size: 10px; font-weight: 700; }
.recibo-total { text-align: center; padding: 8px 0; border-bottom: 1.5px solid #000; }
.total-label { font-size: 8px; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.total-monto { font-size: 22px; font-weight: 700; }
.recibo-firma { padding: 10px 0 4px 0; text-align: center; }
.firma-linea { border-bottom: 1px solid #000; margin: 0 12px 3px 12px; height: 15px; }
.firma-texto { font-size: 8px; color: #666; }
.recibo-condiciones { font-size: 7px; color: #444; line-height: 1.4; padding: 4px 0; border-top: 1px solid #ccc; text-align: justify; }
.recibo-footer { text-align: center; padding-top: 4px; border-top: 1.5px solid #000; }
.footer-gracias { font-size: 9px; font-weight: 700; }
.footer-fecha { font-size: 8px; color: #666; margin-top: 2px; }

@media print {
    @page { size: 47mm auto; margin: 0; }
    body * { visibility: hidden; }
    #modal-recibo, #modal-recibo * { visibility: visible; }
    #modal-recibo { position: absolute; left: 0; top: 0; width: 47mm; padding: 0; margin: 0; }
    .modal-recibo-content { box-shadow: none; max-width: 47mm; border-radius: 0; }
    .recibo-no-print { display: none !important; }
    .recibo-contenido { padding: 2mm; width: 43mm; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 0.5rem; }
    .logo { font-size: 1.3rem; }
    .logo-img { height: 40px; }
    .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }
    .hero { margin-top: 150px; padding: 60px 1.5rem; }
    .hero h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .modal { padding: 0.5rem; }
    .tab-btn { font-size: 0.75rem; padding: 0.6rem 0.3rem; }
    .tab-content { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .busqueda-input-wrapper { flex-direction: column; }
    .devolucion-actions { flex-direction: column; }
    .stats-bar { grid-template-columns: repeat(3, 1fr); }
    .stat-value { font-size: 1.2rem; }
}
