/* Variables CSS - Tema Dark Tech */
:root {
    /* Colores Principales */
    --bg-dark: #0f172a;       /* Slate 900 - Fondo principal */
    --bg-card: #1e293b;       /* Slate 800 - Tarjetas */
    --bg-card-hover: #334155; /* Slate 700 - Hover tarjetas */
    
    /* Colores de Acento (Gradientes y Detalles) */
    --primary: #6366f1;       /* Indigo 500 */
    --primary-dark: #4f46e5;  /* Indigo 600 */
    --secondary: #8b5cf6;     /* Violet 500 */
    --accent: #ec4899;        /* Pink 500 - Detalles vibrantes */
    
    /* Texto */
    --text-main: #f8fafc;     /* Slate 50 */
    --text-muted: #cbd5e1;    /* Slate 300 */
    --text-dim: #94a3b8;      /* Slate 400 */

    /* Efectos */
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --glow: 0 0 20px rgba(99, 102, 241, 0.5);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilidades */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

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

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.logo-img {
    height: 45px;
    border-radius: 8px; /* Si el logo es cuadrado, esto lo suaviza */
}

.logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)),
        url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* Efecto de luz de fondo sutil */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(0,0,0,0) 70%);
    filter: blur(60px);
    z-index: 0;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Services */
.services {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

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

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.service-image {
    height: 200px;
    margin: -2rem -2rem 1.5rem -2rem;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Overlay gradient en la imagen */
.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.service-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-content ul {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.service-content li {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #162036);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.1);
    z-index: 1;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.value-card i {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    color: white;
}

.contact-item p {
    color: var(--text-dim);
    margin-bottom: 0;
}

.contact-item a {
    color: var(--text-dim);
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: #0f172a;
    border: 2px solid #2d3748;
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea.form-control {
    resize: none;
    height: 150px;
}

.btn-submit {
    width: 100%;
    background: var(--gradient-main);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.btn-submit:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #020617; /* Very dark slate */
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    color: var(--text-dim);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo, .social-links, .footer-about p {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    .contact-container {
        padding: 2rem 1.5rem;
    }
    
    .values {
        grid-template-columns: 1fr;
    }
}