@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Orbitron:wght@700;900&family=Roboto:wght@300;400;700&display=swap');

:root {
    --bg-main: #0B1E36; 
    --logo-base: #1E517B; 
    --neon-cyan: #4DF3FF; 
    --neon-blue: #00B4D8;
    --text-locifam: #2A81B8; 
    --text-tech: #4FA3D1; 
    --text-slogan: #A4C4DB; 
    --text-white: #ffffff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
    padding-top: 70px;
}

/* MARCA DE AGUA DE FONDO */
body::before {
    content: ""; 
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('logo.webp');
    background-size: 50%; 
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05; 
    z-index: -1; 
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(11, 30, 54, 0.95); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    top: 0; left: 0; width: 100%;
    z-index: 9999; 
    border-bottom: 1px solid rgba(77, 243, 255, 0.2);
}
.nav-brand { font-size: 1.5rem; color: var(--neon-cyan); text-decoration: none; letter-spacing: 2px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 25px; }
.nav-links li a { color: var(--text-white); text-decoration: none; font-size: 0.95rem; font-family: 'Montserrat', sans-serif; transition: color 0.3s; }
.nav-links li a:hover { color: var(--neon-cyan); }
.nav-cta { background-color: var(--neon-blue); padding: 8px 18px; border-radius: 6px; color: var(--bg-main) !important; font-weight: bold; }

.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background-color: var(--logo-base); min-width: 200px; border-radius: 8px; overflow: hidden; z-index: 10000; }
.dropdown-content li a { display: block; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown-content li a:hover { background-color: var(--neon-cyan); color: var(--bg-main); }
.dropdown:hover .dropdown-content { display: block; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--neon-cyan); transition: 0.3s; }

