/* ============================================
   COSTA RICA TOURS - ESTILOS PRINCIPALES
   ============================================ */

/* Variables de Colores - Bandera de Costa Rica */
:root {
  --color-cream: #f5f4ef;
  --color-red: #ad252f;
  --color-blue: #1f3a69;
  --color-gold: #d4af37;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --color-gray: #666666;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%231f3a69"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>'), auto;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23ad252f"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>'), pointer;
}

button {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%23ad252f"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>'), pointer;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: var(--color-white);
}

.plane-animation {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto 30px;
}

.mountain {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 100px solid rgba(255, 255, 255, 0.2);
}

.mountain:nth-child(1) {
  left: 0;
  animation: mountainFloat 3s ease-in-out infinite;
}

.mountain:nth-child(2) {
  left: 100px;
  animation: mountainFloat 3s ease-in-out infinite 0.5s;
}

.plane {
  position: absolute;
  top: 20px;
  left: 0;
  font-size: 48px;
  animation: planeFly 3s ease-in-out infinite;
}

@keyframes planeFly {
  0%, 100% {
    left: 0;
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    left: calc(100% - 50px);
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes mountainFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.loading-bar {
  width: 250px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 20px auto;
}

.loading-progress {
  height: 100%;
  background: var(--color-gold);
  width: 0;
  animation: loadingProgress 2s ease-in-out forwards;
}

@keyframes loadingProgress {
  to {
    width: 100%;
  }
}

.loading-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 2px;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
  background-color: var(--color-cream);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInLeft 1s ease-out;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05) rotate(2deg);
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 1px;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  color: var(--color-blue);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-icon {
  font-size: 24px;
  color: var(--color-red);
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--color-red);
}

.nav-link:hover .nav-icon {
  transform: translateY(-3px);
  color: var(--color-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 80%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: var(--color-blue);
  transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 58, 105, 0.7) 0%, rgba(173, 37, 47, 0.7) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content {
  color: var(--color-white);
  animation: fadeInUp 1.5s ease-out;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.hero-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-cta:hover {
  background: var(--color-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(173, 37, 47, 0.5);
}

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

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--color-gold);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--color-gray);
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   DESTINOS
   ============================================ */
.destinations {
  background-color: var(--color-cream);
}

.region {
  margin-bottom: 80px;
}

.region-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-red);
  margin-bottom: 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.destinations-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.destination-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  background: var(--color-white);
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

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

.destination-card:hover .destination-image {
  transform: scale(1.1);
}

.destination-info {
  padding: 25px;
}

.destination-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 15px;
}

.destination-description {
  font-size: 15px;
  color: var(--color-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.destination-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background: var(--color-cream);
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.service-tag:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.service-icon {
  font-size: 14px;
  color: var(--color-red);
}

.destination-cta {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.destination-cta:hover {
  background: var(--color-gold);
  transform: translateX(5px);
}

/* ============================================
   CONTADOR DE ESTADÍSTICAS
   ============================================ */
.stats {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-red) 100%);
  color: var(--color-white);
  padding: 60px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 10px;
  display: block;
}

.stat-label {
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.contact {
  background-color: var(--color-cream);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--color-cream);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-link {
  font-size: 24px;
  color: var(--color-gold);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-cream);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    transition: left 0.3s ease;
    gap: 20px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .destinations-grid,
  .destinations-grid.two-cols {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 26px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}



/* ============================================
   SECCIÓN DE SOCIOS
   ============================================ */
.socios {
  background-color: var(--color-white);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 0;
}

/* ============================================
   SECCIÓN DE DIRECCIÓN
   ============================================ */
.direccion {
  background-color: var(--color-cream);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.location-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.location-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

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

.location-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.info-icon {
  font-size: 28px;
  color: var(--color-red);
  min-width: 28px;
}

.info-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.info-item p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   RESPONSIVE - NUEVAS SECCIONES
   ============================================ */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .location-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .info-item {
    padding: 15px;
  }
  
  .info-icon {
    font-size: 24px;
  }
  
  .info-item h4 {
    font-size: 16px;
  }
  
  .info-item p {
    font-size: 14px;
  }
}

