/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AIJAnd â€” INSTITUTIONAL LANDING PAGE â€” CSS
   Clean, Professional, Trust-building
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

:root {
    --primary: #0f172a;
    --primary-rgb: 15, 23, 42;
    --primary-light: #1e293b;
    --secondary: #2563eb;
    --accent: #3b82f6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* â”€â”€ Reset & Base â”€â”€ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 80px 0 100px; position: relative; }

/* â”€â”€ Section Dividers â”€â”€ */
.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
}

.divider-bottom {
    bottom: -1px;
    transform: translateY(1px); /* Crucial: Overlap with next section to avoid gaps */
}

.divider-top {
    top: -1px;
    transform: translateY(-1px) rotate(180deg);
}

.impacto-horizon .shape-fill {
    fill: #0f172a; /* Exact match with section-dark / primary-dark */
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.5px);
    height: 50px; /* More subtle height */
}

/* Specific Section Fills */
.hero .shape-fill { fill: var(--bg-white); }
#quienes-somos .shape-fill { fill: var(--bg-light); }
#timeline .shape-fill { fill: var(--primary); }
#problema .shape-fill { fill: var(--bg-light); }
#ofrecemos .shape-fill { fill: var(--bg-white); }
#testimonios .shape-fill { fill: var(--bg-light); }
#faq .shape-fill { fill: var(--bg-white); }
#impacto .shape-fill { fill: var(--bg-white); }

.section-alt { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

h1, h2, h3, h4 { color: var(--primary); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-line { width: 60px; height: 4px; background: var(--secondary); margin: 20px auto; border-radius: 2px; }
.section-desc { max-width: 700px; margin: 0 auto 40px; text-align: center; color: var(--text-muted); font-size: 1.1rem; }

/* â”€â”€ Typography Utilities â”€â”€ */
strong { font-weight: 700; color: var(--primary); }

/* â”€â”€ Grid System â”€â”€ */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* â”€â”€ Buttons â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary { background: var(--secondary); color: white; border: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }

.btn-secondary { background: white; color: var(--primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #f1f5f9; border-color: var(--text-dim); }

.btn-full { width: 100%; }

/* â”€â”€ NAVBAR â”€â”€ */
header {
    background: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.shrink {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar { 
    height: 90px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.shrink .navbar {
    height: 65px;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary); }
.nav-logo-wrapper { 
    width: 48px; 
    height: 48px; 
    border-radius: var(--radius-sm); 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.shrink .nav-logo-wrapper {
    width: 38px;
    height: 38px;
}
.nav-logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.nav-brand-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }

.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: var(--transition); font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--secondary); }

/* Nav Link Stagger Animation */
@keyframes navFadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (min-width: 993px) {
    .nav-links .nav-link {
        animation: navFadeIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
    }
    .nav-links .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-links .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-links .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-links .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-links .nav-link:nth-child(5) { animation-delay: 0.5s; }
    .nav-links .nav-link:nth-child(6) { animation-delay: 0.6s; }
    .nav-links .nav-link:nth-child(7) { animation-delay: 0.7s; }
}

.header-utils { display: flex; align-items: center; }

@media (max-width: 992px) {
    .header-utils { order: 1; margin-right: 50px; }
    .mobile-nav-toggle { order: 2; }
}

/* â”€â”€ MOBILE NAVBAR â”€â”€ */
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 5px; }
.mobile-nav-toggle .bar { width: 25px; height: 2px; background: var(--primary); transition: var(--transition); }

@media (max-width: 992px) {
    .mobile-nav-toggle { display: flex; z-index: 1001; }
    .header-utils { order: 1; margin-right: 60px; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-cta-group { flex-direction: column; width: 100%; margin-top: 20px; }
    .nav-cta-group .btn { width: 100%; }
    
    h1 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.1; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}

/* â”€â”€ HERO â”€â”€ */
.hero {
    padding: 120px 0 80px;
    background: #ffffff;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.parallax-item {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    background: var(--bg-light);
}

.parallax-item.p-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -50px;
    background: #f1f5f9;
}

.parallax-item.p-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: #f1f5f9;
}

.parallax-item.p-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 20%;
    background: #f1f5f9;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#typewriter-title {
    min-height: 2.2em; /* Prevent sudden layout shifts */
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--secondary);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero-badge { display: inline-block; padding: 6px 16px; background: #dbeafe; color: var(--secondary); border-radius: 20px; font-weight: 600; font-size: 0.85rem; margin-bottom: 24px; }
.hero-subtitle { max-width: 700px; color: var(--text-muted); font-size: 1.25rem; margin: 24px auto 40px; }
.hero-actions { 
    display: flex; 
    gap: 16px; 
    justify-content: center; 
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 400px;
    }
}
.bg-primary-dark {
    background-color: #0f172a;
}

/* â”€â”€ IMPACT DASHBOARD â”€â”€ */
.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* â”€â”€ TRUST SECTION â”€â”€ */
.trust-section {
    padding: 60px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Gradient faders for premium feel */
.trust-section::before,
.trust-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.trust-section::before {
    left: 0;
    width: 0;
}

.trust-section::after {
    right: 0;
    width: 0;
}

.trust-label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    font-weight: 700;
}

.logo-slider {
    width: 100%;
    display: flex;
    overflow: hidden;
    user-select: none;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.logo-group {
    display: flex;
    gap: 120px;
    padding-right: 120px; /* Essential: Treats the gap as part of the repeatable group */
}

/* Pause animation on hover for better UX */
.logo-track:hover {
    animation-play-state: paused;
}

.trust-logo-item {
    height: 100px;
    flex-shrink: 0;
    opacity: 0.85;
    filter: grayscale(0.85);
    transition: var(--transition);
}

.trust-logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.trust-logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Perfectly seamless now with logo-group */
}

@media (max-width: 992px) {
    .logo-group { gap: 80px; padding-right: 80px; }
    .logo-track { animation-duration: 35s; }
    .trust-logo-item { height: 80px; }
    .trust-section::before, .trust-section::after { width: 100px; }
}

@media (max-width: 640px) {
    .logo-group { gap: 40px; }
    .trust-logo-item { height: 100px; }
    .trust-section { padding: 40px 0; }
}

/* â”€â”€ TEAM SECTION â”€â”€ */
.team-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--secondary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 46, 92, 0.08);
    border-color: transparent;
}

