/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    background: #fff;
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    color: #1e293b;
    letter-spacing: -0.02em;
}
.logo .brand-oposiciones { color: #005275; }
.logo .brand-ia { color: #1e3a5f; }

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-link-active {
    color: #003f5a !important;
    background: #eef7fb !important;
}

.nav-link-special {
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
}

/* Nav right (auth + hamburger) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #003f5a;
    color: white;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s, transform 0.15s;
}

.btn-nav-primary:hover {
    background: #002d42;
    transform: translateY(-1px);
}

.btn-nav-primary i {
    font-size: 0.8rem;
}

/* =========================================
   DROPDOWN (Desktop)
   ========================================= */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-chevron {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    min-width: 340px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #f1f5f9;
}

.dropdown-item-header {
    font-weight: 600;
    color: #1e293b;
}

.dropdown-item-header i {
    color: #003f5a;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.35rem 0.5rem;
}

.dropdown-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
}

.dropdown-badge-active {
    background: #dcfce7;
    color: #16a34a;
}

.dropdown-badge-soon {
    background: #f3f4f6;
    color: #9ca3af;
}

/* =========================================
   MEGAMENÚ Oposiciones (Nacional + 19 CCAA)
   ========================================= */
.nav-dropdown-menu.megamenu {
    min-width: 820px;
    max-width: 920px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}
.megamenu-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
}

/* Columna destacada — fondo gradiente suave del brand */
.megamenu-feature {
    padding: 1.4rem 1.3rem;
    background: linear-gradient(155deg, #0891b2, #0e7490);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.megamenu-feature-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
}
.megamenu-feature h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.megamenu-feature p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.88);
}
.megamenu-national-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.18s, transform 0.18s;
    margin-top: 0.2rem;
}
.megamenu-national-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(2px);
}
.megamenu-national-flag {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}
.megamenu-national-body { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.megamenu-national-body strong { font-size: 0.92rem; color: #fff; font-weight: 700; }
.megamenu-national-body span { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.megamenu-national-arrow {
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    transition: transform 0.18s;
}
.megamenu-national-card:hover .megamenu-national-arrow { transform: translateX(3px); color: #fff; }

.megamenu-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.15s;
}
.megamenu-hub-link:hover { transform: translateY(-1px); }
.megamenu-hub-link i { color: #0891b2; }

.megamenu-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.78);
    margin-top: auto;
}
.megamenu-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74,222,128,0.28);
}

/* Columnas CCAA */
.megamenu-ccaa-columns {
    padding: 1.2rem 1.3rem;
    background: #fff;
}
.megamenu-ccaa-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.7rem;
    padding-left: 0.3rem;
}
.megamenu-ccaa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.2rem 0.6rem;
}
.megamenu-ccaa-col { display: flex; flex-direction: column; gap: 0.08rem; }

