/* Ancestros Chamanes – estilo inspirado en ancestroschamanes.com */

:root {
  --bg-deep: #0d0618;
  --bg-card: rgba(26, 15, 46, 0.85);
  --bg-elevated: #1a0f2e;
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --text: #f5f0e8;
  --text-muted: rgba(245, 240, 232, 0.72);
  --border: rgba(201, 162, 39, 0.25);
  --header-h: 72px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(90, 40, 120, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(40, 20, 70, 0.2), transparent),
    linear-gradient(180deg, #0d0618 0%, #120a1f 40%, #0d0618 100%);
  min-height: 100vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 6, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(168px, 46vw);
  object-fit: contain;
}

.logo:hover .logo-img {
  filter: brightness(1.1);
}

.logo:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--gold-soft);
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--gold-soft);
}

.nav-list a[aria-current="page"] {
  color: var(--gold-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(85vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 6, 24, 0.55), rgba(13, 6, 24, 0.88)),
    url("https://images.unsplash.com/photo-1446776653964-20c1d3a81b06?w=1920&q=80") center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-kicker {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: min(260px, 58vw);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 2rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Página interior (ej. alejamientos) */
.hero--page {
  min-height: min(52vh, 420px);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.hero--page .hero-bg {
  background:
    linear-gradient(to bottom, rgba(13, 6, 24, 0.6), rgba(13, 6, 24, 0.9)),
    url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1920&q=80") center / cover no-repeat;
}

.hero--page.hero--entierros .hero-bg {
  background:
    linear-gradient(to bottom, rgba(13, 6, 24, 0.6), rgba(13, 6, 24, 0.9)),
    url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80") center / cover no-repeat;
}

.hero--page.hero--amarres .hero-bg {
  background:
    linear-gradient(to bottom, rgba(13, 6, 24, 0.6), rgba(13, 6, 24, 0.9)),
    url("https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?w=1920&q=80") center / cover no-repeat;
}

.hero--page.hero--tarot .hero-bg {
  background:
    linear-gradient(to bottom, rgba(13, 6, 24, 0.6), rgba(13, 6, 24, 0.9)),
    url("tarot-servicio.jpg") center / cover no-repeat;
}

.hero--page .hero-kicker {
  margin-bottom: 0.75rem;
}

.hero--page .hero-logo {
  width: min(200px, 50vw);
}

.hero--page h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1.75rem;
}

.section--prose {
  text-align: left;
}

.section--prose .section-icon,
.section--prose h2 {
  text-align: center;
}

.section--prose .prose-block {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section--prose .prose-block p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.section--prose .section-actions {
  text-align: center;
  margin-top: 1.75rem;
}

.included-list {
  max-width: 640px;
  margin: 1rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.included-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.included-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-size: 0.65rem;
  color: var(--gold);
}

.service-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card--link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold) 0%, #a88620 100%);
  color: var(--bg-deep);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--gold-soft);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #fff;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.section-icon {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin: 0 0 1.5rem;
}

.about-intro .lead,
.quienes p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  text-align: center;
}

.about-intro .btn {
  margin-top: 2rem;
}

.services .btn {
  margin-top: 2.5rem;
}

/* Zodiac */
.zodiac {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.zodiac-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.zodiac-card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-2px);
}

.zodiac-icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: grayscale(0.2);
}

.zodiac-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: #fff;
}

.zodiac-card p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  min-height: 220px;
}

.service-card-image {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.service-card-image--photo {
  background-image: none;
}

.service-card-image--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-image:not(.service-card-image--photo) {
  transform: scale(1.05);
}

.service-card:hover .service-card-image--photo img {
  transform: scale(1.05);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 6, 24, 0.92) 0%, transparent 55%);
  pointer-events: none;
}

.service-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-align: left;
}

/* Testimonials */
.testimonials-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 200px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 2rem 1.75rem;
  box-sizing: border-box;
}

.testimonial-slide p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
}

.testimonial-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(26, 15, 46, 0.6);
  color: var(--gold-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.testimonial-nav:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.testimonials-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.testimonials-dots button[aria-selected="true"] {
  background: var(--gold);
  transform: scale(1.15);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(40, 25, 70, 0.5) 0%, rgba(13, 6, 24, 0.9) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.cta-band h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem 5rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 5, 18, 0.95);
}

.footer-grid {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.footer-block h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-block a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-block a:hover {
  color: var(--gold-soft);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-nav {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--gold-soft);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.45);
  margin: 0;
}

/* WhatsApp flotante (debajo del botón IA CHAMANES, misma esquina derecha) */
.chat-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  left: auto;
  z-index: 2550;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-fab:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.chat-fab-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 6, 24, 0.98);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-list a {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-nav {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .testimonial-slide {
    padding: 1.5rem 1rem;
  }

  .chat-fab-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .chat-fab {
    width: 56px;
    height: 56px;
    padding: 0;
    right: 16px;
    bottom: 18px;
    justify-content: center;
    border-radius: 50%;
  }

  .chat-fab-icon svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .testimonials-track {
    transition: none;
  }

  .service-card:hover .service-card-image:not(.service-card-image--photo) {
    transform: none;
  }

  .service-card:hover .service-card-image--photo img {
    transform: none;
  }
}
