/* ==========================================
   DESTINO PERFECTO MEDELLÍN - ESTILOS BASE
   ========================================== */

html {
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 76px; /* Espacio para la navbar fija */
  overflow-x: hidden; /* Evita que la pagina se mueva hacia los lados en movil */
  max-width: 100vw;
}

/* Paleta de Colores de Marca */
:root {
  --gold-accent: #e1c26e;
  --dark-bg: #111111;
}

.text-gold {
  color: var(--gold-accent) !important;
}

.bi-gold {
  color: var(--gold-accent);
}

/* Hero Carousel */
.hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 20px;
  height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .hero {
    height: 420px;
    padding: 15px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* Estilos para el selector de Google Translate */
#google_translate_element select {
  background-color: #222;
  color: #fff;
  border: 1px solid var(--gold-accent);
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 0.85rem;
}

.goog-te-gadget span, .goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important; /* Previene el desfasaje del cuerpo cuando carga el banner */
}

/* Tarjetas de Flota y Tours */
.service-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Evita que los vehículos en PNG se corten */
#flota .service-card img {
  height: 240px;
  object-fit: contain;
  padding: 5px;
  background-color: #f8f9fa;
  width: 100%;
}

/* Ajuste para las fotos de los tours */
#tours .service-card img {
  height: 380px;
  object-fit: cover;
}

/* Altura fija y recorte automático para todas las fotos de tours */

#tours .card-img-top {
  height: 380px !important;       /* Más altura para fotos verticales/cuadradas */
  object-fit: cover !important;   /* Evita que la foto se distorsione */
  object-position: center !important;
  width: 100% !important;
}

/* Hace que todas las tarjetas midan lo mismo de alto */
#tours .card {
  height: 100%;
}


/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #ccc;
}

footer a {
  text-decoration: none;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.2s;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Botón Flotante WhatsApp */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background-color: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    z-index: 9999;

    text-decoration: none;

    animation: whatsappPulse 3s infinite;
}

/* ICONO */

.whatsapp-float img {
    width: 35px;
    height: 35px;
    display: block;
}

/* =========================================
   MENSAJE
   ========================================= */

.whatsapp-message {
    position: absolute;

    right: 75px;
    top: 50%;

    transform: translateY(-50%);

    background: white;

    color: #222;

    padding: 10px 16px;

    border-radius: 8px;

    font-family: Arial, sans-serif;
    font-size: 14px;

    line-height: 1.3;

    max-width: calc(100vw - 100px);
    white-space: normal;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);

    /* IMPORTANTE */
    opacity: 0;

    animation: whatsappMessage 8s infinite;
}


/* TEXTO VERDE */

.whatsapp-message strong {
    display: block;

    color: #25D366;

    margin-top: 2px;
}


/* FLECHA DEL MENSAJE */

.whatsapp-message::after {
    content: "";

    position: absolute;

    right: -7px;
    top: 50%;

    transform: translateY(-50%);

    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid white;
}


/* =========================================
   ANIMACIÓN DEL MENSAJE
   ========================================= */

@keyframes whatsappMessage {

    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    35% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    45% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }

    100% {
        opacity: 0;
    }
}


/* =========================================
   PULSO DEL BOTÓN
   ========================================= */

@keyframes whatsappPulse {

    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    10% {
        transform: scale(1.08);
        box-shadow:
            0 0 0 8px rgba(37, 211, 102, 0.20),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
    }

    40% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================
   HOVER
   ========================================= */

.whatsapp-float:hover {
    animation-play-state: paused;

    transform: scale(1.1);

    box-shadow:
        0 0 0 6px rgba(37, 211, 102, 0.15),
        0 6px 18px rgba(0, 0, 0, 0.35);
}


/* =========================================
   CELULAR
   ========================================= */

@media (max-width: 768px) {

    .whatsapp-float {
        width: 55px;
        height: 55px;

        right: 18px;
        bottom: 18px;
    }

    .whatsapp-float img {
        width: 32px;
        height: 32px;
    }

    .whatsapp-message {
        right: 68px;

        font-size: 12px;

        padding: 8px 12px;
    }
}
