:root {
    --brand-primary: #0d6efd;
    --brand-dark: #0a2540;
    --brand-accent: #16a34a;
    --text-dark: #1f2937;
    --text-soft: #6b7280;
    --bg-soft: #f8fafc;
    --border-soft: #e5e7eb;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
}



.public-brand-logo {
    min-height: 72px;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1rem;
}

.site-logo {
    width: 240px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

@media (max-width: 991.98px) {
    .site-logo {
        width: 180px;
        height: 56px;
    }

    .public-brand-logo {
        min-height: 56px;
        margin-right: 0;
    }
}



.btn-brand {
    background-color: var(--brand-primary);
    color: #fff;
    border: 1px solid var(--brand-primary);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-brand:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
}

.btn-outline-brand {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

.hero-section {
    position: relative;
    background:
        linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(13, 110, 253, 0.82)),
        url('../img/hero-publico.jpg') center center / cover no-repeat;
    color: #fff;
    padding: 110px 0 90px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.section-block {
    padding: 80px 0;
}

.section-soft {
    background-color: var(--bg-soft);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--brand-dark);
}

.section-text {
    color: var(--text-soft);
    max-width: 760px;
    margin: 0 auto;
}

.feature-card,
.step-card,
.cta-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-4px);
}

.feature-icon,
.step-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    color: var(--brand-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.metrics-box {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.25rem;
    text-align: center;
}

.metrics-box h3 {
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.3rem;
}

.site-footer {
    background: #0f172a;
    color: #e5e7eb;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
    color: #cbd5e1;
}

.site-footer .footer-links a:hover {
    color: #fff;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.05);
}

.navbar .nav-link {
    font-weight: 500;
}

.navbar .nav-link.active {
    color: var(--brand-primary);
    font-weight: 700;
}

.list-check {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.list-check li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.list-check li::before {
    content: "\f26e";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-accent);
}

.page-hero {
    padding: 70px 0 40px;
}

.page-hero-light {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-soft);
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--brand-primary);
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-control,
.form-select {
    border-radius: 10px;
    min-height: 48px;
    border: 1px solid #d1d5db;
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13, 110, 253, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.alert {
    border-radius: 12px;
}

/* Ajustes específicos para contacto */
.contact-page .section-block {
    padding-bottom: 100px;
}

.contact-page .feature-card {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.contact-page .list-check li:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 90px 0 70px;
    }

    .hero-card {
        margin-top: 1.5rem;
    }

    .section-block {
        padding: 60px 0;
    }

    .contact-page .section-block {
        padding-bottom: 80px;
    }
}
/* ==========================================
   ADMIN
========================================== */

.admin-login-page {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    min-height: 100vh;
}

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.admin-login-card {
    max-width: 100%;
}

.admin-header .navbar-brand {
    color: var(--brand-dark);
}

.admin-main {
    background: #f8fafc;
    min-height: calc(100vh - 72px);
}

.admin-metric-box {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.admin-table thead th {
    font-size: 0.88rem;
    text-transform: uppercase;
    color: var(--text-soft);
    white-space: nowrap;
}

.admin-table tbody td {
    vertical-align: middle;
}

.admin-table .badge {
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    font-weight: 600;
}

.pagination .page-link {
    border-radius: 10px;
    margin-right: 6px;
    color: var(--brand-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.admin-detail-list li {
    margin-bottom: 0.55rem;
}

.admin-detail-box {
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem;
}

.admin-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-timeline-item {
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
}

.admin-link-primary {
    color: var(--brand-dark);
    text-decoration: none;
}

.admin-link-primary:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.admin-table .text-bg-warning {
    color: #111 !important;
}

.admin-table a.admin-link-primary {
    font-weight: 600;
}




header .navbar-brand.public-brand-logo {
    min-height: 84px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-right: 1rem !important;
    display: flex !important;
    align-items: center !important;
}

header .navbar-brand.public-brand-logo .site-logo {
    width: 320px !important;
    height: 84px !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: left center !important;
    display: block !important;
}

@media (max-width: 991.98px) {
    header .navbar-brand.public-brand-logo {
        min-height: 62px !important;
        margin-right: 0 !important;
    }

    header .navbar-brand.public-brand-logo .site-logo {
        width: 220px !important;
        height: 62px !important;
    }
}


@media (max-width: 991.98px) {
    header .public-brand-logo {
        min-height: 62px !important;
        margin-right: 0 !important;
    }

    header .public-brand-logo .site-logo {
        width: 220px !important;
        height: 62px !important;
    }
}