/* =====================================================
   RESET Y VARIABLES CSS
   ===================================================== */

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

:root {
    /* Fondos */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* Verde Neón - Color Principal */
    --primary-50: #F0FDF4;
    --primary-100: #DCFCE7;
    --primary-200: #BBF7D0;
    --primary-300: #86EFAC;
    --primary-400: #4ADE80;
    --primary-500: #22C55E;
    --primary-600: #16A34A;
    --primary-700: #15803D;
    --primary-800: #166534;
    --primary-900: #14532D;

    /* Textos */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* Tipografía */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --container-max: 1280px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =====================================================
   PARTÍCULAS DE FONDO
   ===================================================== */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50px, -200px);
        opacity: 0.6;
    }

    75% {
        transform: translate(-100px, -100px);
        opacity: 0.8;
    }
}

/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg, .brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.4));
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-500);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    padding: 10px 24px;
    border-radius: 8px;
    color: white !important;
}

.btn-nav-cta::after {
    display: none;
}

.btn-portal {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border-radius: 8px;
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
}

.btn-portal::after {
    display: none;
}

.btn-portal svg {
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 300px;
        height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(34, 197, 94, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 180px 0 100px; /* Aumentado padding superior para despejar el navbar */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
}

.hero-content {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-400);
    margin-bottom: var(--spacing-md);
}

.label-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem); /* Ajustado para evitar desbordamiento */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 30%, var(--primary-400) 60%, var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: #000;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5), 0 4px 24px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.8), 0 8px 40px rgba(34, 197, 94, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: var(--primary-400);
}

.btn-secondary:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary-500);
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-500);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(34, 197, 94, 0.2);
}

/* Hero Visual - Esfera 3D */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-main {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 550px;
    height: auto;
    aspect-ratio: 16/10;
}

.hero-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 40px rgba(34, 197, 94, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float-photo 6s ease-in-out infinite;
    transition: all 0.4s ease;
}

.product-mockup {
    object-fit: contain !important;
    padding: 10px;
}

.hero-photo:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow:
        0 0 80px rgba(34, 197, 94, 0.7),
        0 0 140px rgba(34, 197, 94, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.7);
}

@keyframes float-photo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow-hero 4s ease-in-out infinite;
}

@keyframes pulse-glow-hero {

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

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.sphere-container {
    position: relative;
    width: 400px;
    height: 400px;
    opacity: 0.4;
}

.sphere {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

.sphere-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.2) 100%);
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.4), 0 0 120px rgba(34, 197, 94, 0.3), inset 0 0 60px rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sphere-ring {
    position: absolute;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;
}

.ring-1 {
    width: 120%;
    height: 120%;
    animation: rotate-ring 20s linear infinite;
}

.ring-2 {
    width: 140%;
    height: 140%;
    animation: rotate-ring 15s linear infinite reverse;
}

.ring-3 {
    width: 160%;
    height: 160%;
    animation: rotate-ring 25s linear infinite;
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sphere-core {
    z-index: 10;
    filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.8));
}

.orbit {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-500);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
}

.orbit-1 {
    top: 10%;
    left: 20%;
    animation: orbit-move 8s ease-in-out infinite;
}

.orbit-2 {
    bottom: 15%;
    right: 25%;
    animation: orbit-move 10s ease-in-out infinite reverse;
}

@keyframes orbit-move {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -50px);
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-500);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 2px;
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   SECCIONES GENERALES
   ===================================================== */

section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* =====================================================
   SERVICIOS - FLIP CARDS
   ===================================================== */

.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card-flip {
    perspective: 1000px;
    height: 400px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-visual-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.service-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.8);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-flip:hover .service-bg-image {
    transform: scale(1.1);
}

.service-card-flip:hover .service-visual-gradient {
    transform: scale(1.05);
}

.gradient-1 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.3));
}

.gradient-2 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(21, 128, 61, 0.25));
}

.gradient-3 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.2));
}

.gradient-4 {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(34, 197, 94, 0.3));
}

.gradient-5 {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.15), rgba(34, 197, 94, 0.25));
}

.gradient-6 {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(21, 128, 61, 0.2));
}

.service-icon {
    width: 120px;
    height: 120px;
    color: var(--primary-400);
    filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.6));
}

.service-overlay {
    position: relative;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.service-title-front {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-card-back {
    transform: rotateY(180deg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-sm);
}

.glass-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 50%, rgba(34, 197, 94, 0.08) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(34, 197, 94, 0.15);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.35);
    transform: translateY(-4px);
}

.service-title-back {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-400);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.feature-tag {
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-400);
}

/* =====================================================
   SOBRE MÍ
   ===================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-500);
    object-fit: cover;
    box-shadow:
        0 0 60px rgba(34, 197, 94, 0.4),
        0 0 120px rgba(34, 197, 94, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 80px rgba(34, 197, 94, 0.6),
        0 0 140px rgba(34, 197, 94, 0.3),
        0 25px 70px rgba(0, 0, 0, 0.6);
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    color: var(--primary-400);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--primary-500);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.highlight-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 4px;
}

.highlight-content p {
    color: var(--text-tertiary);
    margin: 0;
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */

