/* =========================================
   RESET GENERAL
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f4f6f8;
}

/* =========================================
   HEADER
========================================= */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  z-index: 5000;
}

.menu-left,
.menu-center,
.menu-right {
  display: flex;
  align-items: center;
}

.menu-center {
  flex: 1;
  justify-content: center;
}

.menu-logo {
  height: 100px;
  width: auto;
}

.logo-secundario {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.hamburger {
  font-size: 40px;
  cursor: pointer;
}

/* BOTÓN COTIZAR ESCRITORIO */
.btn-cotizar {
  background: #ec8f04;
  color: #fff;
  padding: 10px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-cotizar:hover {
  background: #e0b85a;
  transform: scale(1.08);
}

/* =========================================
   MENÚ LATERAL
========================================= */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: #0f172a;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  transform: translateX(0);
}

.side-header {
  position: relative;
  padding: 20px;
}

.side-logo {
  display: block;
  width: 170px;
  margin: 20px auto 30px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.side-links {
  display: flex;
  flex-direction: column;
}

.side-links a {
  color: white;
  font-size: 18px;
  padding: 18px 20px;
  text-decoration: none;
  text-align: center;
  transition: 0.3s ease;
}

/* Movimiento + color */
.side-links a:hover {
  transform: translateX(8px);
  color: #60a5fa;
}

/* Línea animada */
.side-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: #60a5fa;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.side-links a:hover::after {
  width: 40%;
}

/* =========================================
   VIDEO HERO
========================================= */
.inicio-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.inicio-video video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BOTÓN MÓVIL (OCULTO POR DEFECTO) */
.btn-cotizar-mobile {
  display: none;
}

/* =========================================
   SECCIÓN NOSOTROS
========================================= */
.nosotros-contenido {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nosotros-texto {
  flex: 1;
  text-align: left;
}

.nosotros-texto h2 {
  font-size: 34px;
  margin-bottom: 20px;
  color: #0b2c4d;
  text-transform: uppercase;
}

.nosotros-texto p {
  font-size: 18px;
  text-align: justify;
  line-height: 1.8;
  color: #444;
}

.nosotros-imagen {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nosotros-imagen img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* =========================================
   MISIÓN | VISIÓN | VALORES
========================================= */
.mvv-section {
  background: #f1f2f4;
  padding: 90px 20px;
}

.bloque-mvv {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mvv-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.mvv-icono {
  width: 60px;
  height: 60px;
  border: 3px solid #0b2c4d;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  color: #0b2c4d;
}

.mvv-item h3 {
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.mvv-item p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.mvv-separador {
  width: 1px;
  height: 160px;
  background: #c9c9c9;
}

/* =========================================
   SERVICIOS
========================================= */
.servicios {
  padding: 80px 20px;
  text-align: center;
  background: #0f172a;
  color: white;
}

.contenedor-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.flip-card {
  flex: 1 1 300px;
  max-width: 350px;
  height: 520px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
}

.flip-front {
  background: #ffffff;
  color: #0b2545;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
}

.flip-back {
  background: #1d4ed8;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  font-size: 20px;
  line-height: 1.5;
 }

/* =========================================
   BOTONES FLOTANTES
========================================= */
.botones-fijos {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 4000;
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.1);
}

.icon-btn.wsp { background: #25D366; }
.icon-btn.mail { background: #1e88e5; }
.icon-btn.call { background: #333; }

/* =========================================
   RESPONSIVE DEFINITIVO
========================================= */

@media (max-width: 768px) {

  .menu-right .btn-cotizar {
    display: none !important;
  }

  .btn-cotizar-mobile {
    display: inline-block !important;
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    background: #ec8f04;
    color: #fff;
    padding: 16px 45px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    z-index: 3000;
  }

}
/* =========================================
   BOTÓN COTIZAR FLOTANTE
========================================= */

.btn-cotizar-float {
  background: #ec8f04;
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: 0.3s ease;
}

.btn-cotizar-float:hover {
  transform: scale(1.08);
}
/* CHAT MODAL */
.chat-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.chat-box-container {
  background: white;
  width: 350px;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.chat-header {
  background: #0f172a;
  color: white;
  padding: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.chat-close {
  cursor: pointer;
}

.chat-body {
  height: 250px;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input-area input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
}

.chat-input-area button {
  background: #1d4ed8;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}
/* MENSAJES CHAT */

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mensaje {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.mensaje.usuario {
  align-self: flex-end;
  background: #25D366;
  color: white;
  border-bottom-right-radius: 4px;
}

.mensaje.asesor {
  align-self: flex-start;
  background: #1d4ed8;
  color: white;
  border-bottom-left-radius: 4px;
}
/* MODAL CONSTRUCCIÓN */
.modal-construccion {
  display: none;
  position: fixed;
  z-index: 20000;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #ffffff;
  padding: 30px 40px 35px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  animation: aparecerModal 0.4s ease;
  position: relative;
}

.modal-box img {
  width: 250px;
  max-width: 90%;
  margin-bottom: 10px;
}

.modal-box h2 {
  margin-top: 5px;
  margin-bottom: 10px;
  color: #0f172a;
}

.modal-box p {
  color: #334155;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

@keyframes aparecerModal {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}