.team-card:hover::after {
    transform: scaleY(1);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.team-role {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* â”€â”€ CARDS â”€â”€ */
.card { 
    background: var(--card-bg); 
    padding: 40px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-color); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    position: relative; 
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(10, 46, 92, 0.08), 0 0 20px rgba(37, 99, 235, 0.05); 
    border-color: transparent; 
}

.card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.icon-box { 
    width: 60px; 
    height: 60px; 
    background: #eff6ff; 
    color: var(--secondary); 
    border-radius: var(--radius-md); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 24px; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .icon-box {
    background: var(--secondary);
    color: white;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

/* â”€â”€ BENEFITS LIST â”€â”€ */
.benefits-list { list-style: none; }
.benefits-list li { display: flex; gap: 16px; margin-bottom: 24px; font-size: 1.1rem; }
.benefit-check { color: var(--success); font-weight: bold; }

/* â”€â”€ CONTACT FORM â”€â”€ */
.contact-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px; 
    align-items: start; 
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-group.invalid input { border-color: var(--error); }
.form-group.invalid::after { content: 'Este campo es obligatorio'; color: var(--error); font-size: 0.8rem; margin-top: 4px; display: block; }

/* â”€â”€ TOAST NOTIFICATIONS â”€â”€ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

@media (max-width: 580px) {
    .toast-container {
        left: 15px;
        right: 80px; /* Leave space for the fixed FAB buttons on the right */
        bottom: 20px;
        width: auto;
    }
    .toast {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .toast h4 { font-size: 0.95rem; margin-bottom: 4px; }
}

.toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: var(--transition);
}

.toast.removing {
    transform: translateX(100%);
    opacity: 0;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-message {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

@keyframes toast-in {
    from {
        transform: translateX(100%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

/* â”€â”€ FOOTER â”€â”€ */
footer { background: var(--primary); color: white; padding: 80px 0 40px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand h3 { color: white; margin-bottom: 20px; font-size: 1.8rem; }
.footer-brand p { color: #94a3b8; }
.footer-col h4 { color: white; margin-bottom: 24px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: white; padding-left: 5px; }

.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-link {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.1); }
.social-link svg { width: 20px; height: 20px; fill: #cbd5e1; transition: var(--transition); }
.social-link:hover svg { fill: white; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* â”€â”€ ANIMATIONS â”€â”€ */
.anim-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.anim-reveal.visible { opacity: 1; transform: translateY(0); }

/* â”€â”€ MAIL BUTTON â”€â”€ */
.mail-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.mail-float:hover { transform: scale(1.1); background-color: var(--accent); }
.mail-icon { width: 30px; height: 30px; stroke: white; }

.mail-tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mail-float:hover .mail-tooltip { opacity: 1; transform: translateX(-10px); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MID-PRIORITY FEATURES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Reading Progress â”€â”€ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--secondary);
    z-index: 9999; /* Ensure it's above EVERYTHING */
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* â”€â”€ Timeline â”€â”€ */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary);
    opacity: 0.2;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 50%;
    padding: 0 50px;
    z-index: 1;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

.timeline-dot {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    background: white;
    border: 5px solid var(--secondary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--secondary);
    border-color: white;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -12px; }
.timeline-item:nth-child(even) .timeline-dot { left: -12px; }

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: var(--secondary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; text-align: left !important; margin-bottom: 50px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 10px !important; right: auto !important; }
    .timeline-content { padding: 20px; }
    .timeline-date { font-size: 0.8rem; }
}

/* â”€â”€ Enhanced Carousel â”€â”€ */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-nav {
    display: none !important; /* Forces removal of arrows */
}

.carousel-wrapper { overflow: hidden; }

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    position: relative;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
}

.quote-icon {
    font-family: serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 30px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--secondary);
    transform: scale(1.3);
}

/* â”€â”€ FAQ Accordion â”€â”€ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.faq-item.active {
    background: #fdfdfd;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 30px;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
    background: var(--secondary);
    color: white;
}

/* â”€â”€ Floating CTA â”€â”€ */
.floating-cta {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Moved to left for a "Support" style appearance, or let's try right corner but different design */
    width: 320px;
    background: var(--primary);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    z-index: 1000;
    transform: translateX(-120%) scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border: 1px solid rgba(255,255,255,0.1);
}

.floating-cta.visible {
    transform: translateX(0) scale(1);
}

.cta-banner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-banner p { margin: 0; color: #cbd5e1; font-size: 0.95rem; line-height: 1.5; }
.cta-banner p strong { color: white; display: block; font-size: 1.1rem; margin-bottom: 5px; }

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.cta-close {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cta-close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 640px) {
    .floating-cta {
        bottom: 20px;
        left: 15px;
        width: 290px;
        padding: 16px;
        z-index: 1000;
    }
    .cta-banner { gap: 10px; }
    .cta-banner p { font-size: 0.85rem; }
    .cta-banner p strong { font-size: 1rem; }
}

/* â”€â”€ Animation Curve Update â”€â”€ */
.anim-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* â”€â”€ FLOATING BUTTONS â”€â”€ */
.float-btn {
    position: fixed;
    right: 30px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
}

.mail-float {
    bottom: 30px;
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}


.mail-float:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.mail-icon { width: 24px; height: 24px; }

.back-to-top {
    bottom: 100px;
    background: var(--primary);
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary); transform: translateY(-5px); color: white; }

/* -- EVALUADOR WIZARD -- */
.wizard-container { max-width: 850px; margin: 0 auto; }

.wizard-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.wizard-header { margin-bottom: 40px; }

.wizard-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wizard-step-info {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wizard-question-area h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #0f172a;
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wizard-option {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 20px 28px;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e293b;
    font-family: inherit;
    width: 100%;
    display: block;
}

.wizard-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.wizard-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-out-left {
    opacity: 0 !important;
    transform: translateX(-40px) !important;
    transition: all 0.35s ease !important;
}

.slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.result-card { text-align: center; padding-top: 10px; }
.result-score {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.risk-high { background: #fee2e2; color: #dc2626; border: 2px solid #fecaca; }
.risk-med  { background: #fef3c7; color: #d97706; border: 2px solid #fde68a; }
.risk-low  { background: #d1fae5; color: #059669; border: 2px solid #a7f3d0; }

.result-actions {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .wizard-card { padding: 30px 20px; min-height: auto; }
    .wizard-question-area h3 { font-size: 1.4rem; }
    .result-actions { flex-direction: column; }
}

/* ── DASHBOARD LEGAL ── */
.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
    border-color: #2563eb;
}

.kpi-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-color: transparent;
}

.kpi-highlight .kpi-number,
.kpi-highlight .kpi-unit,
.kpi-highlight .kpi-label { color: white !important; }

.kpi-highlight .kpi-icon { background: rgba(255,255,255,0.1); color: #93c5fd; }

.kpi-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: all 0.3s ease;
}

.kpi-card:hover .kpi-icon { background: #2563eb; color: white; }
.kpi-highlight:hover .kpi-icon { background: rgba(255,255,255,0.2); }

.kpi-body {
    display: flex;
    flex-direction: column;
}

.kpi-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.kpi-unit {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2563eb;
}

.kpi-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 6px;
}

/* Bar section */
.dashboard-bars {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.dashboard-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.bar-list { display: flex; flex-direction: column; gap: 28px; }

.bar-item {}

.bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bar-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.bar-value {
    font-size: 1rem;
    font-weight: 800;
    color: #2563eb;
    min-width: 42px;
    text-align: right;
}

.bar-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bar-tag {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

/* Feed section */
.dashboard-feed {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
}

.feed-list { list-style: none; display: flex; flex-direction: column; gap: 0; }

.feed-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }

.feed-dot {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    margin-top: 5px;
}

.feed-success .feed-dot { background: #059669; box-shadow: 0 0 0 4px #d1fae5; }
.feed-info    .feed-dot { background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.feed-warning .feed-dot { background: #d97706; box-shadow: 0 0 0 4px #fef3c7; }

.feed-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feed-content strong { color: #0f172a; font-weight: 700; }

.feed-time {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

@media (max-width: 992px) {
    .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .dashboard-kpis { grid-template-columns: 1fr; }
    .dashboard-bars, .dashboard-feed { padding: 24px 20px; }
}

/* ── MODAL SYSTEM ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 100%;
    max-width: 650px;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-content {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-body h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-body p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-body ul {
    margin-top: 15px;
    margin-bottom: 25px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    color: #475569;
    position: relative;
    list-style: none;
}

.modal-body li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--secondary);
    font-weight: bold;
}

/* Services Grid Refactor Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

.service-card {
    padding: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1.5px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    background: white;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 30px 20px; }
}

/* ── MAPA DE IMPACTO ── */
.map-wrapper {
    margin: 50px auto;
    max-width: 900px;
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

.world-map-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.05));
}

.map-land {
    fill: #f1f5f9;
    stroke: #e2e8f0;
    stroke-width: 1;
    transition: fill 0.3s ease;
}

/* Markers */
.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
}

.marker-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
    z-index: 1;
}

@keyframes mapPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Tooltips */
.marker-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f172a;
    color: white;
    padding: 15px;
    border-radius: 12px;
    width: 220px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    pointer-events: none;
    z-index: 10;
}

.marker-info::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #0f172a;
}

.map-marker:hover .marker-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.marker-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #93c5fd;
}

.marker-info p {
    margin: 0;
    line-height: 1.4;
    color: #cbd5e1;
}

/* Stats */
.map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.impacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.impacto-info {
    text-align: left;
}

.impacto-info .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.impacto-info .section-line {
    margin: 20px 0;
}

@media (max-width: 992px) {
    .impacto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .impacto-info, .impacto-info .section-header {
        text-align: center;
    }
    .impacto-info .section-line {
        margin: 20px auto;
    }
}

.map-stat {
    display: flex;
    flex-direction: column;
}

.stat-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .map-container { padding: 20px; }
    .map-stats { gap: 20px; flex-wrap: wrap; }
    .marker-info { width: 180px; left: 0; transform: translateY(10px); }
    .marker-info::after { left: 20px; }
}

/* Mejoras de contraste para el mapa */
.map-land {
    fill: #cbd5e1 !important;
    stroke: #94a3b8 !important;
}
.map-container {
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(241,245,249,1) 100%) !important;
}


/* -- RED DE IMPACTO (Reemplazo del mapa) -- */
.section-dark {
    background: #0f172a;
}

.network-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%; /* Filled by grid column */
    aspect-ratio: 7 / 5;
    margin: 0;
}

.network-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.net-line {
    stroke: rgba(59, 130, 246, 0.3);
    stroke-width: 1.5;
    stroke-dasharray: 6, 4;
    animation: dashFlow 20s linear infinite;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -200; }
}

.net-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 5;
}

.node-dot {
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border: 3px solid #1e3a5f;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.net-node:hover .node-dot {
    transform: scale(1.4);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.9);
}

.hub-dot {
    width: 24px;
    height: 24px;
    background: #2563eb;
    border: 4px solid #1e40af;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
}

.pulse-big {
    width: 60px !important;
    height: 60px !important;
}

.net-node .pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: mapPulse 2.5s infinite;
    z-index: 1;
}

