/* Variables y Reseteo Básico */
:root {
    --primary-color: #00FFFF; /* Cian/Azul brillante */
    --secondary-color: #00FF7F; /* Verde menta para CTAs */
    --bg-dark: #121212; /* Fondo principal muy oscuro */
    --bg-medium: #1e1e1e; /* Fondo de secciones o bloques */
    --text-light: #f0f0f0; /* Texto claro (blanco/gris claro) */
    --font-family: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    justify-self: anchor-center;
}

/* -------------------- */
/* 1. Header & Navegación */
/* -------------------- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--bg-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px; /* Tamaño del logo */
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display:none;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* -------------------- */
/* 2. Botones y CTAs */
/* -------------------- */

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-dark); /* Texto oscuro para contraste */
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.cta-button:hover {
    background-color: #00E6E6;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.6);
}

.cta-button.secondary {
    background-color: #121212;
    color: #2b76fd;
    box-shadow: 0 0 15px #5172ad73;
}

.cta-button.secondary:hover {
    background-color: #2b76fd;
    color: #121212;
    box-shadow: 0 4px 20px rgba(0, 255, 127, 0.6);
}

.service-button {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.service-button:hover {
    color: #00E6E6;
    border-color: #00E6E6;
}

/* -------------------- */
/* 3. Secciones Generales y Layout de Contenido/Imagen */
/* -------------------- */

section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Estilo general para todos los párrafos dentro de secciones */
section p {
    color: var(--text-light); /* FUERZA el color claro en párrafos */
    margin-bottom: 20px;
}

/* Hero Section */
#hero {
    /* RUTA CRÍTICA: ../ sale de la carpeta CSS */
    background: url('/images/hero-background.mp4');
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('/images/hero-background.jpg') center/cover no-repeat;
    color: var(--text-light);
    min-height: 60vh; /* IMPORTANTE: Asegura altura visible */
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Layout de Contenido e Imagen (Dos Columnas) */
.section-content-left, .section-content-right {
    display: flex;
    align-items: center;
    gap: 40px; 
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper {
    flex: 1;
}

.image-container {
    flex: 1;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1); 
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.5s;
}

.section-image:hover {
    transform: scale(1.05);
}

.section-content-right {
    flex-direction: row-reverse;
}

/* About Section */
#about {
    background-color: var(--bg-medium);
}

/* Services Preview */
#services-preview {
    background-color: var(--bg-dark);
}

.service-block {
    margin: 60px 0;
    padding: 30px;
    background-color: var(--bg-medium);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.service-block h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Quick Contact */
#quick-contact {
    background-color: #2b76fd!important;
    color: var(--bg-dark);
}
#quick-contact .section-title {
    color: var(--bg-dark);
}
#quick-contact p {
    color: var(--bg-dark); 
}

/* Footer */
footer {
    background-color: #000000;
    color: var(--text-light);
    padding: 20px 5%;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

/* -------------------- */
/* 4. Efecto Scroll-Reveal */
/* -------------------- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------- */
/* 5. Botón Flotante de WhatsApp */
/* -------------------- */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 25px rgba(0, 255, 127, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
}

.whatsapp-float:hover {
    background-color: #00E673;
    transform: scale(1.1);
}

/* Media Query para móvil */
@media (max-width: 768px) {
    /* ... (Estilos móviles) ... */
    .section-content-left, .section-content-right {
        flex-direction: column; 
        text-align: center;
    }
    .image-container, .content-wrapper {
        flex: none; 
        width: 100%;
        margin-bottom: 20px;
    }
    nav ul {
        display: none; 
    }
    header {
        justify-content: center;
    }
}