:root {
    /* Paleta de colores extraída e inspirada en tu logo */
    --bg-principal: #071026;       /* Azul oscuro profundo */
    --bg-tarjetas: #0d1b3e;        /* Azul intermedio */
    --azul-header: #020b1e;        /* Casi negro azulado */
    --celeste-neon: #00bfff;       /* Cyan de alta visibilidad */
    --azul-branding: #3a7bd5;      /* Azul intermedio */
    --blanco-puro: #ffffff;
    --texto-secundario: #a5b4fc;   /* Lavanda claro */
}

/* --- NUEVA CONFIGURACIÓN VIDEO DE FONDO --- */
#video-fondo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100; /* Se queda atrás de todo */
    object-fit: cover;
    opacity: 0.5; /* Ajusta la transparencia aquí */
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-principal);
    color: var(--blanco-puro);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Necesario para el video */
}

/* Header Responsivo */
header {
    background-color: var(--azul-header);
    padding: 1.2rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

h1 { 
    font-size: 1.5rem; 
    margin: 0; 
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, var(--blanco-puro), var(--texto-secundario));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--blanco-puro);
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--celeste-neon);
}

/* Sección Hero con transparencia para ver el video */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 30px auto;
    padding: 40px;
    gap: 50px;
    background: rgba(7, 16, 38, 0.6); /* Fondo semi-transparente */
    backdrop-filter: blur(5px);      /* Efecto desenfoque */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text {
    flex: 1.2;
    animation: deslizarIzquierda 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--celeste-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--texto-secundario);
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--azul-branding), #005cff);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 92, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.5);
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    animation: deslizarDerecha 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-image img {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Sección Servicios con transparencia */
.servicios-section {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(13, 27, 62, 0.6); /* Fondo semi-transparente */
    backdrop-filter: blur(5px);
}

.servicios-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.carousel {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

.slides img {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--azul-header);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #637599;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

/* Animaciones */
@keyframes deslizarIzquierda {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes deslizarDerecha {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
        margin: 30px auto;
        padding: 25px;
    }
    .hero-text h2 { font-size: 2rem; }
    .hero-image img { max-width: 200px; }
    header { padding: 1rem; }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 12px;
    }
    nav a { margin: 0 10px; }
}

/* Etiqueta Minimalista */
.badge-local {
    display: inline-block;
    background-color: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: var(--celeste-neon);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}