/* --- Configuración Base --- */
:root {
    --brand-blue: #0078d4; /* Azul Microsoft */
    --text-dark: #242424;
    --text-light: #ffffff;
    --font-stack: "Segoe UI", system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* --- Navegación --- */
nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); }

.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; max-width: 1400px; margin: 0 auto;
}
.nav-logo {
            display: block;
            margin: 0;
            padding: 0;
            outline: 0;
            border: none;
            width: 197px;
            height: 82px;
            background: url(../../content/img/logo_cc.png) no-repeat center;
            background-size: contain;
            font: 0/0 a;
            text-shadow: none;
            color: transparent;
            transition: all 0.5s ease-in-out
        }
.nav-links { display: flex; align-items: center; }
.nav-links a {
    color: rgba(255,255,255,0.9); text-decoration: none; margin-left: 30px;
    font-weight: 500; transition: var(--transition); font-size: 0.95rem;
}
.cta-nav {
    background: rgba(255,255,255,0.2); color: white !important;
    padding: 8px 20px; border-radius: 4px; backdrop-filter: blur(5px);
}

/* Scroll Styles */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
nav.scrolled .nav-container { padding: 15px 40px; }
nav.scrolled .nav-logo, nav.scrolled .nav-links a { color: var(--text-dark); }
nav.scrolled .nav-links a:hover { color: var(--brand-blue); text-decoration: underline; }
nav.scrolled .cta-nav { background: var(--brand-blue); color: white !important; text-decoration: none !important; }

/* --- Hero & Carrusel Dinámico --- */
.hero {
    position: relative; height: 100vh; width: 100%;
    overflow: hidden; background: #000;
}
.hero-carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover !important; background-position: center !important;
    opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out, visibility 1s;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px;
}
.slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hero-content {
    position: relative; z-index: 2; color: white; max-width: 900px;
    /* Animación del texto al aparecer */
    transform: translateY(20px); opacity: 0; transition: all 1s ease 0.5s;
}
.slide.active .hero-content { transform: translateY(0); opacity: 1; }

.hero h1 {
    font-size: 4rem; font-weight: 600; margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2); line-height: 1.1;
}
.hero p { font-size: 1.25rem; margin: 0 auto 40px auto; max-width: 700px; font-weight: 400; }

.hero-btn {
    background-color: var(--brand-blue); color: white;
    padding: 14px 35px; border-radius: 4px; text-decoration: none;
    font-weight: 600; font-size: 1rem; transition: background 0.2s;
    display: inline-block;
}
.hero-btn:hover { background-color: #005a9e; }

/* --- Nueva Grid de Servicios (3 Columnas) --- */
.content-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

.grid-services-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsivo Automático */
    gap: 30px; margin-top: 40px;
}

.service-card {
    padding: 35px; border-radius: 8px; background: #ffffff;
    border: 1px solid #e1e1e1; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); border-color: transparent;
}

.service-icon {
    width: 50px; height: 50px; background: #f0f6ff; color: var(--brand-blue);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 20px;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; }

.service-card ul { list-style: none; padding: 0; }
.service-card ul li {
    position: relative; padding-left: 20px; margin-bottom: 8px;
    color: #505050; font-size: 0.95rem; line-height: 1.5;
}
.service-card ul li::before {
    content: "•"; color: var(--brand-blue); font-weight: bold;
    position: absolute; left: 0;
}

/* --- Menú Móvil & Responsive --- */
.menu-toggle {
    display: none; flex-direction: column; cursor: pointer; z-index: 1002;
}
.bar {
    width: 25px; height: 3px; background-color: white; margin: 3px 0; transition: 0.4s;
}
nav.scrolled .bar { background-color: var(--text-dark); }

/* --- Formulario de Contacto --- */
.contact-container { max-width: 600px; margin: 0 auto; }

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; text-align: left; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

@media (max-width: 768px) {
    .nav-container { padding: 15px 20px; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%;
        background: white; flex-direction: column; justify-content: center;
        transition: 0.4s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links a { margin: 20px 0; color: var(--text-dark); font-size: 1.2rem; }
    .nav-links .cta-nav { background: var(--brand-blue); color: white; }
    
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: #333; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: #333; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
}

/* Footer simple */
    footer {
    background: #f0f2f5;
    padding: 60px 20px;
    text-align: center;
    color: #606770;
    }