.node-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.hub-label {
    font-size: 1rem;
    color: white;
    margin-top: 14px;
    letter-spacing: 3px;
}

.node-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(30, 58, 95, 0.95);
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    width: 220px;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 10;
}

.node-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(30, 58, 95, 0.95);
}

.net-node:hover .node-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .network-wrapper { aspect-ratio: 1 / 1; }
    .node-label { font-size: 0.65rem; }
    .node-tooltip { width: 160px; font-size: 0.7rem; }
    .hub-label { font-size: 0.8rem; }
}

/* -- CONTACT MODAL ENHANCEMENTS -- */
.modal-overlay.contact-mode {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(15, 23, 42, 0.6);
}

.contact-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-modal-info {
    padding-right: 30px;
    border-right: 1px solid #e2e8f0;
}

.contact-modal-info h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.contact-modal-info p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.modal-content.contact-glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
    .contact-modal-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-modal-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 20px;
    }
}


/* -- PRE-COMMIT UI POLISH -- */
.modal-overlay.open.contact-mode .modal-content {
    animation: contactZoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 900px;
    padding: 50px;
}

@keyframes contactZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#modal-association-form .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

#modal-association-form input, 
#modal-association-form select, 
#modal-association-form textarea {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

#modal-association-form input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}


/* -- DEEP REFINEMENT: CONTACT MODAL PREMIUM -- */
.modal-overlay.contact-mode .modal-content {
    max-width: 1000px !important;
    width: 95% !important;
    padding: 0 !important; /* Managed by internal layout */
    overflow: hidden;
}

