/* Tipografías y tokens */
:root {
    --bg-dark: #020617;
    --bg-darker: #010111;
    --bg-gradient: radial-gradient(circle at top left, #1d4ed8 0%, #0f172a 45%, #020617 100%);
    --primary: #2563eb;
    --secondary: #6366f1;
    --accent: #14b8a6;
    --text-light: rgba(255, 255, 255, 0.85);
    --glass-bg: rgba(15, 23, 42, 0.65);
    --border-color: rgba(148, 163, 184, 0.2);
    --bs-body-font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.9) 0%, rgba(248, 250, 252, 0.98) 40%, rgba(2, 6, 23, 1) 100%);
    color: #0f172a;
    font-family: var(--bs-body-font-family);
}

/* Header */
.glass-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.92));
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: none;
    box-shadow: none;
}

.brand-logo {
    display: block;
    height: auto;
    max-width: 200px;
}

.brand-logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.glass-header .brand-logo {
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
}

.footer-section .brand-logo-wrapper {
    border-radius: 18px;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.35);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(15, 23, 42, 0.75);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #0f172a;
}

.navbar .dropdown-menu {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
}

.navbar .dropdown-item {
    color: rgba(15, 23, 42, 0.78);
    font-weight: 500;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(37, 99, 235, 0.12);
    color: #0f172a;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.25);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,0.65%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hero */
.hero-section {
    position: relative;
    background: var(--bg-gradient);
    overflow: hidden;
}

.hero-section .badge {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-light);
    border-radius: 999px;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
}

.hero-section p.lead {
    color: rgba(226, 232, 240, 0.82);
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 1.5rem;
}

.hero-card {
    background: rgba(15, 23, 42, 0.78);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
}

.hero-card.primary {
    transform: translateY(0);
}

.hero-card.secondary {
    transform: translateX(10%);
}

.hero-card h3 {
    color: #fff;
    font-size: 1.35rem;
}

.hero-card p {
    color: rgba(226, 232, 240, 0.78);
    margin-bottom: 1.5rem;
}

.highlight-list li {
    color: var(--text-light);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.highlight-list i {
    color: var(--accent);
}

.metric-label {
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.85rem;
}

.metric-value {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.3), transparent 40%),
                radial-gradient(circle at 80% 30%, rgba(14, 165, 233, 0.3), transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(79, 70, 229, 0.25), transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-stats .stat-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 18px;
    padding: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
}

.stat-value {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.stat-label {
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.85rem;
}

/* Secciones */
main {
    background: linear-gradient(180deg, #f1f5f9 0%, #020617 100%);
}

.services-section,
.sectors-section,
.license-section,
.contact-section {
    background: #f8fafc;
}

.section-headline .eyebrow {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 30px -18px rgba(15, 23, 42, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px -20px rgba(37, 99, 235, 0.35);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card ul {
    padding-left: 1.25rem;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.sector-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sector-card {
    background: linear-gradient(160deg, rgba(37, 99, 235, 0.12), rgba(45, 212, 191, 0.08));
    border-radius: 18px;
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    color: #0f172a;
}

.sector-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.3), transparent 45%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.sector-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(79, 70, 229, 0.15);
    color: #312e81;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.sector-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.sector-pill {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.license-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.license-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.license-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: #1f2937;
}

.license-card {
    background: #0f172a;
    color: var(--text-light);
    border-radius: 24px;
    padding: 2.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 25px 45px -18px rgba(15, 23, 42, 0.6);
}

.license-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.license-card__body {
    display: grid;
    gap: 1.2rem;
}

.metric-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 0.7rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(99, 102, 241, 0.85));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-section {
    position: relative;
}

.contact-form {
    background: #fff;
    border-radius: 22px;
    padding: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 25px 40px -20px rgba(15, 23, 42, 0.22);
}

.contact-form .form-control,
.contact-form .form-select {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.contact-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    color: #0f172a;
    font-weight: 500;
}

.form-disclaimer {
    line-height: 1.5;
}

.newsletter-form .form-control {
    border-radius: 999px 0 0 999px;
    border: none;
    padding-left: 1.2rem;
}

.newsletter-form .btn {
    border-radius: 0 999px 999px 0;
}

.whatsapp-floating {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 25px 35px -18px rgba(34, 197, 94, 0.85);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-floating i {
    font-size: 1.5rem;
}

.whatsapp-floating:hover,
.whatsapp-floating:focus {
    color: #fff;
    transform: translateY(-2px);
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 30px 45px -20px rgba(22, 163, 74, 0.95);
}

@media (max-width: 575.98px) {
    .whatsapp-floating {
        right: 16px;
        bottom: 16px;
        padding: 0.75rem 1.1rem;
    }

    .whatsapp-floating span {
        display: none;
    }
}

.footer-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.92));
    color: #0f172a;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a,
.footer-links span {
    color: rgba(15, 23, 42, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: #1d4ed8;
}

.footer-section .navbar-brand,
.footer-section .navbar-brand span,
.footer-section .text-white,
.footer-section .text-white-50,
.footer-section .text-white a,
.footer-section .text-white-50 a {
    color: #0f172a !important;
}

.footer-section .text-white-50 {
    opacity: 0.7;
}

.footer-section .text-white-50 a {
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Breakpoints personalizados */
@media (max-width: 1199.98px) {
    .hero-card.secondary {
        transform: translateX(0);
    }

    .hero-card {
        padding: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section .display-4 {
        font-size: 2.25rem;
    }

    .service-card {
        padding: 1.75rem;
    }

    .sector-grid {
        gap: 1rem;
    }

    .license-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-stats .stat-card {
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cta-section .btn {
        width: 100%;
    }

    .footer-bottom {
        gap: 1rem;
    }
}

