/* --- Variables y Configuración Base --- */
:root {
  /* COLORES EXTRAÍDOS DEL LOGO */
  --primary-color: #d61f1f;
  /* Azul Cielo del Logo */
  --primary-hover: #bb1b1b;
  /* Variación más oscura para hovers */
  --accent-color: #0d6efd;
  /* Rojo Vibrante de "FRANPISCO" */
  --secondary-color: #0088cc;
  /* Negro/Gris Oscuro de "Tours & Expediciones" */
  --text-dark: #212529;
  --bg-light: #f4f7f6;
  --bg-card: #ffffff;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #555;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--text-dark);
  font-weight: 700;
}

a:hover {
  color: var(--accent-color);
}

/* --- Botones Personalizados (Estilo Logo) --- */
.btn-outline-dark {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-dark:hover {
  background-color: var(--secondary-color);
  color: white;
}

.btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: white;
}

/* --------HEADER------ */
/* --- CONFIGURACIÓN TOP BAR --- */
.top-bar {
  z-index: 1040;
  height: 40px;
  background-color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- CONFIGURACIÓN NAVBAR --- */
#mainNav {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1030;
  background-color: transparent;
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Logo Grande Inicial */
.nav-logo {
  height: 90px;
  width: auto;
  transition: height 0.3s ease;
}

/* Links del Navbar (Escritorio) */
@media (min-width: 992px) {
  #mainNav .nav-link {
    color: #fff; /* Texto blanco por defecto para fondos oscuros */
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
  }

  #mainNav .nav-link:hover,
  #mainNav .nav-link.active {
    color: var(--primary-hover);
    text-decoration: none;
  }

  /* Dropdown en hover para escritorio */
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInUp 0.3s ease;
  }
}

/* --- ESTADO SCROLLED (Fondo Blanco) --- */
#mainNav.navbar-scrolled {
  position: fixed;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

#mainNav.navbar-scrolled .nav-logo {
  height: 50px;
}

#mainNav.navbar-scrolled .nav-link {
  color: var(--text-dark) !important;
  text-shadow: none;
}

#mainNav.navbar-scrolled .nav-link:hover,
#mainNav.navbar-scrolled .nav-link.active {
  color: var(--primary-color) !important;
  text-decoration: none;
}

/* Dropdown Menu Estilizado */
.dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  margin-top: 10px;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

/* --- MÓVIL --- */
@media (max-width: 991.98px) {
  #mainNav {
    top: 0;
    background-color: #ffffff !important;
    /* Sombra más visible y width controlado */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .top-bar {
    display: none;
  }

  .nav-logo {
    height: 45px;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--text-dark);
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  .navbar-collapse {
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0; /* Usar right: 0 evita desbordamientos */
    width: auto;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #mainNav .nav-link {
    color: var(--text-dark) !important;
    padding: 12px 0 !important; /* Mayor área de toque */
    border-bottom: 1px solid #f4f4f4;
    text-shadow: none;
    font-size: 1.05rem;
  }

  #mainNav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Estilo mejorado para dropdowns en móvil */
  .dropdown-menu {
    box-shadow: none !important;
    border: none;
    margin-top: 5px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .dropdown-item {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px dashed #eee;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item:hover {
    background-color: transparent;
    color: var(--primary-color);
    padding-left: 5px; /* Pequeña animación de indentación */
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----FIN HEADER - */

/* --------- FOOTER ----------*/
.footer-landscape {
  background-image: url("/assets/img/pie.webp");
  /* Tu imagen */
  background-size: cover;
  background-position: center bottom;
  /* Enfoca la base de la montaña */
  background-repeat: no-repeat;
  background-color: #1a1a1a;
  /* Fallback color */
}

/* El degradado negro sobre la foto */
.footer-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.95) 100%
  );
  width: 100%;
  height: 100%;
}

/* Efecto Hover Rojo personalizado para enlaces */
.link-hover {
  color: #ffffff;
  transition: color 0.3s ease;
}

.link-hover:hover {
  color: #ef4444 !important;
  /* Rojo marca */
  text-decoration: underline !important;
}

/* Línea divisoria con degradado (Bootstrap hr es color sólido) */
.footer-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
  opacity: 1;
  /* Reset de opacidad de BS5 */
}