.contact-modal-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 600px;
    gap: 0 !important;
}

.contact-modal-info {
    background: #f8fafc;
    padding: 60px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #e2e8f0;
}

.info-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 25px;
}

.contact-modal-info h2 {
    font-size: 2.4rem !important;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 30px;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
}

.contact-detail-row {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    align-items: flex-start;
}

.detail-icon {
    width: 44px;
    height: 44px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.detail-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.detail-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.contact-modal-form {
    padding: 60px;
    background: white;
}

.form-footer {
    margin-top: 40px;
    text-align: center;
}

.form-privacy {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* -- FINAL FIX: SPACE & PROPORTIONS FOR CONTACT MODAL -- */
.modal-overlay.contact-mode .modal-dialog {
    max-width: 1100px !important;
    width: 98% !important;
}

.modal-overlay.contact-mode .modal-content {
    padding: 0 !important;
    max-width: none !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.contact-modal-layout {
    grid-template-columns: 420px 1fr !important;
}

.contact-modal-form {
    padding: 60px 80px !important; /* Significant horizontal breathing room */
}

@media (max-width: 1100px) {
    .contact-modal-layout {
        grid-template-columns: 360px 1fr !important;
    }
    .contact-modal-form {
        padding: 30px 20px !important;
    }
}

@media (max-width: 900px) {
    .contact-modal-layout {
        grid-template-columns: 1fr !important;
        height: auto;
    }
    .contact-modal-info {
        padding: 50px 30px 30px !important;
        order: 1; /* Keep Info on top so the Close button doesn't overlap form fields */
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
    }
    .contact-modal-form {
        padding: 30px 20px 40px !important;
        order: 2;
    }
    .contact-modal-info h2 { font-size: 1.8rem !important; }
}

#modal-association-form .form-row {
    gap: 30px !important;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    #modal-association-form .form-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }
}

#modal-association-form .form-group {
    margin-bottom: 25px;
}

#modal-association-form .form-group label {
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
    color: #334155 !important;
}


/* -- PHASE 5: MICRO-INTERACTIONS & CUSTOM CURSOR -- */
@media (pointer: fine) {
    body, a, button, [role=" button\] {
 cursor: none !important;
 }

 #cursor-dot, #cursor-outline {
 position: fixed;
 top: 0;
 left: 0;
 transform: translate(-50%, -50%);
 border-radius: 50%;
 z-index: 9999;
 pointer-events: none;
 transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
 }

 #cursor-dot {
 width: 6px;
 height: 6px;
 background-color: var(--secondary);
 }

 #cursor-outline {
 width: 30px;
 height: 30px;
 border: 1.5px solid var(--secondary);
 opacity: 0.5;
 }

 /* Hover States */
 .cursor-hover #cursor-dot {
 transform: translate(-50%, -50%) scale(0);
 }

 .cursor-hover #cursor-outline {
 width: 60px;
 height: 60px;
 background-color: rgba(59, 130, 246, 0.1);
 border-color: var(--secondary);
 opacity: 1;
 }
}

/* Fallback for touch if script fails */
@media (pointer: coarse) {
 #cursor-dot, #cursor-outline {
 display: none !important;
 }
}

