/* --- VARIABLES Y RESET GENERAL --- */
:root {
    --color-primary-orange: #FF5722;
    /* Naranja vibrante del logo */
    --color-dark-bg: #0a0b14;
    /* Fondo casi negro, azulado profundo */
    --color-card-bg: #121420;
    /* Un poco más claro para las tarjetas */
    --color-text-light: #ffffff;
    --color-text-muted: #a0a0a0;
    --font-main: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* Desplazamiento suave al hacer clic en enlaces */
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark-bg);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.highlight-orange {
    color: var(--color-primary-orange);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- BOTONES GLOBALES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background-color: #e64a19;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--color-dark-bg);
}

.btn-dark {
    background-color: var(--color-dark-bg);
    color: white;
    border: 2px solid var(--color-primary-orange);
}

.btn-dark:hover {
    background-color: var(--color-primary-orange);
}

/* --- NAVBAR SUPERIOR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    /* Transparente al inicio */
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 11, 20, 0.95);
    /* Oscuro al hacer scroll */
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-logo {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-primary-orange);
}

.btn-nav {
    background-color: var(--color-primary-orange);
    padding: 8px 20px !important;
    border-radius: 20px;
    opacity: 1 !important;
}

.btn-nav:hover {
    color: white !important;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION (PORTADA) CON IMAGEN DE FONDO --- */
.hero-section {
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    position: relative;
    display: flex;
    align-items: center;

    /* AQUÍ ESTÁ LA MAGIA: Degradado + Imagen */
    /* El degradado se define PRIMERO para que quede encima de la imagen.
       Va de casi negro (izquierda) a semitransparente (derecha) */
    background-image: linear-gradient(to right, rgba(10, 11, 20, 0.98) 20%, rgba(10, 11, 20, 0.3) 100%),
                      url('./paneles.jpeg'); /* <-- ¡ASEGÚRATE QUE ESTE NOMBRE SEA CORRECTO! */

    /* Propiedades para que la imagen se adapte perfectamente */
    background-size: cover;      /* Escala la imagen para cubrir todo el espacio sin deformarse */
    background-position: left; /* Centra la imagen */
    background-repeat: no-repeat;
    background-attachment: fixed; /* (Opcional) Efecto "parallax" elegante al hacer scroll */
}
/* IMPORTANTE: Como ahora el degradado está en el fondo,
   ya no necesitamos el div antiguo del overlay. Lo ocultamos. */
.hero-overlay {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 11, 20, 0.9) 30%, rgba(10, 11, 20, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* --- INTRO SECTION --- */
.intro-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-dark-bg);
}

.intro-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.lead-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* --- SERVICES SECTION (INTERACTIVA) --- */
.services-section {
    padding: 80px 0 120px;
    background-color: #0f111a;
    /* Ligeramente diferente para contraste */
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--color-text-muted);
}

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

.service-card {
    background-color: var(--color-card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    border-top: 3px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interacción al pasar el mouse */
.service-card:hover {
    transform: translateY(-15px);
    border-top: 3px solid var(--color-primary-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--color-primary-orange);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-card ul li {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Pequeño punto naranja antes de cada item de lista */
.service-card ul li::before {
    content: '•';
    color: var(--color-primary-orange);
    margin-right: 10px;
    font-size: 1.2rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 25px;
    color: var(--color-primary-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.service-card:hover .card-link i {
    margin-left: 15px;
    /* Flecha se mueve al hacer hover */
}

/* --- CTA BANNER --- */
.cta-banner {
    padding: 80px 5%;
    text-align: center;
    /* Degradado naranja cálido inspirado en la referencia */
    background: linear-gradient(45deg, #FF5722, #FF8E53);
    color: white;
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* --- FOOTER --- */
.footer-section {
    background-color: #07080f;
    padding: 80px 0 30px;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

/* Estilos para el logo en el pie de página */
.footer-logo-container {
    margin-bottom: 20px; /* Un poco de espacio debajo del logo */
}

.footer-logo {
    height: 120px; /* Un poco más pequeño que el de la barra de navegación */
    width: auto;  /* Se ajusta automáticamente */
}

.footer-about p {
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-text-light);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 15px;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 15px;
    color: var(--color-primary-orange);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Menú móvil simplificado por ahora */
    }

    .hamburger {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Estilos para el logo en la navegación */
.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 150px;
    /* Altura fija para que no se deforme la barra */
    width: auto;
    /* El ancho se ajusta solo */
    margin-right: 10px;
    /* Un poco de espacio si dejas texto al lado */
}

/* --- CORRECCIÓN PARA CELULARES --- */
@media (max-width: 768px) {
    .hero-section {
        /* En celular, desactivamos el efecto 'fixed' para que la imagen cargue sí o sí */
        background-attachment: scroll !important;
        
        /* Opcional: Centramos la imagen para que se vea la parte más importante en vertical */
        background-position: center center !important; 
    }
}/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1001;
    /* Encima del navbar si es necesario, aunque navbar tiene 1000 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Asegura que no tenga subrayado */
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #666;
}

.whatsapp-float i {
    margin-top: 0;
    /* Ajuste por si el icono tiene margen por defecto */
}