﻿/* 🌈 /* 🌈 Variables CSS */
:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --background-dark: #1a1a1a;
    --background-light: #2d2d2d;
    --text-light: #f0f0f0;
    --accent-color: #FFD700;
    --modal-backdrop: rgba(0, 0, 0, 0.8);
}

/* 🖤 Estilos Generales */
body {
    background: var(--background-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 🚀 Hero Section */
.hero {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

    .hero::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -10%;
        width: 120%;
        height: 100px;
        background: var(--background-light);
        transform: rotate(3deg);
        z-index: 1;
    }

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 🔹 Feature Cards */
.features {
    padding: 4rem 20px;
}

    .features h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        background: linear-gradient(145deg, #2d2d2d, #252525);
        border-color: var(--primary-color);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .feature-card h3 {
        color: var(--primary-color);
        margin-bottom: 15px;
    }

/* 🎨 Botones */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3d8b40);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    }

/* 🪟 Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-backdrop);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.95);
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes scaleUp {
    from {
        transform: scale(0.95);
    }

    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .modal-close svg {
        width: 14px;
        height: 14px;
    }

/* 📝 Formularios */
.form-control {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
    background: #333;
    color: var(--text-light);
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
        border-color: var(--primary-color);
    }

/* 🔄 Tabs del Modal */
.modal-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

    .tab-button.active {
        opacity: 1;
        font-weight: 600;
        border-bottom: 2px solid var(--primary-color);
    }

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 15px;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }
    .platform-name {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 35px;
    }

    .main-header {
        padding: 0.8rem 1rem;
    }
}

/* 🛑 Mensajes de Error/Éxito */
.error-message {
    color: #ff4444;
    margin: 10px 0;
    font-size: 0.9rem;
}

.success-message {
    color: #00C851;
    margin: 10px 0;
    font-size: 0.9rem;
}
/* Añade al CSS */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Estilos para inputs inválidos */
.form-control.invalid {
    border: 1px solid #ff4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}
/* Efecto de "hover elevado" */
.feature-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

    .feature-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    }

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0; /* Detrás del contenido */
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1); /* Color de partículas */
    border-radius: 50%;
    animation: float 20s infinite linear;
    animation-delay: calc(var(--delay) * 1s); /* Diferentes velocidades */
    width: var(--size);
    height: var(--size);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(100px); /* Movimiento diagonal */
        opacity: 0;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    padding: 100px 20px;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s infinite linear;
    animation-delay: calc(var(--delay) * 1s);
    width: var(--size);
    height: var(--size);
    opacity: 0;
    left: var(--start-position);
}

@@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) translateX(calc(var(--end-position) * 1px));
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
/* Estilos para el encabezado y logo */
.main-header {
    background: var(--background-light);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    padding: 5px;
    background: white;
    border-radius: 8px;
}

.platform-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}
/* Estilos para CTA centrado */
.cta {
    background: var(--background-light);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

@media (max-width: 768px) {
    .cta {
        padding: 60px 20px;
    }

        .cta h2 {
            font-size: 1.8rem;
        }
}