/* ==========================================================================
   1. VARIABLES Y ESTILOS BASE
   ========================================================================== */
:root {
    --om-teal: #3AB4B5;
    --om-teal-dark: #2A8E8E;
    --om-yellow: #F6C875;
    --om-yellow-hover: #DFB260;
    --om-bg-light: #F8FAFC;
    --om-text: #2D3748;
    --om-white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--om-bg-light);
    color: var(--om-text);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. COMPONENTES: BARRA DE REDES Y NAVBAR
   ========================================================================== */
.top-bar {
    background-color: var(--om-teal-dark);
    padding: 8px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-icons { display: flex; gap: 20px; }
.social-icons a { color: var(--om-white); text-decoration: none; font-size: 18px; transition: opacity 0.3s; }
.social-icons a:hover { opacity: 0.7; }

.main-navbar {
    background-color: var(--om-white);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--om-yellow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-navbar img { height: 60px; object-fit: contain; }
.navbar-links { display: flex; align-items: center; }
.nav-link-inicio { color: var(--om-teal-dark); margin-right: 25px; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-link-contacto { color: var(--om-teal); text-decoration: none; font-weight: bold; font-size: 14px; }

/* ==========================================================================
   3. HERO SECCIÓN (Oculto en página de construcción, listo para Home)
   ========================================================================== */
.hero-video-container { position: relative; width: 100%; height: 85vh; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translateX(-50%) translateY(-50%); z-index: -2; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(42, 142, 142, 0.65); z-index: -1; }
.hero-content { position: relative; z-index: 1; color: var(--om-white); padding: 0 20px; max-width: 900px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.25rem; margin: 0 auto 35px auto; line-height: 1.6; max-width: 750px; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }

.btn-yellow { background-color: var(--om-yellow); color: #1A3636; padding: 16px 42px; font-size: 1.1rem; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.btn-yellow:hover { background-color: var(--om-yellow-hover); transform: translateY(-3px); }

/* ==========================================================================
   4. ACORDEÓN DE SERVICIOS
   ========================================================================== */
.services-section { padding: 80px 20px; background-color: var(--om-bg-light); }
.section-title { color: var(--om-teal-dark); font-size: 2.5rem; text-align: center; margin-bottom: 10px; font-weight: bold; }
.section-subtitle { color: #718096; text-align: center; margin-bottom: 50px; font-size: 1.1rem; }
.accordion-container { display: flex; width: 100%; max-width: 1200px; height: 450px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.accordion-item { position: relative; flex: 1; transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); background-size: cover; background-position: center; cursor: pointer; overflow: hidden; display: flex; align-items: flex-end; }
.accordion-item:hover { flex: 5; }
.accordion-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: all 0.5s ease; }
.bg-teal { background: rgba(58, 180, 181, 0.8); }
.bg-dark { background: rgba(45, 55, 72, 0.8); }
.bg-blue { background: rgba(26, 73, 113, 0.8); }
.bg-teal-dark { background: rgba(42, 142, 142, 0.8); }
.bg-yellow { background: rgba(246, 200, 117, 0.9); }
.accordion-item:hover .accordion-overlay { background: linear-gradient(to top, rgba(13, 40, 71, 0.95) 0%, rgba(13, 40, 71, 0.3) 100%); }
.accordion-content { position: relative; z-index: 2; padding: 25px 20px; color: var(--om-white); width: 100%; min-width: 240px; }
.accordion-title { font-size: 1.2rem; font-weight: 700; margin: 0; white-space: nowrap; text-shadow: 1px 1px 4px rgba(0,0,0,0.4); }
.accordion-details { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; transform: translateY(20px); }
.accordion-item:hover .accordion-details { max-height: 150px; opacity: 1; transform: translateY(0); margin-top: 15px; }
.accordion-desc { font-size: 0.95rem; margin-bottom: 15px; line-height: 1.5; white-space: normal; }
.accordion-btn { font-size: 0.85rem; font-weight: bold; color: var(--om-yellow); text-transform: uppercase; text-decoration: none; display: inline-flex; }

/* ==========================================================================
   5. CHATBOT FLOTANTE
   ========================================================================== */
.chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chatbot-toggle-btn { background-color: var(--om-teal); color: var(--om-white); border: none; padding: 14px 24px; border-radius: 30px; font-weight: bold; cursor: pointer; box-shadow: 0 5px 15px rgba(58, 180, 181, 0.3); transition: all 0.3s ease; }
.chatbot-toggle-btn:hover { background-color: var(--om-teal-dark); transform: translateY(-2px); }
.chatbot-window { position: absolute; bottom: 65px; right: 0; width: 340px; background-color: var(--om-white); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0; }
.chatbot-header { background-color: var(--om-teal); color: var(--om-white); padding: 15px 20px; }
.chatbot-header h3 { margin: 0; font-size: 15px; color: var(--om-white); }
.chatbot-header p { margin: 2px 0 0 0; font-size: 11px; color: var(--om-yellow); }
.chatbot-body { height: 320px; padding: 15px; overflow-y: auto; background-color: #f8fafc; }
.message-row { display: flex; width: 100%; margin-bottom: 10px; }
.bot-row { justify-content: flex-start; }
.user-row { justify-content: flex-end; }
.message-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.bot-row .message-bubble { background-color: var(--om-white); color: var(--om-text); border-bottom-left-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.user-row .message-bubble { background-color: var(--om-teal); color: var(--om-white); border-bottom-right-radius: 2px; }
.chatbot-footer { padding: 12px; background-color: var(--om-white); border-top: 1px solid #edf2f7; }
.options-grid { display: flex; flex-direction: column; gap: 6px; }
.option-btn, .reset-btn { background-color: #f8fafc; color: var(--om-teal-dark); border: 1px solid #cbd5e1; padding: 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: left; }
.option-btn:hover { background-color: var(--om-teal); color: var(--om-white); border-color: var(--om-teal); }
.reset-btn { width: 100%; background-color: var(--om-yellow); color: #1A3636; border-color: var(--om-yellow); text-align: center; }
.reset-btn:hover { background-color: var(--om-yellow-hover); }

/* ==========================================================================
   6. RESPONSIVIDAD UNIFICADA (MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {
    /* Barra Superior y Navbar */
    .top-bar { justify-content: center; padding: 10px; }
    .main-navbar { flex-direction: column; padding: 15px; gap: 15px; }
    .navbar-links { gap: 20px; }
    .nav-link-inicio { margin-right: 0; }
    
    /* Acordeón */
    .accordion-container { flex-direction: column; height: auto; }
    .accordion-item { height: 120px; flex: none; margin-bottom: 10px; }
    .accordion-item:hover { height: 260px; }
    .accordion-title { white-space: normal; font-size: 1.1rem; line-height: 1.3; }
    
    /* Hero Banner */
    .hero-content h1 { font-size: 2rem !important; }
    .hero-content p { font-size: 1rem !important; }
}