/* Animaciones globales */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animaciones para scroll */
.scroll-animate {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.fade-in-up {
  transform: translateY(50px);
}

.scroll-animate.fade-in-left {
  transform: translateX(-50px);
}

.scroll-animate.fade-in-right {
  transform: translateX(50px);
}

.scroll-animate.scale-in {
  transform: scale(0.8);
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Header y Navegación */
.header {
  background-color: #2D6A4F;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid #d4af37;
  animation: slideDown 0.6s ease-out;
  overflow-x: hidden;
  overflow-y: visible;
}

.nav-link {
  color: #ffffff;
  animation: fadeInUp 0.6s ease-out backwards;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.2s; }
.nav-link:nth-child(3) { animation-delay: 0.3s; }
.nav-link:nth-child(4) { animation-delay: 0.4s; }
.nav-link:nth-child(5) { animation-delay: 0.5s; }

.nav {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--spacing-md);
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
}

/* Menú Hamburguesa Móvil */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #2D6A4F;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-list.active {
    transform: translateX(0);
  }
  
  .nav-list li {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    font-size: 18px;
    padding: 15px;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-logo {
    font-size: 20px !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
    margin-bottom: 10px;
  }
  
  .language-switch-container {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .nav-list .language-switch {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .mobile-menu-toggle {
    width: 25px;
    height: 25px;
    right: 15px;
  }
  
  .nav-list {
    top: 0;
    height: 100vh;
    padding-top: 70px;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
    gap: 25px;
  }
  
  .nav-link {
    font-size: 16px;
    padding: 12px;
  }
  
  .nav-list .language-switch-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
  }
}


.nav-link:hover {
  color: var(--color-secondary);
}

.nav-logo {
  color: #d4af37 !important;
  font-weight: bold;
  font-size: var(--font-size-lg);
}

.nav-logo:hover {
  color: #f4d03f !important;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-top: 80px;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.hero-image {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: auto;
  min-height: calc(100vh - 50px);
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-image {
    top: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center top;
    margin-top: 50px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    margin-top: 50px;
  }
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-text-light);
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 20px;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.hero-title {
  font-weight: 700;
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 0.4s backwards;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-family: var(--font-family-primary);
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-top: 20px;
  animation: fadeIn 1s ease-out 0.6s backwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(-30px);
  }
  to {
    transform: translateX(0);
  }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  animation: scaleIn 0.8s ease-out 1s backwards, pulse 2s ease-in-out infinite 2s;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--color-text-light);
}

/* Sección Galería */
.gallery-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: var(--bg-light);
}

@media (max-width: 768px) {
  .gallery-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: var(--spacing-sm) var(--spacing-xs);
  }
}

.section-title {
  text-align: center;
  font-size: var(--font-size-xl);
  font-family: var(--font-family-heading);
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding: 0 var(--spacing-md);
  font-weight: 600;
}

.section-title::before,
.section-title::after {
  content: '';
  position: absolute;
  top: 30%;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 10px -50px;
}

.section-title::before {
  left: calc(50% - 100px);
}

.section-title::after {
  right: calc(50% - 100px);
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: var(--color-primary);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.gallery-item * {
  pointer-events: none;
}

.gallery-item img {
  pointer-events: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) saturate(1);
}

/* Efecto de borde animado */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid transparent;
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
}

.gallery-item:hover img {
  transform: scale(1.2) rotate(2deg);
  filter: brightness(1.1) saturate(1.3);
}

.gallery-item:hover::after {
  opacity: 1;
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}


.gallery-item {
  background: transparent;
}



/* Sección Actividades */
.activities-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background-color: #2D6A4F;
  color: var(--color-text-light);
}

.activities-section .section-title {
  color: var(--color-text-light);
}

.activities-section .section-title::before,
.activities-section .section-title::after {
  top: 30%;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 10px -200px;
}

.activities-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

.activity-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.activity-item * {
  pointer-events: none;
}

.activity-item img {
  pointer-events: auto;
}

.activity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.activity-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.95), rgba(255, 107, 53, 0.95));
  padding: var(--spacing-md);
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  overflow: hidden;
}

.activity-title {
  font-size: var(--font-size-lg);
  font-family: var(--font-family-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
  line-height: 1.2;
}

.activity-description {
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
  max-width: 95%;
  overflow-wrap: break-word;
}

.activity-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .activity-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
}

.activity-item:hover img {
  transform: scale(1.15);
  filter: brightness(0.7);
}

.activity-item:hover .activity-overlay {
  opacity: 1;
  transform: scale(1);
}

.activity-item:hover .activity-title,
.activity-item:hover .activity-description {
  transform: translateY(0);
}

/* Efecto de borde brillante */
.activity-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid transparent;
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.activity-item:hover::after {
  opacity: 1;
  border-color: var(--color-text-light);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2D6A4F, #1a4d3a, #2D6A4F);
  color: var(--color-text-light);
  padding: var(--spacing-lg) var(--spacing-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-section h3 {
  font-size: var(--font-size-lg);
  font-family: var(--font-family-heading);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
  color: var(--color-text-light);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-facebook:hover {
  background-color: #1877f2;
  color: #ffffff;
}

.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.social-tiktok:hover {
  background-color: #000000;
  color: #ffffff;
}

.footer-copyright {
  text-align: right;
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 1200px) {
  .activities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 968px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: var(--spacing-xs) 0;
  }
  
  .nav {
    padding: 0 var(--spacing-sm);
    position: relative;
    min-height: 50px;
  }
  
  .nav-link {
    padding: var(--spacing-xs);
    font-size: 0.85rem;
  }
  
  .hero {
    padding-top: 0;
    min-height: 60vh;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .hero-image {
    top: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center top;
  }
  

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .activity-overlay {
    padding: var(--spacing-md);
  }
  
  .activity-title {
    font-size: var(--font-size-lg);
  }
  
  .activity-description {
    font-size: var(--font-size-sm);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: var(--spacing-xs) 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .nav {
    padding: 0 var(--spacing-xs);
    max-width: 100%;
  }
  
  .nav-list {
    gap: 0.25rem;
    font-size: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .nav-link {
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .nav-logo {
    font-size: 0.8rem !important;
  }
  
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: var(--spacing-xs);
    right: var(--spacing-xs);
  }
  
  .whatsapp-float svg {
    width: 20px;
    height: 20px;
  }
  
  .hero {
    padding-top: 0;
    min-height: 50vh;
    margin-top: 0;
  }
  
  .hero-image {
    top: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: contain;
    object-position: center top;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .activity-overlay {
    padding: var(--spacing-sm);
  }
  
  .activity-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
  }
  
  .activity-description {
    font-size: 0.75rem;
  }
}

