﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        color: var(--gray);
        font-weight: 500;
        transition: color 0.3s;
        position: relative;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient);
            transition: width 0.3s;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    }

.cta-button-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

    .cta-button-outline:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #f5f3ff 100%);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.partners-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: fit-content;
}

.partner-logo {
    font-weight: 600;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.875rem;
}

.partner-x {
    color: var(--primary);
    font-weight: 700;
}

.hero-image {
    position: relative;
}

    .hero-image img {
        width: 100%;
        border-radius: 24px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
        transition: transform 0.5s;
    }

    .hero-image:hover img {
        transform: scale(1.02);
    }

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 4s ease-in-out infinite;
}

    .floating-card:nth-child(2) {
        top: -20px;
        right: -20px;
        animation-delay: 1s;
    }

    .floating-card:nth-child(3) {
        bottom: 20px;
        left: -30px;
        animation-delay: 2s;
    }

/* About Section */
.about {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 2.5rem;
        color: var(--dark);
        margin-bottom: 1rem;
    }

    .section-header p {
        color: var(--gray);
        font-size: 1.125rem;
        max-width: 600px;
        margin: 0 auto;
    }

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

    .about-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--gradient);
        transform: scaleX(0);
        transition: transform 0.3s;
    }

    .about-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

        .about-card:hover::before {
            transform: scaleX(1);
        }

.about-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-card p {
    color: var(--gray);
    line-height: 1.7;
}

.partners-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.partner-block {
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

    .partner-block.goodsystem {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    }

    .partner-block.neuroedu {
        background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    }

    .partner-block h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--dark);
    }

    .partner-block .url {
        display: inline-block;
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 1rem;
        text-decoration: none;
    }

    .partner-block p {
        color: var(--gray);
        line-height: 1.7;
    }

