:root {
    --azul: #0a74da;
    --fondo: #010409;
    --glass: rgba(13, 17, 23, 0.85);
    --borde: rgba(255, 255, 255, 0.1);
}

* { margin:0; padding:0; box-sizing: border-box; }

body { 
    background: var(--fondo) url('images/fondo.png') no-repeat center center fixed; 
    background-size: cover; color: #fff; font-family: 'Montserrat', sans-serif;
    min-height: 100vh; display: flex; flex-direction: column;
}

/* --- ENCABEZADO RESPONSIVO --- */
header {
    background: rgba(1, 4, 9, 0.85); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--borde); position: fixed; width: 100%; top:0; z-index: 1000;
    padding: 10px 0;
}

.header-container { 
    width: 100%; padding: 0 5%; 
    display: flex; justify-content: space-between; align-items: center;
}

.logo-area img { height: 90px; transition: 0.3s; }

nav ul { display: flex; gap: 20px; list-style: none; }
nav a { color: #fff !important; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; text-decoration: none; transition: 0.3s; }
nav a:hover { color: var(--azul) !important; text-shadow: 0 0 10px var(--azul); }
.btn-helpdesk { background: var(--azul); padding: 8px 15px; border-radius: 5px; }

/* --- LAYOUT PRINCIPAL (AJUSTADO PARA MÓVIL) --- */
.main-layout { 
    display: flex; 
    padding: 180px 5% 50px; 
    gap: 40px; 
    align-items: flex-start; 
    flex: 1; 
}

.left-panel { flex: 2.2; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; color: #ccc; max-width: 600px; }

.right-panel { 
    flex: 0.8; background: var(--glass); backdrop-filter: blur(25px);
    border: 1px solid var(--borde); border-radius: 20px; padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7); min-height: 520px;
}

/* --- COMPONENTES DINÁMICOS --- */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.service-rotator { text-align: center; padding: 50px 20px; border-radius: 15px; background: rgba(255,255,255,0.03); cursor: pointer; transition: 0.4s; }
.service-rotator i { font-size: 4.5rem; color: var(--azul); margin-bottom: 25px; }
.service-rotator h4 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* DETALLE SERVICIO */
.header-detalle { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--borde); padding-bottom: 15px; margin-bottom: 20px; }
.btn-back { background: transparent; border: 1px solid var(--azul); color: var(--azul); padding: 5px 12px; border-radius: 5px; cursor: pointer; font-weight: 700; }
.detalle-texto-pro { background: rgba(0,0,0,0.3); padding: 20px; border-radius: 12px; margin-bottom: 25px; border: 1px solid var(--borde); }
#detalle-descripcion { font-size: 0.95rem; line-height: 1.7; color: #e0e0e0; text-align: justify; }
.btn-cotizar { display: inline-block; background: var(--azul); color: #fff; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; }

/* MAPA */
.map-box-glass { background: rgba(255, 255, 255, 0.03); padding: 15px; border-radius: 18px; border: 1px solid var(--borde); backdrop-filter: blur(15px); }

/* --- FOOTER SIMÉTRICO --- */
.footer-main { background: #000; padding: 40px 0; border-top: 1px solid var(--borde); margin-top: auto; }
.footer-container { max-width: 1400px; margin: 0 auto; width: 100%; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }
.footer-col { flex: 1; }
.footer-left { text-align: left; font-size: 0.75rem; color: #555; }
.footer-center { text-align: center; }
.footer-right { text-align: right; }
.social-icons { display: flex; gap: 25px; justify-content: center; }
.social-icons a { color: var(--azul); font-size: 1.8rem; transition: 0.3s; }
.social-icons a:hover { color: #fff; transform: translateY(-5px); }
.pbx-info { color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; }
.pbx-info i { color: var(--azul); margin-right: 8px; }

/* WHATSAPP */
.wa-float { position: fixed; bottom: 30px; right: 30px; background: #25d366; width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 35px; z-index: 2000; text-decoration: none; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: 0.3s; }

/* FORMULARIO */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border-radius: 5px; border: none; font-size: 0.9rem; }
.btn-send { background: var(--azul); color: #fff; border: none; padding: 12px; border-radius: 5px; font-weight: 700; cursor: pointer; }

/* =============================================
   AJUSTES PARA TABLETAS (PANTALLAS MEDIANAS)
   ============================================= */
@media (max-width: 1024px) {
    .main-layout { flex-direction: column; padding-top: 160px; gap: 30px; }
    .left-panel, .right-panel { width: 100%; flex: none; }
    .logo-area img { height: 70px; }
    .hero-content h1 { font-size: 2.5rem; text-align: center; }
    .hero-content p { text-align: center; margin: 0 auto; }
}

/* =============================================
   AJUSTES PARA CELULARES (PANTALLAS PEQUEÑAS)
   ============================================= */
@media (max-width: 768px) {
    /* Header */
    .header-container { flex-direction: column; gap: 15px; padding: 10px; }
    .logo-area img { height: 60px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 10px; }
    nav a { font-size: 0.65rem; }
    .btn-helpdesk { font-size: 0.6rem; padding: 5px 10px; }

    /* Layout */
    .main-layout { padding-top: 200px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    
    .right-panel { padding: 20px; min-height: auto; }
    
    /* Footer */
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .footer-left, .footer-right { text-align: center; }
    .footer-col { width: 100%; }
    
    /* WhatsApp */
    .wa-float { width: 55px; height: 55px; font-size: 28px; bottom: 20px; right: 20px; }
}