.testimonials {
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.testimonial-card {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.star {
    color: var(--primary-500);
    font-size: 1.25rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
}

.author-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* =====================================================
   CTA FINAL
   ===================================================== */

.cta-final {
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.2) 0%, transparent 70%), var(--bg-primary);
    padding: var(--spacing-3xl) 0;
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* =====================================================
   FORMULARIO DE CONTACTO
   ===================================================== */

.contact-form {
    max-width: 700px;
    margin: var(--spacing-xl) auto var(--spacing-lg);
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(34, 197, 94, 0.05);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-quaternary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(34, 197, 94, 0.08);
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.1),
        0 0 20px rgba(34, 197, 94, 0.3);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    margin-top: var(--spacing-md);
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid var(--primary-500);
    color: var(--primary-400);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #EF4444;
    color: #FCA5A5;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(34, 197, 94, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-description {
    color: var(--text-tertiary);
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(34, 197, 94, 0.1);
    color: var(--text-quaternary);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    color: var(--text-quaternary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-400);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-main {
        width: 280px;
        height: 360px;
    }

    .sphere-container {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--spacing-xl);
        border-bottom: 1px solid rgba(34, 197, 94, 0.2);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .navbar {
        height: auto;
        padding: var(--spacing-sm) 0;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 var(--spacing-md);
    }

    .nav-brand span {
        font-size: 1.1rem;
        /* Mas pequeño para evitar colisiones */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        /* Mejor fixed para móvil */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(25px);
        padding: 100px var(--spacing-xl);
        gap: var(--spacing-lg);
        z-index: 2000;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
        text-align: center;
        font-size: 1.25rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
        margin-top: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
        z-index: 1100;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--primary-500);
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding: 150px 0 60px; /* Ajuste móvil */
        min-height: 100vh;
        justify-content: flex-start;
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-content {
        display: contents;
        /* Permite ordenar hijos directos en el grid del container */
    }

    .hero-label {
        order: 1;
        margin: 0 auto var(--spacing-sm);
    }

    .hero-title {
        order: 2;
        font-size: 2.2rem !important;
        margin-bottom: var(--spacing-md);
        line-height: 1.2;
    }

    .hero-visual {
        order: 3;
        display: flex;
        justify-content: center;
        margin: var(--spacing-lg) 0;
        position: relative;
    }

    .hero-image-main {
        position: relative;
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 3/4;
        margin: 0 auto;
        z-index: 5;
    }

    .hero-photo {
        border-radius: 20px;
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    }

    .hero-subtitle {
        order: 4;
        margin-bottom: var(--spacing-xl);
        font-size: 1rem;
        padding: 0 var(--spacing-md);
    }

    .hero-cta {
        order: 5;
        justify-content: center;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .hero-stats {
        order: 6;
        gap: var(--spacing-md);
    }

    .sphere-container {
        display: none;
        /* Ocultar para limpiar el diseño en móviles */
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 350px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-divider {
        display: none;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    /* Formulario responsive */
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .particle:nth-child(n+20) {
        display: none;
    }
}

/* =====================================================
   ECOSISTEMA DIGITAL (HOME COMPACTO)
   ===================================================== */

.home-portals {
    padding-top: 100px;
    /* Evita superposición con el navbar fijo */
    padding-bottom: 25px;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    position: relative;
    z-index: 10;
}

.portals-teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.portal-teaser {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 197, 94, 0.1);
    padding: 12px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-teaser:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: var(--primary-500);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.teaser-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    flex-shrink: 0;
}

.teaser-icon svg {
    width: 22px;
    height: 22px;
}

.teaser-text {
    flex-grow: 1;
}

.teaser-text h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: white;
    margin: 0;
}

.teaser-text span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: block;
}

.teaser-btn {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-400);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
}

.teaser-btn:hover {
    background: var(--primary-500);
    color: black;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

@media (max-width: 992px) {
    .portals-teaser-grid {
        grid-template-columns: 1fr;
    }

    .home-portals {
        padding-top: 90px;
    }
}

/* =====================================================
   ACADEMIA HIGHLIGHTS (HOME)
   ===================================================== */

.academy-highlights {
    padding: var(--spacing-3xl) 0;
    background: radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.05), transparent 70%);
}

.academy-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.benefit-item:hover {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
    transform: translateX(10px);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-info h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-info p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.academy-visual {
    position: relative;
}

.featured-course-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.course-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.featured-course-card:hover .course-thumb {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}

.course-overlay h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.course-overlay p {
    color: var(--primary-300);
    font-weight: 500;
}

.tag {
    display: inline-block;
    background: var(--primary-500);
    color: black;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .academy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}