:root {
  --primary: #d69191;
  --primary-dark: #c47a7a;
  --secondary: #eae3d6;
  --success: #5da399;
  --white: #ffffff;
  --dark: #2d2d2d;
  --gray: #6b6b6b;
  --light: #f9f6f2;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --hero-overlay: linear-gradient(
    135deg,
    rgba(249, 246, 242, 0.85) 0%,
    rgba(234, 227, 214, 0.75) 50%,
    rgba(214, 145, 145, 0.2) 100%
  );

  /* Alias para módulos */
  --modulo-primary: #d69191;
  --modulo-primary-dark: #c47a7a;
  --modulo-secondary: #eae3d6;
  --modulo-success: #5da399;
  --modulo-white: #ffffff;
  --modulo-dark: #2d2d2d;
  --modulo-gray: #6b6b6b;
  --modulo-light: #f9f6f2;
  --modulo-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --modulo-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
  --primary: #e8a5a5;
  --primary-dark: #d48989;
  --secondary: #1a1a2e;
  --success: #6fc4b3;
  --white: #16213e;
  --dark: #f0e6d3;
  --gray: #a0a0a0;
  --light: #0f0f1a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --hero-overlay: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(15, 15, 26, 0.85) 50%,
    rgba(232, 165, 165, 0.3) 100%
  );

  /* Alias para módulos - modo oscuro */
  --modulo-primary: #e8a5a5;
  --modulo-primary-dark: #d48989;
  --modulo-secondary: #1a1a2e;
  --modulo-success: #6fc4b3;
  --modulo-white: #16213e;
  --modulo-dark: #f0e6d3;
  --modulo-gray: #a0a0a0;
  --modulo-light: #0f0f1a;
  --modulo-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --modulo-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 60px;
  height: 32px;
  background: var(--light);
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(28px);
}

.theme-toggle i {
  position: absolute;
  font-size: 0.7rem;
  transition: opacity 0.3s ease;
}

.theme-toggle .sun {
  right: 8px;
  color: var(--primary);
}

.theme-toggle .moon {
  left: 8px;
  color: var(--primary);
  opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .sun {
  opacity: 0.5;
}

[data-theme="dark"] .theme-toggle .moon {
  opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--secondary);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Prata", serif;
  font-weight: 400;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  animation: fadeInUp 1s ease-out both;
  top: -60px;
}

.hero-promo {
  height: 25vh;
  min-height: 150px;
  background: var(--light);
  overflow: hidden;
}

.hero-promo .promo-slider-section {
  height: 100%;
  padding: 15px 0;
}

.hero-promo .promo-slide {
  height: calc(25vh - 30px);
  min-height: 120px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/hero-portada.jpeg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--dark);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--gray);
  margin-bottom: 30px;
}

.btn-reservar {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(214, 145, 145, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  width: fit-content;
}

.btn-reservar:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(214, 145, 145, 0.5);
  color: var(--white);
}

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

/* Slider Section - CSS Animation infinito sin cortes */
.promo-slider-section {
  background: var(--light);
  padding: 25px 0;
  overflow: hidden;
}

.promo-carousel {
  display: flex;
  width: max-content;
}

.promo-carousel:hover .promo-group {
  animation-play-state: paused;
}

.promo-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  will-change: transform;
  animation: scrolling 60s linear infinite;
}

.promo-slide {
  width: 350px;
  height: auto;
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(214, 145, 145, 0.3);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-slide-title {
  font-family: "Prata", serif;
  font-size: 1.3rem;
  color: #1a1a2e;
  margin-bottom: 8px;
  line-height: 1.2;
}

.promo-slide-divider {
  width: 30px;
  height: 2px;
  background: var(--primary);
  margin-bottom: 10px;
}

.promo-slide-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .promo-slide {
    width: 260px;
    height: 160px;
  }
}

[data-theme="dark"] .promo-slider-section {
  background: #0f0f1a;
}

[data-theme="dark"] .promo-slide {
  background: #1a1a2e;
  border-color: rgba(214, 145, 145, 0.4);
}

[data-theme="dark"] .promo-slide-title {
  color: #f0f0f0;
}

[data-theme="dark"] .promo-slide-desc {
  color: #b0b0b0;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.whatsapp-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Footer */
.footer {
  background: var(--light);
  padding: 60px 0 30px;
}

.footer-title {
  font-family: "Prata", serif;
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
}

.footer-map {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.footer-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

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

.social-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.social-link.instagram:hover {
  color: #e4405f;
}

.social-link.facebook:hover {
  color: #1877f2;
}

.social-link.tiktok:hover {
  color: #000000;
}

.social-link.whatsapp:hover {
  color: #25d366;
}

.footer-contact {
  text-align: center;
  color: var(--gray);
}

.footer-contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--primary-dark);
}

.footer-copy {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--gray);
  font-size: 0.9rem;
}

.dev-by {
  text-align: center;
  padding: 15px;
  font-size: 0.75rem;
  color: var(--gray);
  opacity: 0.6;
}

.dev-by a {
  color: var(--gray);
  text-decoration: underline;
}

.dev-by a:hover {
  color: var(--primary);
  opacity: 1;
}

/* Responsive */
@media (max-width: 576px) {
  .hero {
    min-height: 500px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .swiper-promo .swiper-slide {
    width: 260px;
    height: 160px;
  }

  .footer-map iframe {
    height: 250px;
  }
}

@media (min-width: 411px) {
  .col-service {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* Grid fallback for mobile */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 410px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Services Section - Nuestros Servicios */
.services-section {
  padding: 80px 0;
  background: var(--secondary);
}

.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-section .section-title {
  text-align: center;
  font-family: "Prata", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  margin-bottom: 15px;
}

.services-section .section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 50px;
  font-weight: 300;
}