.partner-visual {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

    .partner-visual img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .partner-visual:hover img {
        transform: scale(1.05);
    }

/* Services Section - NUEVO */
.services {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

    .services::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.5;
    }

.service-main {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-main h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-description {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.service-components {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.component-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s;
}

    .component-item:hover {
        background: #f1f5f9;
        transform: translateX(5px);
    }

.component-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.component-text h4 {
    font-size: 1.125rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.component-text p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.6;
}

.service-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

    .service-cta p {
        color: var(--gray);
        margin-bottom: 1.5rem;
        font-size: 1.125rem;
    }

/* Contact Section - NUEVO */
.contact {
    padding: 6rem 2rem;
    background: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 32px;
    padding: 4rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem 1.25rem;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        transition: all 0.3s;
        background: white;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

.whatsapp-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.alternative-contact {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

    .alternative-contact p {
        color: var(--gray);
        margin-bottom: 1rem;
    }

.whatsapp-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

    .whatsapp-direct:hover {
        background: #128c7e;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    }

/* Features Grid */
.features {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.feature-label {
    color: var(--gray);
    font-weight: 500;
}

/* Minimalist Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.footer-brand-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.footer-brand-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 0.3s;
        font-size: 0.875rem;
    }

        .footer-links a:hover {
            color: white;
        }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

    .social-links a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: background 0.3s;
    }

        .social-links a:hover {
            background: var(--primary);
        }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 9999;
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

.toast-icon {
    width: 24px;
    height: 24px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .partners-section {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-components {
        grid-template-columns: 1fr;
    }

    .service-main {
        padding: 2rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .partners-badge {
        flex-direction: column;
        width: 100%;
    }
}
/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .go-to-top:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .go-to-top:active {
        transform: translateY(-1px) scale(1.05);
    }

    .go-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .go-to-top svg {
        transition: transform 0.3s ease;
    }

    .go-to-top:hover svg {
        transform: translateY(-2px);
    }

/* Responsive */
@media (max-width: 768px) {
    .go-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

        .go-to-top svg {
            width: 20px;
            height: 20px;
        }
}

/* Modo oscuro (si lo implementas después) */
@media (prefers-color-scheme: dark) {
    .go-to-top {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

        .go-to-top:hover {
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
        }
}
/* ================================================================
   DROPDOWN HERRAMIENTAS — CSS completo independiente
   Agrega al FINAL de StyleS.css (reemplaza el bloque anterior)
   ================================================================ */

/* ── 1. BOTÓN HAMBURGER (solo móvil, actualmente no existe) ── */
.nav-hamburger {
    display: none; /* oculto en desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1100;
    flex-shrink: 0;
}

    .nav-hamburger:hover {
        background: rgba(37, 99, 235, 0.08);
    }

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--dark);
        border-radius: 2px;
        transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
        transform-origin: center;
    }

    /* Animación X al abrir */
    .nav-hamburger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.is-open span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .nav-hamburger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ── 2. DROPDOWN — DESKTOP (hover) ── */
.nav-links li.dropdown {
    position: relative;
}

    .nav-links li.dropdown > a {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        user-select: none;
        /* neutraliza el ::after subrayado que el CSS global aplica */
        pointer-events: auto;
    }

        /* Flecha giratoria */
        .nav-links li.dropdown > a .dd-arrow {
            display: inline-block;
            font-size: 9px;
            line-height: 1;
            opacity: 0.65;
            transition: transform 0.22s ease, opacity 0.15s;
        }

    /* Panel flotante */
    .nav-links li.dropdown .dropdown-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(-4px);
        background: #ffffff;
        border-radius: 12px;
        min-width: 200px;
        padding: 6px 0;
        box-shadow: 0 10px 32px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.07);
        border: 1px solid rgba(0,0,0,0.07);
        list-style: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.2s ease;
        z-index: 1200;
    }

        /* Triángulo decorativo */
        .nav-links li.dropdown .dropdown-panel::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-bottom: 7px solid #ffffff;
            pointer-events: none;
        }

    /* Mostrar en desktop: hover + focus-within + clase .dd-open */
    .nav-links li.dropdown:hover .dropdown-panel,
    .nav-links li.dropdown:focus-within .dropdown-panel,
    .nav-links li.dropdown.dd-open .dropdown-panel {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    /* Rotar flecha al abrir */
    .nav-links li.dropdown:hover > a .dd-arrow,
    .nav-links li.dropdown:focus-within > a .dd-arrow,
    .nav-links li.dropdown.dd-open > a .dd-arrow {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* Items del panel */
    .nav-links li.dropdown .dropdown-panel li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 18px;
        color: #2d2d3a;
        font-size: 13.5px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.14s, color 0.14s;
        /* cancela el ::after del CSS global para estos links */
        position: static;
    }

        .nav-links li.dropdown .dropdown-panel li a::after {
            display: none !important; /* evita la línea subrayado del nav global */
        }

        .nav-links li.dropdown .dropdown-panel li a:hover {
            background: #f0f4ff;
            color: var(--primary);
        }

        .nav-links li.dropdown .dropdown-panel li a .item-icon {
            font-size: 15px;
            flex-shrink: 0;
            width: 20px;
            text-align: center;
        }

    /* Separador */
    .nav-links li.dropdown .dropdown-panel .dd-sep {
        height: 1px;
        background: rgba(0,0,0,0.07);
        margin: 5px 12px;
    }

/* ── 3. MENÚ MÓVIL — panel deslizante completo ── */
/*
   En móvil el CSS del sitio hace:
       .nav-links { display: none; }
   Se respeta esa regla. En su lugar, el menú móvil
   (#mobile-nav) es un panel independiente que se muestra
   al pulsar el hamburger.
*/

/* Panel lateral / desplegable móvil */
#mobile-nav {
    display: none; /* solo existe en móvil */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    /* fondo oscuro semitransparente */
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    #mobile-nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    /* Panel blanco deslizante desde la derecha */
    #mobile-nav .mn-panel {
        position: absolute;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100%;
        background: #ffffff;
        padding: 0;
        box-shadow: -8px 0 32px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    #mobile-nav.is-open .mn-panel {
        transform: translateX(0);
    }

/* Cabecera del panel */
.mn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

    .mn-header span {
        font-weight: 700;
        font-size: 1rem;
        color: var(--dark);
    }

.mn-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray);
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

    .mn-close:hover {
        background: #f1f5f9;
        color: var(--dark);
    }

/* Lista de enlaces */
.mn-list {
    list-style: none;
    padding: 10px 0;
    flex: 1;
}

    .mn-list > li > a,
    .mn-list > li > button.mn-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 13px 22px;
        color: var(--dark);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        transition: background 0.14s, color 0.14s;
        border-radius: 0;
        font-family: 'Inter', sans-serif;
    }

        .mn-list > li > a:hover,
        .mn-list > li > button.mn-trigger:hover {
            background: #f8fafc;
            color: var(--primary);
        }

/* Flecha del acordeón móvil */
.mn-trigger .mn-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.22s ease;
}

.mn-trigger.is-open .mn-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Sub-lista acordeón (herramientas) */
.mn-sub {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    background: #f8fafc;
    opacity: 0;
}

    .mn-sub.is-open {
        max-height: 400px; /* suficiente para N herramientas */
        opacity: 1;
    }

    .mn-sub li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 22px 11px 36px; /* indent extra */
        color: #2d2d3a;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.14s, color 0.14s;
    }

        .mn-sub li a:hover {
            background: #eef2ff;
            color: var(--primary);
        }

        .mn-sub li a .item-icon {
            font-size: 14px;
            width: 18px;
            text-align: center;
            flex-shrink: 0;
        }

    .mn-sub .dd-sep {
        height: 1px;
        background: rgba(0,0,0,0.07);
        margin: 4px 14px;
    }

/* Separador de sección en el menú móvil */
.mn-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 6px 14px;
}

/* CTA al final del panel */
.mn-cta {
    padding: 18px 20px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

    .mn-cta a {
        display: block;
        text-align: center;
        background: var(--gradient);
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: opacity 0.2s, transform 0.2s;
    }

        .mn-cta a:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

/* ── 4. RESPONSIVE: activar hamburger en móvil ── */
@media (max-width: 768px) {
    /* Mostrar el botón hamburger */
    .nav-hamburger {
        display: flex;
    }

    /* Mostrar el overlay del menú móvil */
    #mobile-nav {
        display: block;
    }

    /* El nav-links sigue oculto (regla existente del sitio se respeta) */
    /* El botón CTA del header también puede ocultarse si satura */
    /* Descomenta la siguiente línea si quieres ocultarlo en móvil:  */
    /* header .cta-button { display: none; }                         */
}
/* ── Layout interno del bloque partner ── */
.partner-block .partner-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.partner-block .partner-info {
    flex: 1; /* ocupa todo el espacio restante */
    min-width: 0; /* evita desbordamiento en flex */
}

/* ── Columna derecha: perfil ── */
.partner-block .partner-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* no se encoge */
    width: 110px;
}

/* ── Avatar circular ── */
.partner-block .profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .partner-block .profile-avatar:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }

    .partner-block .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* ── Color de borde por aliado ── */
.partner-block.goodsystem .profile-avatar {
    border-color: #2196F3; /* azul Good System */
}

.partner-block.neuroedu .profile-avatar {
    border-color: #9C27B0; /* morado Neuroedu */
}

/* ── Texto bajo el avatar ── */
.partner-block .profile-name {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    line-height: 1.2;
}

.partner-block .profile-role {
    font-size: 0.70rem;
    text-align: center;
    color: #777;
    line-height: 1.2;
}

/* ── Logo con margen ── */
.partner-block .partner-logo {
    display: block;
    margin: 0.6rem 0;
}

/* ── Instagram link alineado ── */
.partner-block .instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #833AB4;
}

/* ── Responsivo: apilar en móvil ── */
@media (max-width: 600px) {
    .partner-block .partner-content {
        flex-direction: column;
        align-items: center;
    }

    .partner-block .partner-profile {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .partner-block .profile-avatar {
        width: 75px;
        height: 75px;
    }
}