:root {
    --primary-color: #0052FF;
    /* Azul eléctrico, resalta genial en oscuro */
    --dark-color-primary: #121826;
    /* Negro azulado para el fondo principal */
    --dark-color-secondary: #1A202C;
    /* Gris oscuro para superficies y secciones */
    --light-color: #F0F4F8;
    /* Blanco roto para títulos y texto importante */
    --text-color: #A0AEC0;
    /* Gris claro para párrafos y texto secundario */
    --font-family-sans: 'Inter', sans-serif;
    --font-family-serif: 'Lora', serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease-in-out;
    --border-color: #2D3748;
    /* Borde sutil para separar elementos */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    color: var(--text-color);
    background-color: var(--dark-color-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--light-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-color);
}

/* Header */
.header {
    background-color: rgba(18, 24, 38, 0.85);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light-color);
}

.nav-link {
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--light-color);
}

.nav-btn {
    margin-left: 2rem;
    padding: 0.5rem 1.5rem;
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    padding-bottom: 4rem;
    text-align: center;
    height: 60vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--dark-color-primary);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    color: var(--light-color);
}

.hero-value-prop {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-color);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 2rem;
}

.hero-actions .btn {
    margin: 0 0.75rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #0045D1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 82, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color-secondary);
    border-color: #4A5568;
}

/* Team Section */
.team-section {
    padding: 5rem 0 6rem 0;
    text-align: center;
    background-color: var(--dark-color-primary);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 15%, transparent 40%, var(--primary-color) 60%, transparent 85%, var(--primary-color) 95%, transparent);
}

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

.team-member {
    text-align: center;
}

.team-card {
    background-color: var(--dark-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 82, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 82, 255, 0.2);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 82, 255, 0.2);
    position: relative;
    z-index: 3;
    transition: var(--transition);
}

.team-card:hover .team-photo {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 82, 255, 0.4);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 3;
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
}

.team-bio {
    position: relative;
    z-index: 3;
}

.team-dynamics {
    max-width: 900px;
    margin: 4rem auto 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
    background-color: var(--dark-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.team-dynamics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.03), transparent 50%, rgba(0, 82, 255, 0.03));
    pointer-events: none;
    z-index: 1;
}

.dynamics-quote {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.dynamics-quote p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--light-color);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 1.5rem;
    quotes: '"' '"' "'" "'";
}

.dynamics-quote p::before {
    content: open-quote;
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 0;
    margin-right: 0.25rem;
}

.dynamics-quote p::after {
    content: close-quote;
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 0;
    margin-left: 0.25rem;
}

.text-explanation {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
    font-style: normal;
    font-weight: 500;
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 82, 255, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    line-height: 1.5;
}

.text-explanation strong {
    color: var(--light-color);
}

/* Custom section separator */
.section-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, transparent 50%, var(--primary-color) 80%, transparent);
    position: relative;
    margin: 0;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 82, 255, 0.5);
}

/* Services Section */
.services-section {
    background-color: var(--dark-color-secondary);
    padding: 5rem 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, transparent 50%, var(--primary-color) 80%, transparent);
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 20%, transparent 50%, var(--primary-color) 80%, transparent);
}

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

.service-card {
    background-color: var(--dark-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 82, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 82, 255, 0.2);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 3;
}

.service-icon i {
    font-size: 2.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 82, 255, 0.4));
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    position: relative;
    z-index: 3;
}

.service-description {
    position: relative;
    z-index: 3;
}

/* Projects Section */
.projects-section {
    background-color: var(--dark-color-primary);
    padding: 5rem 0;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 30%, transparent 70%, var(--primary-color) 90%, transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-card {
    background-color: var(--dark-color-secondary);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 82, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 82, 255, 0.2);
}

.project-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 3;
}

.project-icon i {
    font-size: 2.5rem;
    transition: var(--transition);
}

.project-card:hover .project-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 82, 255, 0.4));
}

.project-card h3 {
    position: relative;
    z-index: 3;
}

.project-card p {
    position: relative;
    z-index: 3;
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.project-card-link h3 {
    color: var(--light-color);
}

.project-card-link p {
    color: var(--text-color);
}

.project-link {
    font-weight: 600;
    margin-top: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 3;
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--dark-color-secondary);
    border-top: 1px solid var(--border-color);
}

.newsletter-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--dark-color-secondary);
    color: var(--light-color);
    font-size: 1rem;
    transition: var(--transition);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.email-input::placeholder {
    color: var(--text-color);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-color);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--dark-color-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-section .btn {
    font-size: 1.25rem;
    padding: 1rem 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: center;
    }

    .email-input {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .form-group .btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color-primary);
    color: #A0AEC0;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}