/* CSS Premium Dark Luxury - Selectivo Xalapa */

:root {
    /* FONDOS */
    --bg-primary: #000000;
    --bg-secondary: #09090b;
    --bg-tertiary: #18181b;

    /* ACENTO PRIMARIO: Verde eléctrico (Típico para pasto/soccer/selectivos) */
    --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;
    --primary-rgb: 34, 197, 94;

    /* TEXTOS */
    --text-primary: #ffffff;
    --text-secondary: #e4e4e7;
    --text-tertiary: #a1a1aa;
    --text-quaternary: #71717a;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

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

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 48px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

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

.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::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* BUTTONS */
.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;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    box-shadow: 
        0 0 0 1px rgba(var(--primary-rgb), 0.5),
        0 4px 24px rgba(var(--primary-rgb), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
    box-shadow: 
        0 0 0 2px rgba(var(--primary-rgb), 0.8),
        0 8px 40px rgba(var(--primary-rgb), 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-500);
    color: var(--primary-400);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 10;
}

.label-top {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.glow-text {
    background: linear-gradient(135deg, var(--primary-300), var(--primary-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 20px rgba(var(--primary-rgb), 0.4),
        0 0 40px rgba(var(--primary-rgb), 0.2);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
    opacity: 0;
}

.hero-visual-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere {
    width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.4));
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
}

/* GLASSMORPHISM CARD */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-rgb), 0.08) 0%,
        rgba(var(--primary-rgb), 0.04) 50%,
        rgba(var(--primary-rgb), 0.08) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 24px;
    padding: 32px;
    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(var(--primary-rgb), 0.35);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.35);
    transform: translateY(-4px);
}

/* SECTION GLOBALS */
.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 4rem;
}

/* SOCIAL PROOF */
.social-proof {
    padding: 4rem 0;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-500);
    font-family: var(--font-heading);
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

.metric-label {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.proof-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* SERVICES FLIP CARDS */
.services {
    padding: 8rem 0;
    background: radial-gradient(ellipse at bottom, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card-flip {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

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

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

.service-card-front {
    background-color: var(--bg-secondary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: left;
}

.service-title-front {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.service-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    background: var(--bg-tertiary); /* Solid background avoids transparency blending issues */
    border: 1px solid rgba(var(--primary-rgb), 0.35); /* Card outline matching hover states */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.service-title-back {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-400);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-300);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

/* VISORS SECTION */
.visors-section {
    padding: 6rem 0;
}

.visors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.visor-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #111;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: 0.3s;
}

.video-embed:hover {
    border-color: var(--primary-400);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.club-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.9);
    padding: 8px;
    border-radius: 50%;
}

.visor-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.visor-card p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* LOGISTICS */
.logistics-section {
    padding: 6rem 0;
}

.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem;
}

.log-block h3 {
    color: var(--primary-400);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* PARTIDOS SECTION */
.partidos-section {
    padding: 6rem 0;
    overflow-x: hidden;
}

.partidos-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 2rem;
}

.partido-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.partido-title-wrapper {
    width: 100%;
    margin: 0 0 1.5rem 0;
}

.partido-title {
    font-size: 2rem;
    color: var(--primary-400);
    border-left: 4px solid var(--primary-500);
    padding-left: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.partido-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.partido-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* CTA FINAL */
.cta-final {
    padding: 8rem 0;
    background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* ANIMATIONS */
@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); }
}

@keyframes fade-in-up {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes scale-in {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* PARTICLES */
#particles-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.particle {
    position: absolute;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.4;
    animation: float-particle 20s infinite ease-in-out;
    box-shadow: 0 0 10px var(--primary-500);
}

@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; }
}

/* REGISTRY FORM STYLES */
.registro-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-wrapper {
    padding: 3rem;
    max-width: 100%;
}

.registro-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.form-group select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title { font-size: 56px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .visors-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-menu-toggle { display: flex; z-index: 1001; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 48px; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-ctas { justify-content: center; }
    .sphere { width: 300px; height: 300px; }
    .services-grid { grid-template-columns: 1fr; }
    .visors-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; }
    .logistics-grid { grid-template-columns: 1fr; padding: 2rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-col { width: 100%; text-align: center !important; }
    .logo-container { justify-content: center; }
    
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .form-wrapper { padding: 2rem 1.5rem; }
}
