/* styles.css */
/* Reset y estilos globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000; /* negro puro */
    color: #fff; /* texto blanco */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: #000; /* fondo negro */
    border-bottom: 3px solid #c00; /* línea roja */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: #c00; /* rojo brillante */
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background-color: #111; /* negro muy oscuro */
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIyIiBmaWxsPSJyZ2IoMjU1LDAgMCwwLjEpIi8+Cjwvc3ZnPg==') repeat; /* puntos rojos transparentes */
    animation: float 20s infinite linear;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #ddd; /* gris claro para contraste */
}

.cta-button {
    display: inline-block;
    background-color: #c00; /* rojo */
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #e00; /* rojo más brillante */
    transform: translateY(-3px);
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background-color: #111; /* negro muy oscuro */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #c00; /* rojo */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #000; /* negro */
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #c00; /* borde rojo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Estilo para que el <a> con clase service-card no aparezca como enlace predeterminado */
a.service-card {
    color: inherit;           /* hereda el color del texto (blanco o gris) */
    text-decoration: none;    /* quita subrayado */
    display: block;           /* asegura que ocupe todo el área del card */
}

/* Para evitar que vuelva el subrayado en hover */
a.service-card:hover {
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(192, 0, 0, 0.4);
}

.service-icon {
    font-size: 2.5rem;
    color: #c00; /* rojo */
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
}

.service-card p {
    color: #ddd; /* gris claro */
    text-align: center;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: #000; /* negro */
}

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

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #c00; /* rojo */
}

.about p {
    font-size: 1.2rem;
    color: #ddd; /* gris claro */
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: #111; /* negro muy oscuro */
    border-radius: 12px;
    border: 1px solid #c00; /* borde rojo fino */
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c00; /* rojo */
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: #111; /* negro muy oscuro */
}

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

.contact-info {
    background-color: #000; /* negro */
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid #c00; /* borde rojo */
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #ddd; /* gris claro */
}

.contact-item strong {
    color: #c00; /* rojo */
}

/* Footer */
.footer {
    background-color: #000; /* negro */
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #c00; /* línea roja */
}

.footer p {
    color: #fff;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating animation para los elementos de fondo */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #c00; /* rojo */
    border-radius: 50%;
    opacity: 0.3;
    animation: float-up 15s infinite linear;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}