@media (max-width: 768px) {
    .hamburger { display: flex; } 
    .nav-links { position: fixed; right: -100%; top: 60px; flex-direction: column; background-color: rgba(11, 30, 54, 0.98); width: 100%; text-align: center; transition: 0.4s ease; padding: 40px 0; gap: 20px; }
    .nav-links.active { right: 0; }
    .dropdown-content { position: relative; display: block; box-shadow: none; background-color: transparent; }
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
.font-orbitron { font-family: 'Orbitron', sans-serif; }
.brand-title { color: var(--text-locifam); text-transform: uppercase; letter-spacing: 2px; }
.brand-subtitle { color: var(--text-tech); letter-spacing: 4px; }
.brand-slogan { color: var(--text-slogan); text-transform: uppercase; letter-spacing: 5px; font-weight: 300; }

header.section-container {
    padding-top: 30px !important; /* Da un respiro obligatorio debajo de la navbar fija */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Forzamos al logo principal a mantener su espacio sin que el texto lo pise */
#logo-hero-color {
    display: block;
    margin: 0 auto 30px auto;
    position: relative;
    z-index: 2;
}

/* =========================================
   MARCO DEL LOGO PRINCIPAL (HERO) - EFECTO 3D
   ========================================= */
.hero-logo-frame {
    /* Ancho máximo adaptable asegurando diseño Mobile-First fluido */
    width: 100%;
    max-width: 1280px;
    margin: 15px auto 40px auto;
    padding: 25px 30px; 
    
    /* Color de fondo exacto para fundir los bordes de la imagen */
    background-color: #0B2545FF;
    border: 1px solid rgba(77, 243, 255, 0.3);
    border-radius: 8px;
    
    /* Centrado mediante Flexbox para adaptabilidad en pantallas móviles y PC */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Sombra proyectada para ilusión óptica de profundidad */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(77, 243, 255, 0.08);
    transition: opacity 0.1s ease-out;
}

/* =========================================
   CONTROL DEL LOGO INTERIOR - UNIFICADO
   ========================================= */
#logo-hero-color {
    /* Mantiene las dimensiones exactas sin deformación */
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain; 
    
    /* Eliminación de la redundancia: se define un solo display, margin y z-index */
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* REVEAL ANIMATION */
.reveal { opacity: 0;
        transform: scale(0.85);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

.reveal.active { opacity: 1;
                 transform: scale(1); }

/* WIDGETS FLOTANTES */
.floating-container {
     position: fixed;
     bottom: 25px;
     right: 25px;
     display: flex;
     flex-direction: column;
     gap: 15px; /* Define la separación vertical exacta de 15px entre el asistente y WhatsApp */
     z-index: 1000;
     align-items: flex-end; }

.floating-btn { border-radius: 50px; font-weight: bold; color: white !important; font-family: 'Montserrat', sans-serif; text-decoration: none !important; box-shadow: 0 4px 20px rgba(0,0,0,0.5); transition: transform 0.3s ease; cursor: pointer; border: none; }
.floating-btn:hover { transform: scale(1.08); }
.btn-ia { background-color: var(--neon-blue); border: 1px solid var(--neon-cyan); color: var(--bg-main) !important; padding: 12px 20px; display: flex; align-items: center; justify-content: center; }


/* ESTRUCTURA */
.section-container { 
    padding: 100px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 2; 
}

.section-title { 
    text-align: center; 
    font-size: 2.2rem; 
    margin-bottom: 50px; 
    color: var(--neon-cyan); 
}

.grid-container { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 30px; /* Espacio limpio entre tarjetas */
}

/* =========================================
   ESTRUCTURA UNIFORME DE TARJETAS Y BOTONES
   ========================================= */

/* TARJETAS 100% SÓLIDAS */
/* Tarjetas 100% sólidas con separación interna óptima */
.card {
    position: relative;
    background: linear-gradient(145deg, #1E517B, #0B1E36);
    padding: 40px 25px;
    border-radius: 12px;
    border: 1px solid #4DF3FF;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Efecto de elevación/zoom al pasar el cursor (Hover idéntico al de salud) */
.card:hover { 
    /* AGREGAMOS scale(1.03) para que la tarjeta se agrande visualmente además de elevarse */
    transform: translateY(-8px) scale(1.03); 
    box-shadow: 0 15px 35px rgba(77, 243, 255, 0.15); 
    border-color: var(--neon-blue); 
}

/* Alineación exacta del botón hacia la izquierda con un margen superior automático 
   que lo empuja y fija siempre en la base de la tarjeta */
.card .btn-info { 
    display: inline-block; 
    margin-top: auto; /* Empuja el botón al fondo de la tarjeta */
    margin-right: auto; /* Lo alinea hacia el margen izquierdo */
    background-color: transparent; 
    color: var(--neon-cyan) !important; 
    padding: 8px 16px; 
    font-size: 0.9rem; 
    font-weight: bold; 
    border-radius: 6px; 
    border: 1px solid var(--neon-cyan); 
    text-decoration: none !important; 
    transition: all 0.3s ease; 
}

.card:hover .btn-info { 
    background-color: var(--neon-cyan); 
    color: var(--bg-main) !important; 
}

.card h3 { color: var(--neon-cyan); margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-slogan); font-size: 1rem; }
.price { font-size: 1.2rem; font-weight: bold; color: var(--neon-blue); margin-bottom: 15px; display: block; }

/* BOTONES */
.action-buttons { display: flex; gap: 15px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.btn-action { padding: 16px 32px; font-size: 1.1rem; font-weight: bold; border-radius: 8px; font-family: 'Montserrat', sans-serif; text-decoration: none !important; display: inline-flex; align-items: center; transition: all 0.2s ease; cursor: pointer; }
.btn-primary { background-color: var(--neon-blue); color: var(--bg-main) !important; border: none; box-shadow: 0 0 15px rgba(0, 180, 216, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(77, 243, 255, 0.6); }

.step-box { text-align: center; padding: 20px; }
.step-number { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: var(--logo-base); display: block; margin-bottom: 10px; }

/* FOOTER */
footer { text-align: center; padding: 40px 20px; background-color: #05101E; color: var(--text-slogan); font-size: 0.85rem; border-top: 1px solid rgba(77,243,255,0.1); }
.footer-links a { color: var(--text-locifam); text-decoration: none; }
.footer-links a:hover { color: var(--neon-cyan); text-decoration: underline; }

@media (min-width: 768px) { .grid-container { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-container { grid-template-columns: repeat(4, 1fr); } }

/* Contenedor circular flotante */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Fondo verde oficial de la marca */
  border-radius: 50%; /* Círculo perfecto */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); /* Sombra difuminada para realce visual */
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* Efecto hover al pasar el cursor */
.btn-whatsapp:hover {
  transform: scale(1.08);
}

/* Ajuste estricto de la imagen WebP dentro del círculo */
.img-whatsapp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Asegura que la imagen respete los bordes redondos */
}

/* ==========================================
   ESTILOS Y ANIMACIÓN DEL WIDGET DE CHAT (LOCI)
   ========================================== */

/* Contenedor principal de la ventana de chat, oculto y posicionado sobre los widgets flotantes */
.loci-chat-window {
    position: fixed;
    bottom: 95px; 
    right: 25px; /* Corrección: Se añade la unidad 'px' obligatoria */
    width: 340px;
    max-width: 90vw;
    height: 450px;
    background-color: #0B1E36;
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(77, 243, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    
    /* Propiedades iniciales para la animación de despliegue profesional */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Clase que activará JavaScript para desplegar el chat fluidamente */
.loci-chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Cabecera del chat con identidad corporativa */
.loci-chat-header {
    background: linear-gradient(135deg, #1E517B, #0B1E36);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(77, 243, 255, 0.2);
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--neon-cyan);
}

/* Botón de cierre de la ventana de chat */
.loci-close {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.loci-close:hover {
    color: var(--neon-cyan);
}

/* Contenedor de mensajes con scroll automático */
.loci-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(5, 16, 30, 0.5);
}

/* Estilo base para los globos de mensajes */
.loci-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
}

/* Mensaje del Bot (Loci) */
.loci-msg.bot-msg {
    background-color: rgba(30, 81, 123, 0.6);
    color: var(--text-white);
    align-self: flex-start;
    border-left: 3px solid var(--neon-cyan);
}

/* Mensaje del Usuario (se usará posteriormente con JS) */
.loci-msg.user-msg {
    background-color: var(--neon-blue);
    color: var(--bg-main);
    align-self: flex-end;
    font-weight: 500;
}

/* Área inferior de entrada de texto */
.loci-chat-input-area {
    padding: 12px;
    background-color: rgba(11, 30, 54, 0.98);
    border-top: 1px solid rgba(77, 243, 255, 0.2);
    display: flex;
    gap: 8px;
}

/* Campo de texto del chat */
.loci-chat-input-area input {
    flex: 1;
    background-color: rgba(5, 16, 30, 0.8);
    border: 1px solid rgba(77, 243, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.loci-chat-input-area input:focus {
    border-color: var(--neon-cyan);
}

/* Botón de enviar mensaje */
.loci-chat-input-area button {
    background-color: var(--neon-blue);
    color: var(--bg-main);
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.loci-chat-input-area button:hover {
    background-color: var(--neon-cyan);
    transform: scale(1.05);
}

/* ==========================================
   ESTILOS PARA ACORDEÓN NATIVO (FAQ)
   ========================================== */
.faq-item {
    background: rgba(11, 30, 54, 0.6);
    border: 1px solid rgba(77, 243, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: rgba(30, 81, 123, 0.4);
}

.faq-question {
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--neon-cyan);
    cursor: pointer;
    list-style: none; /* Oculta la flecha por defecto en navegadores modernos */
    position: relative;
    outline: none;
}

/* Flecha personalizada para el acordeón */
.faq-question::-webkit-details-marker {
    display: none; /* Oculta la flecha en Safari/Chrome antiguos */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--neon-blue);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-white);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    padding-top: 15px;
}