/* ==============================================
   PALETA PRINCIPAL
   ============================================== */
:root {
  --primary-color: #2563eb;
  --secondary-color: #14b8a6;
  --neutral-light: #f9fafb;
  --neutral-dark: #1f2937;
  --danger-color: #dc3545;
  --success-color: #22c55e;
  --accent-gradient: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ==============================================
   BASE
   ============================================== */
body {
  font-family: 'Nunito', sans-serif;
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ==============================================
   NAVBAR
   ============================================== */
.navbar {
  background: var(--accent-gradient) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==============================================
   ENLACES DE NAVEGACIÓN
   ============================================== */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link svg {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
  font-weight: 700;
}

/* Contador del carrito */
.cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================================
   BOTÓN DE GOOGLE
   ============================================== */
.google-login-btn {
  display: inline-flex;
  align-items: center;
  background-color: #4285F4;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.google-login-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==============================================
   TARJETAS Y CONTENEDOR
   ============================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* ==============================================
   BOTONES
   ============================================== */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #0d9488;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* ==============================================
   ALERTAS
   ============================================== */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.alert-danger {
  background: rgba(220, 38, 38, 0.1);
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
}

/* ==============================================
   FORMULARIOS
   ============================================== */
.form-control {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: 0.2s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 4rem 0;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-dark);
  opacity: 0.9;
}

.img-hero {
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.img-hero:hover {
  transform: scale(1.03);
}

/* ==============================================
   SECCIÓN DE TOURS
   ============================================== */
.tour-card {
  transition: all 0.3s ease;
  background: #fff;
  border-radius: 1rem;
}

.tour-card:hover {
  background-color: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.tour-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tour-image {
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
}

.tour-image:hover {
  transform: scale(1.05);
}

.tour-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.tour-details {
  margin-top: 1rem;
}

.detail-item {
  margin-bottom: 0.5rem;
}

.detail-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: var(--secondary-color);
}

.detail-value {
  display: block;
  color: var(--neutral-dark);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 1.5rem 0;
}

.gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
  background: var(--neutral-dark);
  color: #e5e7eb;
  padding: 2rem 0;
}

footer a {
  color: #e5e7eb;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--secondary-color);
}

/* ==============================================
   RESPONSIVIDAD
   ============================================== */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .tour-card {
    padding: 1.5rem;
  }
  .tour-image-container {
    height: 180px;
    margin-bottom: 1rem;
  }
  .tour-title {
    font-size: 1.3rem;
  }
  .tour-actions .btn {
    margin-bottom: 0.5rem;
  }
}

/* ==============================================
   FIXES DE ESCALA Y DISTRIBUCIÓN PARA WELCOME
   ============================================== */

/* Contenedor principal */
.welcome-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === HERO SECTION === */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.img-hero {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* === FEATURES SECTION === */
.features-section {
  text-align: center;
  margin: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* === DESTINATIONS === */
.destinations-section {
  margin: 4rem 0;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.destination-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.destination-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
}

.destination-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* === TESTIMONIALS === */
.testimonials-section {
  margin: 5rem 0 3rem 0;
  text-align: center;
}

.testimonials-slider {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.testimonial-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  margin-top: 1rem;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-content {
    flex: 1 1 100%;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .features-grid,
  .destinations-grid,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   BOTONES DE NAVEGACIÓN MEJORADOS - GRANDES CON ICONOS
   ============================================== */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.15);
    min-width: 140px;
    text-align: center;
}

.nav-btn i {
    font-size: 1.4rem;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover i {
    transform: scale(1.2);
}

/* Iconos específicos para cada botón */
.nav-btn[href*="traslados"] i {
    color: #ffd700; /* Amarillo para traslados */
}

.nav-btn[href*="hoteles"] i {
    color: #4ade80; /* Verde para hoteles */
}

.nav-btn[href*="tours"] i {
    color: #f472b6; /* Rosa para tours */
}

/* Efectos hover específicos para cada botón */
.nav-btn[href*="traslados"]:hover {
    background-color: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.6);
}

.nav-btn[href*="hoteles"]:hover {
    background-color: rgba(74, 222, 128, 0.2);
    border-color: rgba(74, 222, 128, 0.6);
}

.nav-btn[href*="tours"]:hover {
    background-color: rgba(244, 114, 182, 0.2);
    border-color: rgba(244, 114, 182, 0.6);
}

/* Efecto de brillo en hover */
.nav-btn:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05), 
        rgba(255, 255, 255, 0.1));
    border-radius: 0.85rem;
    z-index: -1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Responsive para botones de navegación */
@media (max-width: 768px) {
    .nav-btn {
        margin: 0.5rem 0;
        justify-content: flex-start;
        width: 100%;
        min-width: auto;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-btn i {
        font-size: 1.3rem;
        margin-right: 1rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .nav-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .nav-btn i {
        font-size: 1.2rem;
        margin-right: 0.875rem;
    }
}

/* === Boton para pagar con Cryptos === */
.btn-crypto {
    position: relative;
    padding: 12px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;

    background: linear-gradient(135deg, #1a2a32, #1e3a4a);
    border: 1px solid rgba(0, 255, 180, 0.35);

    box-shadow: 0 0 15px rgba(0, 255, 180, 0.2),
                inset 0 0 15px rgba(0, 255, 180, 0.1);

    transition: all 0.25s ease;
    overflow: hidden;
}

/* Hover */
.btn-crypto:hover {
    transform: scale(1.04);
    border-color: rgba(0, 255, 180, 0.6);
    box-shadow: 
        0 0 25px rgba(0, 255, 180, 0.7),
        inset 0 0 20px rgba(0, 255, 180, 0.3);
}

/* Borde animado */
.btn-crypto::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 16px;
    background: linear-gradient(120deg,
        #00ffb4,
        #00a2ff,
        #8f00ff,
        #00ffb4
    );
    background-size: 350% 350%;
    animation: borderGlow 6s linear infinite;
    z-index: -1;
    opacity: 0.4;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Boton para pagar con Tarjeta === */
.btn-card {
    position: relative;
    padding: 12px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;

    background: linear-gradient(135deg, #1a321a, #1e4a2e);
    border: 1px solid rgba(72, 187, 120, 0.35);

    box-shadow: 0 0 15px rgba(72, 187, 120, 0.2),
                inset 0 0 15px rgba(72, 187, 120, 0.1);

    transition: all 0.25s ease;
    overflow: hidden;
}

/* Hover */
.btn-card:hover {
    transform: scale(1.04);
    border-color: rgba(72, 187, 120, 0.6);
    box-shadow: 
        0 0 25px rgba(72, 187, 120, 0.7),
        inset 0 0 20px rgba(72, 187, 120, 0.3);
}

/* Borde animado */
.btn-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 16px;
    background: linear-gradient(120deg,
        #48bb78,
        #38a169,
        #2f855a,
        #48bb78
    );
    background-size: 350% 350%;
    animation: borderGlow 6s linear infinite;
    z-index: -1;
    opacity: 0.4;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}