@charset "utf-8";

/* ==========================
   AJUSTES GENERALES
========================== */

/* Si tu icono de WA quedó descentrado en algún momento */
.my-float{
  margin-top: 0 !important; /* antes tenías 16px, eso puede descuadrar */
}

/* ==========================
   HEADER FIJO + SWITCH IDIOMA
   (Sin duplicados y sin li)
========================== */

/* Header fijo */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
header .container,
header .col-md-12{
  position: relative;
}

/* Compensa altura del header para que el contenido no quede debajo */
body{
  padding-top: 40px; /* desktop */
}
@media (max-width: 991px){
  body{ padding-top: 30px; } /* tablet/móvil */
}

/* Switch idiomas (tu HTML tiene <div id="lang-switch"><a>CO</a>...) */
#lang-switch{
  display: flex;
  gap: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}
#lang-switch a{
  color: #fff;
  opacity: .85;
  text-decoration: none;
}
#lang-switch a:hover,
#lang-switch a.active{
  opacity: 1;
  text-decoration: underline;
}

/* Desktop: pegado a la derecha, centrado vertical */
@media (min-width: 992px){
  #lang-switch{
    position: absolute;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
    z-index: 1001;
  }

  /* deja hueco a la derecha para que el menú no se coma los idiomas */
  header nav{ padding-right: 150px; }

  /* separador visual antes del switch */
  #lang-switch::before{
    content: "";
    display: inline-block;
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.28);
    margin: 0 16px 0 12px;
    vertical-align: middle;
  }
}

/* Tablet/móvil: fija idiomas y botón menú */
@media (max-width: 991px){
  #lang-switch{
    position: fixed;
    top: 10px;
    right: 54px;     /* espacio para ☰ */
    transform: none;
    z-index: 4000;
  }
  #menu-btn{
    position: fixed;
    top: 6px;
    right: 12px;
    z-index: 4001;
  }
}

/* ==========================
   CONTACTO (estilos SOLO si existe .contact-section)
   No afecta otras páginas
========================== */

/* spacer negro arriba del mapa */
.contact-black-spacer{
  height: 30px;
  background: #0b0b0b;
}

/* Mapa */
#map{
  width: 100%;
  height: 420px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
@media (max-width: 768px){
  #map{ height: 320px; }
}

/* Leaflet: evita bug de max-width */
.leaflet-container img,
.leaflet-container .leaflet-tile,
.leaflet-pane img,
.leaflet-marker-icon,
.leaflet-marker-shadow{
  max-width: none !important;
}

/* Leaflet popup dark */
.leaflet-popup-content-wrapper{
  background: #222;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  font-size: 14px;
  line-height: 1.4;
}
.leaflet-popup-tip{ background: #222; }
.popup-creer{ text-align: center; }
.popup-creer strong{ color: #e63946; font-size: 15px; }
.popup-creer a{ color: #e63946; text-decoration: none; }
.popup-creer a:hover{ text-decoration: underline; }

/* Sección contacto look oscuro */
.contact-section{
  padding: 70px 0 90px;
  background:
    radial-gradient(1100px 520px at 20% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, #0b0c10 0%, #0a0a0a 100%);
}

.contact-title{
  letter-spacing: .12em;
  font-size: 18px;
  color: #f2f2f2;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.contact-subtitle{
  color: #bdbdbd;
  margin: 0 0 22px;
}

/* Cards mini */
.contact-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  display: flex;
  gap: 12px;
  min-height: 98px;
}
.contact-card-icon{
  color: #e63946;
  font-size: 22px;
  padding-top: 2px;
  flex: 0 0 auto;
}
.contact-card-title{
  color: #f2f2f2;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-card-text{
  color: #bdbdbd;
  margin-top: 4px;
  font-size: 14px;
}

/* Inputs oscuros */
.contact-section .form-control{
  background: rgba(12,14,20,.92);
  border: 1px solid rgba(255,255,255,.10);
  color: #ededed;
  border-radius: 12px;
  height: 48px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
}
.contact-section textarea.form-control{
  height: 210px;
  resize: vertical;
}
.contact-section .form-control:focus{
  border-color: rgba(230,57,70,.65);
  box-shadow: 0 0 0 3px rgba(230,57,70,.16);
  outline: none;
}

/* Botón enviar barra roja */
.contact-send-btn{
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: #b91d2a;
  color: #111;
  font-weight: 700;
  letter-spacing: .03em;
}
.contact-send-btn:hover,
.contact-send-btn:focus{
  filter: brightness(1.06);
  outline: none;
}

/* Honeypot */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================
   ✅ FIX SOLO CONTACTO:
   Evita “texto verde” extra generado por theme para links wa.me dentro del formulario
   (no toca el botón flotante)
========================== */
.contact-section .wa-prefer{
  display:none !important;
}
.contact-section a[href*="wa.me"]:not(.whatsapp-float):not(.float),
.contact-section a[href*="whatsapp"]:not(.whatsapp-float):not(.float){
  display:none !important;
}

/* ==========================
   WHATSAPP FLOTANTE (GLOBAL)
   Usa class="whatsapp-float"
   (NO usar .float)
========================== */

a.whatsapp-float{
  position: fixed !important;
  width: 60px;
  height: 60px;
  right: 20px;
  bottom: 95px;                 /* arriba del back-to-top */
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.30);
  z-index: 999999;
  text-decoration: none !important;
}

/* Mata pseudo-elementos del theme (la “raya”) */
a.whatsapp-float::before,
a.whatsapp-float::after{
  content: none !important;
}

/* Icono centrado */
a.whatsapp-float i{
  font-size: 32px;
  line-height: 1;
  margin: 0 !important;
}

/* Hover: verde -> blanco, icono verde */
a.whatsapp-float:hover,
a.whatsapp-float:focus{
  background: #fff;
  color: #25d366 !important;
  text-decoration: none !important;
  outline: none;
}

/* Back-to-top debajo del WhatsApp */
#back-to-top{
  z-index: 999998;
}

/* ==========================
   COMPATIBILIDAD: si aún existe <a class="float"> en otras páginas
   (lo hacemos igual al whatsapp-float para que no se rompa nada)
========================== */
a.float{
  position: fixed !important;
  width: 60px;
  height: 60px;
  right: 20px;
  bottom: 95px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.30);
  z-index: 999999;
  text-decoration: none !important;
}
a.float::before,
a.float::after{
  content: none !important;
}
a.float:hover,
a.float:focus{
  background: #fff;
  color: #25d366 !important;
  text-decoration: none !important;
  outline: none;
}
a.float i{
  font-size: 32px;
  line-height: 1;
  margin: 0 !important;
}


#lang-switch{ display:none !important; }
header nav{ padding-right: 0 !important; }

