/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VARIABLES DE DISEÑO */
:root {
  --bg-dark: #0b0f0c;
  --bg-overlay: rgba(0, 0, 0, 0.55);
  --text-main: #f5f5f4;
  --text-soft: #d6d3d1;
  --accent: #a3e635; /* verde espiritual sutil */
  --accent-soft: rgba(163, 230, 53, 0.25);

  --font-title: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, sans-serif;

  --transition-slow: 1.2s ease;
  --transition-fast: 0.4s ease;
}

/* BODY */
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden;
}

.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CONTENEDOR */
.carousel-container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* SLIDES */
.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}

/* CADA SLIDE */
.carousel-slide {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* IMAGEN */
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
  animation: none;
  transform-origin: center;
  transform: scale(1);
  transition: transform 18s ease-out;
  will-change: transform;
  backface-visibility: hidden;
}

.carousel-slide.active img {
  animation: kenburns 18s ease-in-out infinite;
  transform: scale(1.08);
}
@media (max-width: 768px) {
  .carousel-slide.active img {
    transform: scale(1.04);
  }
}
@keyframes kenburns {
  0% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.05);
  }
}


/* OVERLAY */
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.75)
  );
  z-index: 1;
}

/* CONTENIDO */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 48px;
  text-align: center;
  backdrop-filter: blur(2px);
}

/* TÍTULOS */
.slide-content h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  animation: fadeUp 1.2s ease forwards;
}

/* TEXTO */
.slide-content p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 36px;
  animation: fadeUp 1.2s ease 0.3s forwards;
}

/* CTA */
.slide-content a {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-soft);
  transition: all var(--transition-fast);
  animation: fadeUp 1.2s ease 0.6s forwards;
}

.slide-content a:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

/* NAVEGACIÓN */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 32px; }
.carousel-nav.next { right: 32px; }

/* ANIMACIÓN */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .slide-content {
    padding: 28px;
  }

  .carousel-nav {
    width: 42px;
    height: 42px;
  }

  .carousel-nav.prev { left: 16px; }
  .carousel-nav.next { right: 16px; }
}