/* Sombra para la imagen de pagos */
.payment-img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  max-width: 300px;
}

/* CONTENEDOR PRINCIPAL */
.social-slide-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* Centrado vertical del contenedor padre */
  z-index: 1060;
  width: auto;
  /* Quitamos height auto para evitar saltos, dejamos que el contenido dicte */
}

/* 1. PANEL DE TEXTO (SÍGUENOS) */
.slide-text-panel {
  position: absolute; /* Absoluto respecto al container */
  top: 50%; /* Centrado relativo al padre */
  left: 0;
  width: 45px;
  padding: 1.5rem 0; /* Un poco más de aire */
  background: #010a19;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ESTADO INICIAL: Visible y centrado verticalmente */
  transform: translate(0, -50%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 20;

  border-radius: 0 8px 8px 0;
  cursor: pointer;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
}

.slide-text-panel span {
  writing-mode: vertical-rl;
  transform: rotate(0deg); /* 180 para leer de abajo a arriba (estándar) */
  color: white;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
}

/* 2. PANEL DE ICONOS */
.slide-icons-panel {
  position: relative; /* Relativo para que ocupe espacio real */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 15px 10px;
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacio entre iconos */

  /* ESTADO INICIAL: Oculto a la izquierda */
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

/* --- CLASES ACTIVAS (MANEJADAS POR JS) --- */

/* Cuando el contenedor tiene la clase 'is-active'... */

/* 1. El texto se esconde a la izquierda */
.social-slide-container.is-active .slide-text-panel {
  transform: translate(-100%, -50%);
}

/* 2. Los iconos entran a su sitio */
.social-slide-container.is-active .slide-icons-panel {
  transform: translateX(0);
}

/* ESTILOS DE BOTONES (Igual que tenías) */
.slide-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.slide-link:hover {
  transform: scale(1.15);
  color: #ffffff;
  font-size: 1.2rem;
}
.slide-link.facebook {
  background: #1877f2;
}
.slide-link.instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.slide-link.youtube {
  background: #ff0000;
}
.slide-link.tripadvisor {
  background: #00af87;
}
.slide-link.tiktok {
  background: #000000;
}

/*  */

/* Top Bar Styles (WhatsApp) */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: #25d366;
  /* El verde oficial de WhatsApp se mantiene porque es reconocible */
  color: #fff;
  cursor: pointer;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #fff;
}
/* Top Bar Styles (WhatsApp) */
.btnTop-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: var(--primary-color);
  /* El verde oficial de WhatsApp se mantiene porque es reconocible */
  color: #fff;
  cursor: pointer;
  border-radius: 50px;
  text-align: center;
  font-size: 25px;
  z-index: 100;
  /* display: flex !important; */
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btnTop-float:hover {
  background-color: var(--primary-hover);
  transform: scale(1.1);
  color: #fff;
}

/* Necesario para que la animación de posición funcione en enlaces */
.elemento-animacion {
  display: inline-block;
  opacity: 0; /* Empieza invisible para evitar parpadeos antes de animar */
  will-change: transform, opacity; /* Optimización para navegadores */
}

/* --- SEO Tags --- */
.variant-editorial .seo-tag {
  text-decoration: none;
  color: #ffffffe2;
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 2px;
  position: relative;
  transition: color 0.3s ease;
}

/* Animación de línea inferior */
.variant-editorial .seo-tag::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff; /* Color de acento */
  transition: width 0.3s ease;
}

.variant-editorial .seo-tag:hover {
  color: #ffffff;
}

.variant-editorial .seo-tag:hover::after {
  width: 100%;
}

.variant-editorial .separator {
  color: #ccc;
  font-size: 1.2rem;
  padding: 0 5px;
}

/* --- footer lists in mobile view --- */
.sites-web-footer {
  display: block;

  @media (max-width: 767.98px) {
    display: none;
    margin-top: 1.5rem;
  }
}

.social-footer-mobile {
  display: none;

  @media (max-width: 767.98px) {
    display: block;
  }
}

/* --- Estilos personalizados para enlaces en el footer --- */
.footer-bg a:hover {
  color: white !important;
}
