/* ============================================
   RESET Y VARIABLES (MANTENIDAS)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PALETA OSCURA (PRINCIPAL) */
    --bg-light: #0a0a0a;
    --card-light: #141414;
    --text-dark: #e8e8e8;
    --text-muted-light: #9a9a9a;
    --border-light: #2a2a2a;
    --gold: #D4AF37;
    --gold-dark: #B8960F;
    --gold-light: #F0D772;
    --gold-glow: rgba(212, 175, 55, 0.15);
    --black: #111111;
    --black-light: #1e1e1e;
    --success: #2c7a4d;
    --success-dark: #1e5a38;
    --danger: #c93a3a;
    --warning: #e6a017;
    
    /* NUEVAS VARIABLES PARA MEJOR CONSISTENCIA */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.5);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* MODO CLARO (secundario) */
body.light {
    --bg-light: #f5f5f0;
    --card-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted-light: #6b6b6b;
    --border-light: #e0e0e0;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: background 0.3s ease, color 0.2s ease;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   SCROLLBAR MEJORADA
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 100px;
    border: 2px solid var(--bg-light);
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================
   NAVBAR - NEGRO CON DORADO (MEJORADA)
   ============================================ */
.navbar {
    background: var(--black);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* LOGO - Mejorado */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.logo-wrapper:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    transition: var(--transition);
}

.logo-wrapper:hover .logo-icon {
    box-shadow: 0 0 30px var(--gold-glow);
    border-color: var(--gold-light);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 1px;
}

/* Nav links - Mejorados */
.nav-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ccc;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-greeting i {
    color: var(--gold);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-admin {
    background: var(--warning);
    color: #1a1a1a;
}
.btn-logout {
    background: var(--danger);
    color: white;
}
.btn-login {
    background: var(--gold);
    color: #1a1a1a;
}

.btn-admin, .btn-logout, .btn-login {
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-admin:hover, .btn-logout:hover, .btn-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-admin:active, .btn-logout:active, .btn-login:active {
    transform: scale(0.97);
}

/* ============================================
   HERO SECTION (MEJORADA)
   ============================================ */
.container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 280px);
    animation: fadeIn 0.6s ease;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #1a1a1a;
    padding: 0.3rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    animation: slideIn 0.8s ease;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    animation: slideIn 0.6s ease;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted-light);
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideIn 0.7s ease;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: slideIn 0.9s ease;
}

.info-badge.warning {
    background: rgba(230, 160, 23, 0.15);
    color: var(--warning);
    border: 1px solid rgba(230, 160, 23, 0.3);
}
.info-badge.success {
    background: rgba(44, 122, 77, 0.15);
    color: var(--success);
    border: 1px solid rgba(44, 122, 77, 0.3);
}

/* ============================================
   GRID DE CAMILLAS (MEJORADA)
   ============================================ */
.camillas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.8s ease;
}

.camilla-card {
    background: var(--card-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.camilla-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, transparent, var(--gold-glow), transparent);
    border-radius: calc(var(--radius-md) + 2px);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.camilla-card:hover::before {
    opacity: 1;
}

.camilla-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

/* IMAGEN - Mejorada */
.camilla-imagen {
    height: 240px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.camilla-imagen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, transparent 100%);
    pointer-events: none;
}

.camilla-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.camilla-card:hover .camilla-img-real {
    transform: scale(1.08);
}

.imagen-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.5);
    position: relative;
    z-index: 1;
}

.imagen-placeholder span {
    font-size: 0.8rem;
    color: #666;
}

