/* Variables de colores */
:root {
  --color-primary: #00b894;
  --color-secondary: #0984e3;
  --color-accent: #fdcb6e;
  --color-dark: #2d3436;
  --color-light: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-bg-dark: #23272b;
  --color-text-dark: #222;
  --color-text-light: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #00b894, #0984e3);
  --gradient-sunset: linear-gradient(45deg, #ff6b6b, #feca57);
  --gradient-ocean: linear-gradient(135deg, #4834d4, #686de0);
}

/* Estilos generales */
body {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  transition: background 0.3s, color 0.3s;
  background-image: url('../img/playa-isla.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 1rem;
}

[data-theme="dark"] .navbar {
  background: #23272b !important;
}

.navbar.scrolled {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/playa-isla.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-light);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,184,148,0.3), rgba(9,132,227,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Tarjetas con efectos mejorados */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}

[data-theme="dark"] .card {
  background: #23272b;
  color: #f8f9fa;
  border-color: #444;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.04) rotate(-1deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
  opacity: 0.1;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

/* Botones con efectos mejorados */
.btn-custom {
  background: var(--gradient-primary);
  color: var(--color-light);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

[data-theme="dark"] .btn-custom {
  background: var(--color-primary);
  color: #fff;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-sunset);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  color: var(--color-light);
}

.btn-custom:hover::before {
  width: 100%;
}

/* Secciones con efectos mejorados */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .section-title {
  color: var(--color-primary);
}

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

/* Efectos de hover en imágenes mejorados */
.gallery-img {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.gallery-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-ocean);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-img:hover::before {
  opacity: 0.3;
}

.gallery-img img {
  transition: transform 0.5s ease;
}

.gallery-img:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Categorías de lugares mejoradas */
.category-badge {
  background: var(--gradient-primary);
  color: var(--color-light);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.category-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-badge:hover::before {
  opacity: 0.2;
}

/* Animaciones mejoradas */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Footer mejorado */
.footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .footer {
  background: #23272b !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
}

.social-links a {
  color: var(--color-light);
  margin: 0 10px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.social-links a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.social-links a:hover {
  color: var(--color-accent);
  transform: translateY(-3px);
}

.social-links a:hover::before {
  width: 100%;
}

.social-links a[aria-label="Facebook"]:hover i {
  color: #1877f3 !important;
}
.social-links a[aria-label="Instagram"]:hover i {
  color: #e1306c !important;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-emphasis-color: transparent;
}
.social-links a[aria-label="YouTube"]:hover i {
  color: #ff0000 !important;
}
.social-links a[aria-label="WhatsApp"]:hover i {
  color: #25d366 !important;
}

/* Efectos de scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
}

/* Efectos de hover en enlaces del navbar */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
}

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

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

/* Efecto de carga para imágenes */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Efectos de hover en enlaces del navbar */
[data-theme="dark"] .nav-link {
  color: #f8f9fa !important;
}

[data-theme="dark"] .nav-link.active, [data-theme="dark"] .nav-link:focus, [data-theme="dark"] .nav-link:hover {
  color: #00b894 !important;
}

/* Efectos de hover en enlaces del navbar */
.theme-icon-light {
  color: #ffd700;
  font-size: 1.5rem;
  display: inline-block;
}
.theme-icon-dark {
  color: #fff;
  font-size: 1.5rem;
  display: inline-block;
}
[data-theme="light"] .theme-icon-dark {
  display: none;
}
[data-theme="dark"] .theme-icon-light {
  display: none;
}
  