/* ==== CUSTOM FONTS (self-hosted) ==== */
@font-face {
    font-family: 'Satoshi';
    src: url('/static/fonts/Satoshi-Regular.woff2') format('woff2'),
         url('/static/fonts/Satoshi-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('/static/fonts/Satoshi-Medium.woff2') format('woff2'),
         url('/static/fonts/Satoshi-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Satoshi';
    src: url('/static/fonts/Satoshi-Bold.woff2') format('woff2'),
         url('/static/fonts/Satoshi-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==== RESET & FONTS ==== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0B0F1A 0%, #0F1626 100%);
    color: #e0f0e8;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ==== ANIMATED ORBS ==== */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #00D26A, transparent);
    top: -10%; left: -10%;
    animation: float 18s infinite ease-in-out;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7B61FF, transparent);
    bottom: -15%; right: -10%;
    animation: float 22s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -60px) scale(1.1); }
}

/* ==== HERO SECTION ==== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    background: rgba(15, 20, 35, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 60px 50px;
    border-radius: 28px;
    text-align: center;
    max-width: 780px;
    width: 100%;
    border: 1px solid rgba(0, 210, 106, 0.25);
    box-shadow:
        0 0 40px rgba(0, 210, 106, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: cardRise 1.2s ease-out;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,210,106,0.1), transparent 50%);
    pointer-events: none;
}

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

/* Logo */
.hero-logo {
    height: 78px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 16px rgba(0,210,106,0.6));
    transition: all 0.4s ease;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 24px rgba(0,210,106,0.8));
}

/* Title */
.hero-content h1 {
    font-family: 'Satoshi', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00D26A, #7B61FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Tagline */
.tagline {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #b0e6c8;
    margin: 20px 0 32px;
}

.highlight {
    background: linear-gradient(90deg, #7B61FF, #00D26A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* ==== NAVIGATION ==== */
.main-nav {
    margin: 32px 0;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    font-weight: 500;
}

.nav-link {
    color: #c0f0d8;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(0, 210, 106, 0.15);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 30, 0.95);
    min-width: 280px;
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 106, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 100;
}

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

.dropdown-menu li a {
    display: block;
    padding: 0.85rem 1.2rem;
    color: #c0f0d8;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(0, 210, 106, 0.2);
    color: #fff;
    padding-left: 1.5rem;
}

/* Mobile Toggle - completely disabled */
.mobile-toggle {
    display: none !important;
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00D26A, #00A854);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 210, 106, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: 0.6s;
}

.cta-btn:hover::before {
    transform: translateX(100%);
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 210, 106, 0.4);
}

.cta-btn .arrow {
    width: 18px;
    height: 18px;
    fill: white;
    transition: 0.3s;
}

.cta-btn:hover .arrow {
    transform: translateX(4px);
}

/* Login Button */
.login-btn {
    background: linear-gradient(135deg, #7B61FF, #5A3FD1);
    color: white !important;
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(123, 97, 255, 0.3);
    display: inline-block;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 97, 255, 0.4);
    background: linear-gradient(135deg, #5A3FD1, #7B61FF);
}

/* Hero Footer */
.hero-content footer {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #809080;
}

/* ==== SECTIONS ==== */
.section {
    padding: 100px 20px;
    position: relative;
    z-index: 1;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 3.2rem;
    background: linear-gradient(90deg, #00D26A, #7B61FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Modern title for Quiénes somos */
.modern-title {
    font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.05;
    margin-bottom: 2.4rem;
    position: relative;
    display: inline-block;
    text-align: center;
}

.modern-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: linear-gradient(90deg, #00D26A 0%, #7B61FF 100%);
    border-radius: 3px;
}

/* About text */
.about-text-wrapper {
    max-width: 860px;
    margin: 0 auto 4.5rem;
    text-align: justify;
    text-align-last: center;
}

.about-paragraph {
    font-size: 1.18rem;
    line-height: 1.85;
    color: #d0f0e0;
    margin-bottom: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.1px;
}

/* Mission / Vision */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.2rem;
    margin-top: 2rem;
}

.mission-vision-card {
    background: rgba(15, 20, 35, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.4rem 2.2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 106, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.mission-vision-card h3 {
    font-size: 2rem;
    color: #00D26A;
    margin-bottom: 1.3rem;
    letter-spacing: -0.4px;
}

.mission-vision-card p {
    font-size: 1.05rem;
    line-height: 1.72;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    background: rgba(15, 22, 40, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 210, 106, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 210, 106, 0.25);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 210, 106, 0.15);
}

/* Video-specific styling */
.service-card.large-image {
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem 1.6rem;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.4) 60%, transparent 100%);
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.video-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: #00D26A;
}

.video-overlay p {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content { padding: 50px 40px; }
    .section-title, .modern-title { font-size: 2.9rem; }
    .service-card.large-image { height: 340px; }
}

@media (max-width: 768px) {
    /* Hide navigation completely on mobile (as in the original behavior) */
    .main-nav,
    .nav-list {
        display: none !important;
    }

    .section { padding: 80px 18px; }
    .modern-title { font-size: 2.8rem; }
    .modern-title::after { width: 110px; height: 4px; bottom: -12px; }
    .about-paragraph { font-size: 1.1rem; line-height: 1.8; }
    .service-card.large-image { height: 320px; }

    /* Extra safety: never show mobile toggle */
    .mobile-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.6rem; }
    .tagline { font-size: 1.1rem; }
    .hero-content { padding: 40px 24px; }
    .hero-logo { height: 60px; }
    .modern-title { font-size: 2.4rem; }
    .modern-title::after { width: 90px; height: 3px; bottom: -10px; }
    .about-paragraph { font-size: 1.05rem; }
    .cta-btn { padding: 12px 28px; font-size: 0.95rem; }
    .service-card.large-image { height: 280px; }
}

/* ────────────────────────────────────────────────
   Contact form / modal fields
   ──────────────────────────────────────────────── */
.contact-card .form-group {
    margin-bottom: 1.6rem;
    text-align: left;
}

.contact-card .form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #b0e6c8;
    font-weight: 500;
    font-size: 1rem;
}

.contact-card .form-control,
.contact-card .form-group input,
.contact-card .form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    line-height: 1.5;
    background: rgba(10, 15, 30, 0.65);
    border: 1px solid rgba(0, 210, 106, 0.35);
    border-radius: 14px;
    color: #e8f5ef;
    font-family: inherit;
    transition: all 0.25s ease;
    resize: vertical;
    min-height: 54px;
}

.contact-card .form-group textarea {
    min-height: 140px;
}

.contact-card .form-control:focus,
.contact-card .form-group input:focus,
.contact-card .form-group textarea:focus {
    outline: none;
    border-color: #00D26A;
    box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.18);
    background: rgba(10, 15, 30, 0.85);
}

.contact-card .cta-btn.modal-submit {
    padding: 1.1rem 2rem;
    font-size: 1.05rem;
    min-height: 54px;
}

/* Mobile improvements for form */
@media (max-width: 768px) {
    .contact-card .form-group {
        margin-bottom: 1.4rem;
    }
    .contact-card .form-control,
    .contact-card .form-group input,
    .contact-card .form-group textarea {
        padding: 0.95rem 1.1rem;
        font-size: 1rem;
    }
    .contact-card .form-group textarea {
        min-height: 120px;
    }
}
