:root {
    --subnexo-blue-dark: #007bff; /* Color principal de Subnexo (para botones, acentos) */
    --subnexo-blue-light: #00caff; /* Color secundario de Subnexo (para títulos, iconos) */
    --bg-light: #f8f9fa; /* Fondo claro base */
    --text-dark: #343a40; /* Texto oscuro principal */
    --card-bg: #ffffff; /* Fondo de tarjetas */
    --border-light: #dee2e6; /* Borde suave */
    --shadow-light: rgba(0, 0, 0, 0.1); /* Sombra suave */
    --gradient-start: #e0f2f7; /* Inicio de degradado azul muy claro */
    --gradient-end: #cce9f4; /* Fin de degradado azul claro */
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark); /* Color más oscuro para encabezados en fondo claro */
    text-align: center;
}

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

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-dark);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--subnexo-blue-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 123, 255, 0.08); /* Brillo sutil con color Subnexo */
    border-radius: 50%;
    transform: rotate(45deg);
    z-index: 0;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8) rotate(45deg); opacity: 0.08; }
    50% { transform: scale(1.2) rotate(45deg); opacity: 0.18; }
    100% { transform: scale(0.8) rotate(45deg); opacity: 0.08; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 200px; /* Ajusta el tamaño del logo */
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 123, 255, 0.3)); /* Sombra para resaltar */
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--subnexo-blue-dark); /* Título con color Subnexo */
    text-shadow: none;
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.btn {
    display: inline-block;
    background-color: var(--subnexo-blue-dark);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.btn:hover {
    background-color: var(--subnexo-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

/* --- Sections (Projects & Tools) --- */
.projects, .tools {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-light);
}

.projects h2, .tools h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.2em;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.project-grid, .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card, .tool-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    border: 1px solid var(--border-light); /* Borde suave */
}

.project-card:hover, .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-light);
    border-color: var(--subnexo-blue-dark); /* Resaltar al pasar el ratón */
}

.project-card h3, .tool-card h3 {
    color: var(--subnexo-blue-dark);
    font-size: 1.8em;
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: left;
}

.project-card p, .tool-card p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.project-icon, .tool-icon {
    font-size: 2.5em;
    color: var(--subnexo-blue-light);
}

.view-project {
    display: block;
    color: var(--subnexo-blue-dark);
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.view-project:hover {
    color: var(--subnexo-blue-light);
}

.coming-soon {
    display: block;
    background-color: #e9ecef;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    text-align: center;
    margin-top: 15px;
}

/* --- Call to Action Lab --- */
.cta-lab {
    background: linear-gradient(45deg, var(--subnexo-blue-dark) 0%, #0056b3 100%); /* Degradado de azules Subnexo */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    border-top: 5px solid var(--subnexo-blue-light);
}

.cta-lab h2 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 202, 255, 0.5);
}

.cta-lab p {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer (Desktop) --- */
.footer-desktop {
    background-color: #212529; /* Gris oscuro para el footer */
    color: #bbb;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
    }
    .hero h1 {
        font-size: 3em;
    }
    .hero p {
        font-size: 1.2em;
    }
    .hero-logo {
        width: 150px;
    }
    .projects, .tools, .cta-lab {
        padding: 60px 20px;
    }
    .projects h2, .tools h2, .cta-lab h2 {
        font-size: 2.5em;
    }
    .section-description {
        font-size: 1em;
    }
    .project-grid, .tool-grid {
        grid-template-columns: 1fr;
    }
    .project-card, .tool-card {
        padding: 25px;
    }
    .project-card h3, .tool-card h3 {
        font-size: 1.6em;
    }
    .project-card p, .tool-card p {
        font-size: 1em;
    }
    .project-icon, .tool-icon {
        font-size: 2em;
    }
    .cta-lab h2 {
        font-size: 2em;
    }
    .cta-lab p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .projects h2, .tools h2, .cta-lab h2 {
        font-size: 2em;
    }
    .section-description {
        font-size: 0.9em;
    }
}
