:root {
    --primary: #0056b3;
    --secondary: #00c6ff;
    --dark: #1a1a2e;
    --light: #f4f7f6;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background-color: var(--light); color: #333; line-height: 1.6; }

/* Contenedores */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background-color: #e9ecef; }

/* Botones */
.btn { padding: 10px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: 0.3s; display: inline-block; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #004494; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); margin-left: 10px; background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.full-width { width: 100%; text-align: center; }

/* Navbar */
.navbar { background: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.logo .dot { color: var(--secondary); }
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 500; transition: background 0.18s, color 0.18s; }

/* Force white text for primary button links inside the navbar */
.nav-links a.btn-primary { color: var(--white); }

/* Hover celeste para enlaces del menú (excluye botones tipo .btn) */
.nav-links a:not(.btn):hover { background: var(--secondary); color: var(--white); border-radius: 6px; padding: 6px 10px; }

/* Hero */
.hero { background: linear-gradient(135deg, #0056b3 0%, #00c6ff 100%); color: white; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.small-text { font-size: 0.9rem; margin-top: 20px; opacity: 0.8; }

/* Cards & Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.icon-box { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.section-title { text-align: center; margin-bottom: 40px; }

/* Calculadora */
.calculator-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.calc-text { flex: 1; min-width: 300px; }
.calc-box { flex: 1; min-width: 300px; background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: 5px solid var(--secondary); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.result-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; }
.hidden { display: none; }
.red-text { color: var(--danger); font-weight: bold; }
.green-text { color: var(--success); font-weight: bold; font-size: 1.5rem; }

/* Contact */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.contact-info { flex: 1; min-width: 280px; }
.contact-info h2 { font-size: 2rem; margin-bottom: 15px; color: var(--dark); }
.contact-info p { margin-bottom: 20px; color: #555; }
.contact-highlights { list-style: none; display: grid; gap: 10px; color: var(--dark); }
.contact-highlights i { color: var(--success); margin-right: 8px; }
.contact-highlights li { display: flex; align-items: center; font-weight: 600; }
.contact-form { flex: 1; min-width: 320px; background: var(--white); padding: 30px; border-radius: 12px; box-shadow: 0 5px 18px rgba(0,0,0,0.08); border-top: 5px solid var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; padding: 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 0.95rem; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,86,179,0.15); }
.form-feedback { margin-top: 15px; text-align: center; font-weight: 600; }
.form-feedback.success { color: var(--success); }
.form-feedback.error { color: var(--danger); }

/* Ley - Banco de Horas */
.bg-ley { background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); }
.ley-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.ley-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
.ley-card h3 { color: var(--primary); margin-bottom: 10px; }
.ley-card ul { list-style: disc; margin-left: 18px; color: #444; }
.ley-explainer { margin-top: 20px; background: rgba(0,86,179,0.04); padding: 18px; border-radius: 8px; }
.ley-explainer h4 { margin-bottom: 8px; }

/* Download / Print button spacing */
.ley-explainer .btn { margin-top: 6px; }

/* Métodos de registro (facial, QR, huella) */
.ingresos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.ingreso-card { background: white; padding: 22px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
.ingreso-card h3 { color: var(--primary); margin-bottom: 8px; }
.ingresos-note { margin-top: 18px; background: rgba(0,198,255,0.04); padding: 14px; border-radius: 8px; color: #234; }

 



/* Dashboard Styles (Mockup) */
.dashboard-body { background-color: #f0f2f5; }
.sidebar { width: 250px; background: var(--dark); color: white; height: 100vh; position: fixed; padding: 20px; }
.sidebar h2 { margin-bottom: 30px; font-size: 1.2rem; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.sidebar li.active { color: var(--secondary); font-weight: bold; }
.main-content { margin-left: 250px; padding: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.stat-number { font-size: 2rem; font-weight: bold; margin-top: 10px; }
.table-container { background: white; padding: 20px; border-radius: 8px; }
.status-dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot-red { background: var(--danger); }
.dot-green { background: var(--success); }
.dot-yellow { background: var(--warning); }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eee; }

/* App Styles (Mockup) */
.app-body { background-color: #eee; display: flex; justify-content: center; align-items: center; min-height: 100vh; font-family: 'Roboto', sans-serif; }
.mobile-frame { width: 375px; height: 812px; background: white; border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); overflow: hidden; position: relative; border: 8px solid #333; }
.app-header { background: var(--primary); color: white; padding: 30px 20px 20px; }
.wallet-card { background: white; color: #333; padding: 20px; border-radius: 15px; margin: -20px 20px 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-align: center; }
.balance { font-size: 2.5rem; font-weight: 800; color: var(--success); }
.action-btn { background: var(--secondary); color: white; padding: 15px; border-radius: 10px; text-align: center; margin: 0 20px; font-weight: bold; box-shadow: 0 4px 10px rgba(0,198,255,0.3); }
.history-list { padding: 20px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }

/* Footer */
footer { background: var(--dark); color: #aaa; padding: 30px 0; text-align: center; margin-top: 50px; }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    line-height: 60px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}