/* Info de camilla - Mejorada */
.camilla-info {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-header h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.camilla-card:hover .card-header h3 {
    color: var(--gold);
}

.categoria {
    background: rgba(212, 175, 55, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.descripcion {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.caracteristicas {
    background: rgba(212, 175, 55, 0.05);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    color: var(--text-muted-light);
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.caracteristicas i {
    color: var(--gold);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.precio-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.precio {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    color: var(--gold-dark);
}

.precio::before {
    content: '$';
    font-size: 0.8rem;
    opacity: 0.7;
    margin-right: 0.1rem;
}

.stock {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.stock.disponible {
    background: rgba(44, 122, 77, 0.15);
    color: var(--success);
    animation: pulse 2s infinite;
}

.stock.agotado {
    background: rgba(201, 58, 58, 0.15);
    color: var(--danger);
}

/* Botones de reserva - Mejorados */
.reserva-control {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.cantidad-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--card-light);
    transition: var(--transition);
}

.cantidad-control:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-cantidad {
    background: rgba(212, 175, 55, 0.08);
    border: none;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-weight: 700;
}

.btn-cantidad:hover {
    background: var(--gold);
    color: #1a1a1a;
}

.btn-cantidad:active {
    transform: scale(0.9);
}

.cantidad-control input {
    width: 3rem;
    text-align: center;
    border: none;
    font-size: 0.9rem;
    background: var(--card-light);
    color: var(--text-dark);
    font-weight: 600;
    outline: none;
    padding: 0;
}

.cantidad-control input::-webkit-inner-spin-button,
.cantidad-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cantidad-control input[type=number] {
    -moz-appearance: textfield;
}

.btn-reservar {
    flex: 1;
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-reservar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.btn-reservar:hover:not(.disabled)::after {
    opacity: 1;
}

.btn-reservar:hover:not(.disabled) {
    background: var(--gold-dark);
    transform: scale(1.02);
}

.btn-reservar:active:not(.disabled) {
    transform: scale(0.97);
}

.btn-reservar.disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.6;
    color: #999;
}

/* ============================================
   FOOTER - Mejorado
   ============================================ */
.footer {
    background: var(--black);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
    border-top: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo-text {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #888;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
}

.footer-links a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
}

.footer-copyright p {
    color: #666;
    font-size: 0.75rem;
}

/* ============================================
   MODAL - Mejorado
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    background: var(--card-light);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--gold);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--gold);
    color: #1a1a1a;
}

.modal-header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.modal-header .close {
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    color: #1a1a1a;
    background: none;
    border: none;
    padding: 0 0.2rem;
}

.modal-header .close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

#modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.btn-confirmar {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem 1.5rem;
    background: var(--gold);
    color: #1a1a1a;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-confirmar:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-confirmar:active {
    transform: scale(0.97);
}

/* Resumen reserva - Mejorado */
.resumen-reserva {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reserva-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.reserva-item:hover {
    background: rgba(212, 175, 55, 0.08);
}

.reserva-item i {
    width: 28px;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reserva-item div {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reserva-item.total {
    background: var(--gold);
    color: #1a1a1a;
    border-left-color: var(--gold-dark);
}

.reserva-item.total i {
    color: #1a1a1a;
}

.reserva-item .label {
    font-weight: 500;
}

.reserva-item .value {
    font-weight: 700;
}

.reserva-item .value.highlight {
    color: var(--gold);
}

/* ============================================
   TOAST NOTIFICATIONS - Mejoradas
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background: var(--card-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-left: 4px solid;
    border-left-color: var(--gold);
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-light);
}

.toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--gold); }

.toast i:first-child { font-size: 1.3rem; }
.toast.success i:first-child { color: var(--success); }
.toast.error i:first-child { color: var(--danger); }
.toast.info i:first-child { color: var(--gold); }

.toast-content { flex: 1; }
.toast-title { 
    font-weight: 700; 
    font-size: 0.9rem; 
    margin-bottom: 2px; 
}
.toast-message { 
    font-size: 0.8rem; 
    opacity: 0.8; 
}
.toast-close { 
    cursor: pointer; 
    font-size: 1.2rem; 
    opacity: 0.5; 
    transition: var(--transition);
    background: none;
    border: none;
    color: var(--text-dark);
    padding: 0.2rem;
}

.toast-close:hover { 
    opacity: 1; 
    transform: rotate(90deg);
}

/* ============================================
   ANIMACIONES MEJORADAS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-60px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* ============================================
   UTILIDADES ADICIONALES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted-light); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-center { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.flex-between { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 1rem; 
}
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ============================================
   RESPONSIVE - TOTALMENTE ADAPTADO
   ============================================ */

/* Tablets grandes y laptops pequeñas (1024px - 1280px) */
@media (max-width: 1280px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .camillas-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0.8rem 1.5rem;
    }
    
    .camillas-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .camilla-imagen {
        height: 200px;
    }
    
    .modal-content {
        margin: 10% auto;
        max-width: 450px;
    }
}

/* Móviles grandes y tablets pequeñas (480px - 768px) */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0.6rem 1rem;
        gap: 0.8rem;
    }
    
    .logo-wrapper {
        justify-content: center;
        padding: 0.2rem 0.5rem;
    }
    
    .nav-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .user-greeting {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .theme-toggle {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .btn-admin, .btn-logout, .btn-login {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
        min-height: calc(100vh - 200px);
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .camillas-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .camilla-imagen {
        height: 180px;
    }
    
    .camilla-info {
        padding: 1rem;
    }
    
    .precio-stock {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .reserva-control {
        flex-direction: column;
    }
    
    .cantidad-control {
        width: 100%;
        justify-content: center;
    }
    
    .btn-reservar {
        width: 100%;
    }
    
    .modal-content {
        margin: 15% auto;
        width: 95%;
        max-width: 400px;
    }
    
    #modal-body {
        padding: 1rem;
    }
    
    .btn-confirmar {
        width: calc(100% - 2rem);
        margin: 0 1rem 1rem 1rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: 100%;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Móviles pequeños (< 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.4rem 0.8rem;
        gap: 0.5rem;
    }
    
    .logo-wrapper {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .logo-title {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .nav-links {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .user-greeting {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .theme-toggle {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .btn-admin, .btn-logout, .btn-login {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
    
    .container {
        padding: 0 0.6rem;
        margin: 0.5rem auto;
    }
    
    .hero {
        padding: 1rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .hero-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.8rem;
    }
    
    .camilla-imagen {
        height: 150px;
    }
    
    .camilla-info {
        padding: 0.8rem;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .categoria {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
    
    .descripcion {
        font-size: 0.8rem;
    }
    
    .caracteristicas {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .precio {
        font-size: 1.2rem;
    }
    
    .stock {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
    
    .btn-cantidad {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
    }
    
    .cantidad-control input {
        width: 2.5rem;
        font-size: 0.8rem;
    }
    
    .btn-reservar {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .modal-content {
        margin: 20% auto;
        border-radius: var(--radius-sm);
    }
    
    .modal-header {
        padding: 0.8rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1rem;
    }
    
    #modal-body {
        padding: 0.8rem;
    }
    
    .reserva-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-confirmar {
        padding: 0.6rem;
        font-size: 0.9rem;
        width: calc(100% - 1.6rem);
        margin: 0 0.8rem 0.8rem 0.8rem;
    }
    
    .footer {
        padding: 1.5rem 0.8rem 1rem;
    }
    
    .footer-logo-text {
        font-size: 0.9rem;
    }
    
    .footer-brand p {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

/* Pantallas muy grandes (> 1400px) */
@media (min-width: 1400px) {
    .container {
        padding: 0 3rem;
        max-width: 1440px;
    }
    
    .camillas-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 2.5rem;
    }
    
    .camilla-imagen {
        height: 280px;
    }
    
    .camilla-info {
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .camilla-card:hover {
        transform: none !important;
    }
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .footer,
    .reserva-control,
    .btn-reservar,
    .theme-toggle {
        display: none !important;
    }
    
    .camilla-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
        color: black;
    }
}