@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --verde: #00A79D;
    --verde-oscuro: #008C84;
    --gris-titulo: #6D6E71;
    --gris-texto: #8A8C8E;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--gris-texto);
    margin: 0;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: white !important;
    border-bottom: 2px solid #f1f1f1;
}

.navbar-brand {
    color: var(--verde) !important;
    font-weight: 600;
}

.nav-link {
    color: var(--gris-texto) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--verde) !important;
}

/* =========================
   TÍTULOS
========================= */

h1, h2, h3 {
    color: var(--gris-titulo);
    font-weight: 500;
}

/* =========================
   BOTONES
========================= */

.btn-primary {
    background: var(--verde);
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
}

.btn-primary:hover {
    background: var(--verde-oscuro);
}

/* =========================
   INPUTS
========================= */

.form-control {
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 0.15rem rgba(0,167,157,.25);
}

/* =========================
   CARDS
========================= */

.card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

/* =========================
   TABLAS
========================= */

.table th {
    background: var(--verde);
    color: white;
    border: none;
}

.table td {
    vertical-align: middle;
}

/* =========================
   HERO (HOME)
========================= */

.hero {
    background: linear-gradient(135deg, var(--verde), var(--verde-oscuro));
    padding: 80px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

.hero .features p {
    font-size: 1rem;
    color: #e9fdfc;
    margin-bottom: 8px;
}

.hero .btn-light {
    background: #ffffff;
    color: var(--verde);
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero .btn-light:hover {
    background: #f2f2f2;
    transform: translateY(-2px);
}

.hero-img {
    max-width: 420px;
}

/* Responsive home */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-img {
        margin-top: 30px;
    }
}

/* ===============================
   PANEL ADMIN RESPONSIVE LIMPIO
=============================== */

/* Topbar solo móvil */
.mobile-topbar {
    display: none;
    padding: 10px 15px;
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    background: var(--verde);
    color: white;
    padding: 20px;
    transition: left 0.3s ease;
}

.admin-sidebar h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.admin-sidebar a {
    display: block;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.admin-sidebar a:hover {
    text-decoration: underline;
}

/* Contenido */
.admin-content {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
}

/* Cards admin */
.admin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =====================
   MOBILE FIX REAL
===================== */

@media (max-width: 768px) {

    .mobile-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100%;
        z-index: 3000;
        box-shadow: 4px 0 10px rgba(0,0,0,0.2);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-content {
        padding: 15px;
    }

    .btn {
        width: 100%;
    }
}
