:root {
  --primary-gradient: linear-gradient(90deg, #ff8a00, #e52e71);
  --dark-bg: #000;
  --text-color: #fff;
  --accent-color: #ff8a00;
  --accent-dark: #e52e71;
}

/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s;
}

/* ===================== PORTADA ===================== */
.con-portada {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
}

.portada-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.texto-portada {
  position: absolute;
  z-index: 2;
  max-width: 600px;
  padding-top: 180px;
  animation: fadeInDown 1s ease-out;
}


/* ===================== PANTALLA DE SELECCIÓN DE IDIOMA ===================== */
.pantalla-idioma {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 10000;
  color: #fff;
  text-align: center;
  padding: 20px;
  opacity: 0;
  animation: fadeInScreen 1s ease forwards;
  font-family: 'Oswald', sans-serif;
}

.pantalla-idioma.fade-out {
  animation: fadeOutScreen 0.8s ease forwards;
}

.pantalla-idioma h2 {
  font-family: 'Anton', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}

.pantalla-idioma .banderas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 15px 25px;
  background: rgba(255,255,255,0.05);
  border: 2px solid #fff;
  border-radius: 12px;
}

.pantalla-idioma .banderas button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.pantalla-idioma .banderas img {
  width: 70px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.pantalla-idioma .banderas button:hover img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

/* Animaciones */
@keyframes fadeInScreen {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeOutScreen {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.95); }
}

@media (max-width: 600px) {
  .pantalla-idioma .banderas {
    gap: 15px;
    padding: 10px 15px;
  }
  .pantalla-idioma .banderas img {
    width: 50px;
  }
  .pantalla-idioma h2 {
    font-size: 1.8rem;
  }
}

/* ===================== BOTONES ===================== */
.btn-ver,
.btn-action {
  display: inline-block;
  min-width: 200px;
  max-width: 95%;
  margin: 16px auto;
  padding: 0.7rem 1.2rem; /* más pequeños */
  font-size: 0.95rem;     /* reducido */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  border: 2px solid var(--accent-color);
  border-radius: 0.6rem;
  box-shadow: 0 0 8px rgba(255,138,0,0.4);
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s, color 0.3s;
  font-family: 'Oswald', sans-serif;
}

.btn-ver:hover,
.btn-action:hover {
  transform: scale(1.05);
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 15px rgba(229,46,113,0.6), 0 0 25px rgba(255,138,0,0.6);
}

.btn-action:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 8px rgba(255,138,0,0.6);
}

/* ===================== SECCIONES ===================== */
.dark-section {
  background: none !important;
}

.section {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background: rgba(0,0,0,0.6);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.section h2 {
  font-family: 'Pricedown', 'Anton', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255,138,0,0.8);
}

.section-desc {
  margin-bottom: 4rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #eee;
}

/* ===================== EXCURSIONES ===================== */
.excursion-item { margin: 20px 0; }

.btn-desc {
  margin: 8px auto 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-color);
  opacity: 0.85;
  max-width: 400px;
}

.btn-desc .highlight {
  background: #FFA500;
  color: #fff;
  padding: 0.2em 0.4em;
  border-radius: 0.2rem;
}

/* ===================== CTA ===================== */
.cta {
  font-size: 1rem;
  margin-top: 1rem;
  color: #eee;
}

.cta .activate {
  display: inline-block;
  color: #FFA500;
  padding: 0.2em 0.6em;
  border-radius: 0.3rem;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255,138,0,0.7);
}

/* ===================== DESTACADOS ===================== */
.highlight,
.activate {
  background: none;
  color: var(--accent-color);
  font-weight: bold;
}

/* ===================== FOOTER ===================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #ccc;
  padding: 15px 20px;
  text-align: center;
  border-top: 2px solid #444;
  z-index: 1000;
}

.footer-gta {
  background: #111;
  color: #ccc;
  padding: 30px 20px;
  font-family: 'Pricedown', sans-serif;
  text-align: center;
  border-top: 2px solid #444;
}

.footer-gta .footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-gta .footer-logo img { height: 50px; }

.footer-gta .footer-quote { font-size: 1.1em; color: #FFD700; }

.footer-gta .footer-small { font-size: 0.9em; color: #666; }

.footer-gta .footer-links a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-gta .footer-links a:hover { color: #FFD700; }

/* ===================== WHATSAPP ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.whatsapp-icon {
  width: 45px;
  height: 45px;
  transition: transform 0.3s;
}

.whatsapp-float:hover .whatsapp-icon { transform: scale(1.1); }

/* ===================== UTILIDADES ===================== */
.hidden { display: none !important; }

.fade-in { animation: fadeIn 0.6s forwards; }
.fade-out { animation: fadeOut 0.6s forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px);} to { opacity: 1; transform: translateY(0);} }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  #companyLogoLarge { width: min(70%, 420px); min-width: 160px; }
}

@media (max-width: 600px) {
  .texto-portada { padding-top: 120px; }
  .btn-ver { width: 80%; font-size: 1rem; }
  #excursiones { padding: 40px 10px; }
  .promo-text { font-size: 1rem; }
  .carousel { width: 95%; margin: 30px auto; }
  .section-reserva ol { padding-left: 20px; }
}

@media (max-width: 480px) {
  #companyLogoLarge { width: 72%; max-width: 320px; min-width: 140px; }
  .company-logo-container { margin-top: 16px; }
}

/* Fondo fijo */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('carretera.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  will-change: transform;
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
}

.intro-desc {
  margin: 2rem auto;
  max-width: 800px;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  animation: fadeInUp 1s ease-out;
}

.intro-desc span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ===================== INTRO MISIONES ===================== */
.mission-intro {
  margin: 2rem auto;
  max-width: 800px;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  animation: fadeInUp 1s ease-out;
}

.mission-intro span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ===================== SELECTOR DE MISIONES (DÍA/NOCHE) ===================== */
.selector-misiones {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 9999;
}

.selector-misiones h1 {
  font-family: 'Pricedown', 'Anton', sans-serif;
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255,138,0,0.8);
  margin-bottom: 2rem;
}

.selector-misiones .btn-action {
  width: 220px;
  font-size: 0.95rem;
}
