@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --bg-dark: #0f0f1b;
    --bg-light: #1c1c2b;
    --accent-blue: #0077ff;
    --accent-cyan: #00eaff;
    --text-light: #e0e0f0;
    --text-muted: #a0a0b0;
    --bg-testimonial:#000819;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-cyan);
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(15,15,27,0.85) 0%, rgba(28,28,43,0.85) 100%),
        url('../img/redes-2.webp') center center / cover no-repeat;
}

.particles-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='%232c3e50' fill-opacity='0.2'%3E%3Cpath d='M0 0h1v40H0V0zm2 0h1v40H2V0zm2 0h1v40H4V0zm2 0h1v40H6V0zm2 0h1v40H8V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0zm2 0h1v40h-1V0z'/%3E%3C/g%3E%3C/svg%3E");
    animation: particles 30s linear infinite;
}

@keyframes particles {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 119, 255, 0.5);
    animation: fadeIn 1.5s ease-in-out;
}

.tagline {
    font-size: 1.5em;
    color: var(--text-muted);
    margin-top: 10px;
    animation: fadeIn 2s ease-in-out;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 119, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 119, 255, 0.6);
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-light);
    padding: 6rem 0;
}

.about-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-muted);
}

.about-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.about-item {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 280px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 119, 255, 0.2);
}

.about-item i {
    font-size: 3em;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

/* --- Diagram Section --- */
.diagram-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.diagram-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 50px;
    position: relative;
}

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-dark));
    border: 2px solid var(--accent-blue);
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.diagram-node i {
    font-size: 2.5em;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.diagram-node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-blue);
}


/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--bg-testimonial);
}

.cta-section h2 {
    font-size: 2.5em;
    color: var(--accent-blue);
}

.cta-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 20px auto;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    padding: 30px;
    background-color: var(--bg-dark);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 1.5em;
    margin: 0 15px;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .about-grid {
        flex-direction: column;
    }
    .diagram-animation {
        flex-direction: column;
        gap: 40px;
    }
    .diagram-node {
        width: 100px;
        height: 100px;
    }
}