/* Variables */
:root {
    --primary: #6c63ff; /* Color principal */
    --secondary: #f59e0b; /* Color secundario */
    --accent: #00d1b2; /* Color de acento */
    --background: #1a1a2e; /* Fondo principal */
    --foreground: #eaeaea; /* Texto principal */
    --card-bg: #24243e; /* Fondo de tarjetas */
    --shadow: rgba(0, 0, 0, 0.6); /* Sombra */
    --font-primary: 'Poppins', sans-serif; /* Fuente principal */
    --font-secondary: 'Roboto', sans-serif; /* Fuente secundaria */
    --radius: 10px; /* Border radius */
}

/* Estilo global */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: var(--foreground);
    scroll-behavior: smooth;
}

/* Animación general para desvanecerse */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de movimiento lateral */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}
    @media (max-width: 768px) {
        .nav-links {
            flex-direction: column;
            gap: 5px;
        }
    }
    
    .container {
        flex-direction: column; /* Cambiar de fila a columna en pantallas pequeñas */
    }

/* Header */
header {
    background: var(--card-bg);
    padding: 15px 30px;
    box-shadow: 0 4px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideIn 1s ease-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    animation: fadeIn 1.5s ease-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--foreground);
    transition: transform 0.3s ease, color 0.3s ease;
    animation: fadeIn 2s ease-out;
}

.nav-links li a:hover {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #322e75 #5751c0, #121644);
    color: var(--foreground);
    box-shadow: 0 4px 10px var(--shadow);
    border-radius: var(--radius);
    margin: 20px;
    animation: fadeIn 2s ease-out;
}

.hero img {
    width: 50%;
    height: auto;
    animation: fadeIn 2s ease-out;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-out;
}

.cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--secondary);
    color: var(--foreground);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 7s infinite;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* Product Section */
.products {
    padding: 50px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--shadow);
    margin: 20px;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

.products h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
    text-align: left;
    animation: slideIn 1s ease-out;
}

.product-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #6c63ff, #24243e);
}

.product-card img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.6rem;
    color: var(--foreground);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--foreground);
}

/* Contact Section */
.contact {
    padding: 40px 20px;
    background: linear-gradient(deg, #131127, #292663, #1a1a2e);
    color: var(--foreground);
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--shadow);
    margin: 20px;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}

.contact p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-out;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid var(--foreground);
    border-radius: var(--radius);
    background: transparent;
    color: var(--foreground);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form button {
    padding: 10px 20px;
    background: var(--secondary);
    color: var(--foreground);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite;
}

.contact-form button:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* JR CONNECTION Section */
#jr-connection {
    padding: 50px 20px;
    background: var(--card-bg);
    color: var(--foreground);
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--shadow);
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 2s ease-out;
}

#jr-connection h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}

#jr-connection p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-out;
}

#jr-connection h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 10px;
    animation: fadeIn 2s ease-out;
}

#jr-connection ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: var(--foreground);
    line-height: 1.8;
    animation: fadeIn 2s ease-out;
}

#jr-connection ul li {
    margin-bottom: 10px;
}

/* Footer Styling */
#jr-connection footer {
    margin-top: 40px;
    font-size: 1rem;
    text-align: center;
}

/* Icon style for the section */
#jr-connection h2::before {
    content: "";
    font-size: 2rem;
    margin-right: 10px;
}

/* Additional Styling for Contact Info */
#jr-connection p strong {
    color: var(--secondary);
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background: var(--card-bg);
    color: var(--foreground);
    box-shadow: 0 -4px 8px var(--shadow);
    margin-top: 30px;
    border-radius: var(--radius);
}
.card{  
    padding: 50px 20px;
    background: var(--card-bg);
    color: var(--foreground);
    border-radius: var(--radius);
    box-shadow: 0 4px 10px var(--shadow);
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 2s ease-out;
}