.megamenu-ccaa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.55rem;
    border-radius: 7px;
    text-decoration: none;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    position: relative;
}
.megamenu-ccaa-item:hover {
    background: #ecfeff;
    color: #0f172a;
    transform: translateX(2px);
}
.megamenu-ccaa-name {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}
.megamenu-ccaa-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22,163,74,0.22);
    flex-shrink: 0;
}
.megamenu-ccaa-plazas {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0891b2;
    background: #ecfeff;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}
.megamenu-ccaa-plazas-empty {
    color: #94a3b8;
    background: #f1f5f9;
}

/* Dark mode */
html.dark .nav-dropdown-menu.megamenu { border-color: #334155; }
html.dark .megamenu-ccaa-columns { background: #111827; }
html.dark .megamenu-ccaa-title { color: #94a3b8; }
html.dark .megamenu-ccaa-item { color: #cbd5e1; }
html.dark .megamenu-ccaa-item:hover { background: #1e293b; color: #f1f5f9; }
html.dark .megamenu-ccaa-plazas { background: #164e63; color: #67e8f9; }
html.dark .megamenu-ccaa-plazas-empty { background: #1e293b; color: #64748b; }
html.dark .megamenu-hub-link { background: #f8fafc; color: #0f172a; }

@media (max-width: 900px) {
    .nav-dropdown-menu.megamenu { min-width: auto; max-width: calc(100vw - 32px); }
    .megamenu-grid { grid-template-columns: 1fr; }
    .megamenu-ccaa-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   HAMBURGER BUTTON
   ========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: #f1f5f9;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   SIDEBAR (Mobile)
   ========================================= */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header .logo {
    font-size: 1.1rem;
}

.sidebar-header .logo img {
    height: 40px;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color: #64748b;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}

.sidebar-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    transition: background 0.15s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.sidebar-link span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-link:hover {
    background: #f1f5f9;
}

.sidebar-link i:first-child,
.sidebar-link span i:first-child {
    width: 20px;
    text-align: center;
    color: #94a3b8;
}

.sidebar-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.3s;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-toggle.open .sidebar-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
}

.sidebar-submenu.open {
    /* 20 items (Nacional + 19 CCAA + "Ver todas") = ~840px.
       Dejamos margen de sobra; el scroll lo asume el .sidebar-nav padre. */
    max-height: 1400px;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    color: #475569;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}

.sidebar-sublink:hover {
    background: #f1f5f9;
}

.sidebar-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
}

.sidebar-badge-active {
    background: #dcfce7;
    color: #16a34a;
}

.sidebar-badge-soon {
    background: #f3f4f6;
    color: #9ca3af;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-sidebar-primary {
    display: block;
    text-align: center;
    background: #003f5a;
    color: white;
    padding: 0.7rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-sidebar-primary:hover {
    background: #002d42;
}

.btn-sidebar-secondary {
    display: block;
    text-align: center;
    background: #f1f5f9;
    color: #334155;
    padding: 0.7rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-sidebar-secondary:hover {
    background: #e2e8f0;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #005275 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn-primary {
    background-color: #fff;
    color: #1e40af;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Video Section */
.demo-section {
    padding: 4rem 0;
    text-align: center;
    background: #fff;
}

.video-wrapper {
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Grid Cards */
.info-section { padding: 4rem 0; }
.info-section h2 { text-align: center; margin-bottom: 3rem; font-size: 2rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #003f5a;
}

.card h3 { margin-bottom: 1rem; }

/* Waitlist Form */
.waitlist-section {
    padding: 4rem 0;
    background-color: #eef7fb;
}

.form-box {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input:not([type="checkbox"]), select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}

.legal-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.legal-check input {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #003f5a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
}

.btn-submit:hover { background-color: #002d42; }

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 2rem 0;
}

/* =========================================
   MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(15,23,42,0.72);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.mostrar {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
    animation: modalSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Profile header (dark) */
.modal-profile-header {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.modal-close-x:hover { background: rgba(255,255,255,0.15); color: #e2e8f0; }

.profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(0,82,117,0.25), 0 8px 24px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-profile-header h2 {
    color: #f1f5f9;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.subtitle {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Body */
.modal-body {
    padding: 1.4rem 1.5rem 0.75rem;
}
.modal-body > p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

/* Project link cards */
.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.project-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.project-link:hover {
    background: #eef7fb;
    border-color: #bfdbfe;
    transform: translateX(2px);
}
.project-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eef7fb;
    color: #003f5a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.project-link strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}
.project-link span {
    font-size: 0.73rem;
    color: #64748b;
}

/* Social buttons */
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0 1.5rem 1.5rem;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.social-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.yt-cloud { background: #dc2626; }
.yt-ia { background: #18181b; }
.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.linkedin { background: #0a66c2; }

/* =========================================
   TECH BANNER
   ========================================= */
.tech-banner-section {
    padding: 3rem 0 0;
    background: linear-gradient(180deg, #f8faff 0%, #f8faff 100%);
}

.tech-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid rgba(99,102,241,0.25);
    box-shadow: 0 8px 40px rgba(15,23,42,0.18);
    position: relative;
    overflow: hidden;
}

.tech-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.tech-banner::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(0,63,90,0.14) 0%, transparent 70%);
    pointer-events: none;
}

.tech-banner-icon svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.tech-banner-body { flex: 1; }

.tech-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.tech-banner-text {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}
.tech-banner-text strong { color: #e2e8f0; }

.tech-banner-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #c7d2fe;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.tech-pill i { font-size: 0.72rem; color: #818cf8; }

@media (min-width: 768px) {
    .tech-banner {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
    .tech-banner-icon { padding-top: 0.15rem; }
    .tech-banner-pills {
        flex-direction: column;
        align-self: center;
        min-width: 160px;
    }
}

/* =========================================
   PRICING
   ========================================= */
.pricing-section {
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, #f8faff 0%, #f1f5f9 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Billing toggle */
.billing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.billing-btn {
    padding: 0.5rem 1.35rem;
    border-radius: 999px;
    border: 1.5px solid #d1d5db;
    background: white;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    position: relative;
}
.billing-btn.active {
    background: #003f5a;
    border-color: #003f5a;
    color: white;
    box-shadow: 0 4px 12px rgba(0,63,90,0.3);
}
.billing-btn .save-pill {
    position: absolute;
    top: -10px;
    right: -8px;
    background: #10b981;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    pointer-events: none;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1.5px solid #e5e7eb;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.pricing-card.pro {
    border: 2px solid #003f5a;
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #eef7fb 100%);
    box-shadow: 0 8px 32px rgba(0,63,90,0.14);
}

.badge-popular {
    position: absolute;
    top: -14px;
    right: 24px;
    background: linear-gradient(135deg, #003f5a, #6366f1);
    color: white;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    box-shadow: 0 4px 12px rgba(0,63,90,0.35);
}

.pricing-plan-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}
.pricing-card.pro .pricing-plan-label { color: #003f5a; }

.pricing-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
    color: #111827;
}

.price-block { margin-bottom: 0.4rem; }
.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.price-amount sup {
    font-size: 1.3rem;
    font-weight: 700;
    vertical-align: super;
    line-height: 1;
    color: #374151;
}
.price-amount .period {
    font-size: 1rem;
    font-weight: 400;
    color: #9ca3af;
}
.price-per-month {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    min-height: 1.2rem;
}

/* keep .price for any legacy references */
.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003f5a;
    margin-bottom: 1.5rem;
}
.price span { font-size: 1rem; color: #6b7280; font-weight: 400; }

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 0.85rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.features-list li.feature-divider {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

.features-list i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}
.features-list i.fa-whatsapp { color: #25d366; }
.features-list i.fa-users { color: #6366f1; }
.features-list i.fa-database { color: #0ea5e9; }
.features-list i.fa-comments { color: #f97316; }
.features-list i.fa-rocket         { color: #8b5cf6; }
.features-list i.fa-trophy         { color: #f59e0b; }
.features-list i.fa-calendar-check { color: #007099; }

/* Discount voucher */
.discount-voucher-wrap {
    text-align: center;
    margin-bottom: 2rem;
}

.discount-highlight {
    color: #dc2626;
    font-weight: 800;
    font-size: 1.1em;
}

/* old .discount-banner kept for safety */
.discount-banner {
    background-color: #dff0f7;
    border: 1px dashed #003f5a;
    color: #1e40af;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 600;
    display: inline-block;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .btn-nav-primary { display: none; }
    .hamburger { display: flex; }

    .hero h1 { font-size: 2rem; }
    .hero { padding: 4rem 0; }
}

@media (min-width: 769px) {
    .hamburger { display: none; }
    .sidebar, .sidebar-overlay { display: none !important; }
}
