/*
Theme Name: Portal ANK
Description: Tema oficial de Portal ANK – Astrología Humanista
Version: 1.1
Author: Portal ANK
*/

@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --violeta:   #694D7F;
  --peltre:    #ACA292;
  --tostado:   #8D7563;
  --blanco:    #FFFFFF;
  --texto:     #4a3060;
  --gris:      #f5f4f2;
  --gris-text: #7a6e80;
  --borde:     rgba(105,77,127,0.18);
}

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

html { scroll-behavior: smooth; margin-top: 0 !important; }
body { margin-top: 0 !important; }

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: var(--texto) !important;
  background: var(--blanco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Yeseva One', serif !important;
  line-height: 1.2;
  color: var(--texto) !important;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.ank-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.ank-section { padding: 88px 0; }
.ank-section--alt { background: var(--gris); }
.ank-section--violeta { background: var(--violeta); }

.ank-section__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peltre);
  font-weight: 600;
  margin-bottom: 12px;
}

.ank-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.ank-section__sub {
  font-size: 1.1rem;
  color: var(--gris-text);
  max-width: 600px;
}

.ank-section__head { margin-bottom: 56px; }
.ank-section__head--center { text-align: center; }
.ank-section__head--center .ank-section__sub { margin: 0 auto; }

/* ── Buttons ── */
.ank-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  text-decoration: none;
}

.ank-btn--primary {
  background: var(--violeta);
  color: var(--blanco);
}
.ank-btn--primary:hover { background: #7d5c97; }

.ank-btn--gold {
  background: rgba(255,255,255,0.15);
  color: var(--blanco);
  border: 2px solid rgba(255,255,255,0.6);
}
.ank-btn--gold:hover { background: rgba(255,255,255,0.28); }

.ank-btn--outline {
  background: transparent;
  color: var(--violeta);
  border: 2px solid var(--violeta);
}
.ank-btn--outline:hover { background: var(--violeta); color: var(--blanco); }

.ank-btn--wa {
  background: var(--violeta);
  color: var(--blanco);
}
.ank-btn--wa:hover { background: #7d5c97; }

/* ── Header ── */
.ank-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.ank-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.ank-logo {
  display: flex;
  align-items: center;
}

.ank-logo img {
  height: 44px;
  width: auto;
}

.ank-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.ank-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto);
  transition: color 0.18s;
}
.ank-nav a:hover, .ank-nav a.active { color: var(--violeta); }

/* Mobile hamburger */
.ank-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ank-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texto);
  transition: all 0.3s;
}

.ank-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blanco);
  border-top: 1px solid var(--borde);
  padding: 16px 24px 24px;
  gap: 4px;
}
.ank-mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--borde);
  color: var(--texto);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ank-mobile-nav a:last-child { border-bottom: none; }
.ank-mobile-nav.open { display: flex; }

/* ── Footer ── */
.ank-footer {
  background: #f0ecf8;
  color: var(--gris-text);
  padding: 48px 0 28px;
  font-size: 0.82rem;
  border-top: 1px solid var(--borde);
}

.ank-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.ank-footer__brand .ank-footer__logo {
  margin-bottom: 12px;
}
.ank-footer__brand .ank-footer__logo img {
  height: 36px;
  width: auto;
  opacity: 0.8;
}

.ank-footer__brand p { line-height: 1.6; color: var(--gris-text); }

.ank-footer__links h4,
.ank-footer__contact h4 {
  color: var(--texto);
  font-family: 'Yeseva One', serif;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.ank-footer__links ul { list-style: none; }
.ank-footer__links li { margin-bottom: 8px; }
.ank-footer__links a { color: var(--gris-text); transition: color 0.18s; }
.ank-footer__links a:hover { color: var(--violeta); }

.ank-footer__contact a { color: var(--gris-text); transition: color 0.18s; }
.ank-footer__contact a:hover { color: var(--violeta); }

.ank-footer__bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid var(--borde);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--gris-text);
}

.ank-footer__rec {
  color: var(--peltre);
  font-size: 0.74rem;
}

/* ── Hero ── */
.ank-hero {
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f7ff 0%, #f5f0f8 100%);
  padding-top: 80px;
}

.ank-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 40%, rgba(105,77,127,0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 75%, rgba(172,162,146,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.ank-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}

.ank-hero__logo {
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
}
.ank-hero__logo img {
  height: 52px;
  width: auto;
  opacity: 0.85;
}

.ank-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--texto);
  margin-bottom: 20px;
  line-height: 1.15;
}

.ank-hero__sub {
  font-size: 1.15rem;
  color: var(--gris-text);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ank-hero__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Cards ── */
.ank-grid { display: grid; gap: 28px; }
.ank-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ank-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ank-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 32px;
  transition: box-shadow 0.22s, border-color 0.22s;
}
.ank-card:hover { box-shadow: 0 8px 32px rgba(105,77,127,0.1); border-color: rgba(105,77,127,0.4); }

/* ── Testimonials ── */
.ank-testimonial {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.ank-testimonial__text {
  font-style: italic;
  color: var(--texto);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.ank-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--borde);
  padding-top: 16px;
}

.ank-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violeta), #a180ad);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ank-testimonial__name {
  font-style: italic;
  color: var(--peltre);
  font-weight: 600;
  font-size: 0.9rem;
}

.ank-testimonial__service {
  font-size: 0.75rem;
  color: var(--gris-text);
}

/* ── Íconos carousel ── */
.ank-carousel { position: relative; overflow: hidden; }

.ank-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ank-icon-card {
  flex-shrink: 0;
  width: 272px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.ank-icon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ank-icon-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,26,62,0.88) 0%, rgba(42,26,62,0.3) 55%, rgba(42,26,62,0.08) 100%);
}

.ank-icon-card__body {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ank-icon-card__name {
  font-family: 'Yeseva One', serif;
  font-size: 1rem;
  color: var(--peltre);
  line-height: 1.2;
}

.ank-icon-card__config {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
  margin-top: 3px;
}

.ank-icon-card__desc {
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

.ank-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(42,26,62,0.75);
  backdrop-filter: blur(4px);
  color: var(--blanco);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ank-carousel__btn:hover { background: rgba(105,77,127,0.8); border-color: var(--violeta); }
.ank-carousel__btn--prev { left: 6px; }
.ank-carousel__btn--next { right: 6px; }
.ank-carousel__btn:disabled { opacity: 0.2; cursor: not-allowed; }

.ank-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.ank-dot {
  height: 7px;
  border-radius: 4px;
  background: rgba(172,162,146,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  width: 7px;
}
.ank-dot.active { background: var(--peltre); width: 22px; }

/* ── Clases cards ── */
.ank-card--clase {
  border: 1px solid rgba(105,77,127,0.15);
  border-left: 3px solid var(--peltre);
  border-radius: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ank-card--clase:hover {
  border-color: var(--violeta);
  border-left-color: var(--violeta);
  box-shadow: 0 8px 32px rgba(105,77,127,0.18);
}

.ank-card--clase__img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e0f0 0%, #d6cfc5 100%);
}
.ank-card--clase__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ank-card--clase:hover .ank-card--clase__img img { transform: scale(1.04); }

.ank-card--clase__body {
  padding: 48px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ank-btn--clase-wa {
  background: var(--peltre);
  color: var(--blanco);
  font-weight: 700;
  transition: background 0.25s, color 0.25s;
  margin-top: auto;
  justify-content: center;
  font-size: .85rem;
  padding: 11px 20px;
  border-radius: 6px;
}
.ank-card--clase:hover .ank-btn--clase-wa {
  background: var(--violeta);
  color: var(--blanco);
}

/* ── Hero video ── */
.ank-hero--video {
  background: #1a0e2e;
  isolation: isolate;
}
.ank-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.ank-hero__video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(26,14,46,0.6) 0%, rgba(26,14,46,0.45) 60%, rgba(26,14,46,0.7) 100%);
  z-index: 1;
}
.ank-hero--video .ank-hero__inner { position: relative; z-index: 2; }
.ank-hero--video .ank-hero__title { color: var(--blanco); }
.ank-hero--video .ank-hero__sub { color: rgba(255,255,255,0.78); }
.ank-hero--video .ank-hero__logo img { opacity: 0.9; filter: brightness(0) invert(1); }

/* ── Servicios ── */
.ank-service-list { list-style: none; border-top: 1px solid var(--borde); }
.ank-service-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--texto);
}

/* ── About ── */
.ank-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }

.ank-about__photo {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--violeta);
  box-shadow: 0 16px 48px rgba(105,77,127,0.2);
}

.ank-about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ank-about__name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.ank-about__bio {
  color: var(--gris-text);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1rem;
}

.ank-quote {
  border-left: 3px solid var(--peltre);
  padding: 16px 20px;
  background: var(--gris);
  border-radius: 0 8px 8px 0;
  margin-top: 24px;
}

.ank-quote p { font-style: italic; font-size: 1rem; color: var(--texto); line-height: 1.65; }
.ank-quote cite { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--gris-text); }

/* ── CTA Banner ── */
.ank-cta {
  background: var(--violeta);
  padding: 72px 24px;
  text-align: center;
}

.ank-cta h2 { color: var(--blanco); margin-bottom: 14px; font-size: 2.2rem; }
.ank-cta p { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 1.1rem; }

/* ── eBooks ── */
.ank-ebook {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}

.ank-ebook__cover {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #e8e0f0 0%, #d6cfc5 100%);
  align-self: center;
}

.ank-ebook__cover img { width: 100%; height: 100%; object-fit: cover; }

.ank-ebook__body { padding: 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ank-ebook__title { font-size: 1.1rem; margin-bottom: 10px; color: var(--peltre); }
.ank-ebook__desc { font-size: 0.88rem; color: var(--gris-text); line-height: 1.65; flex: 1; margin-bottom: 20px; }

@media (max-width: 640px) {
  .ank-ebook { flex-direction: column; }
  .ank-ebook__cover { width: 100%; height: 200px; }
}

/* ── Page header ── */
.ank-page-header {
  padding: 80px 24px 56px;
  text-align: center;
  background: linear-gradient(135deg, #f9f7ff 0%, #f5f0f8 100%);
  border-bottom: 1px solid var(--borde);
}

.ank-page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.ank-page-header p { font-size: 1.1rem; color: var(--gris-text); max-width: 560px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ank-grid--3 { grid-template-columns: 1fr 1fr; }
  .ank-about { grid-template-columns: 1fr; gap: 40px; }
  .ank-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ank-grid--3, .ank-grid--2 { grid-template-columns: 1fr; }
  .ank-nav { display: none; }
  .ank-hamburger { display: flex; }
  .ank-footer__inner { grid-template-columns: 1fr; }
  .ank-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .ank-section { padding: 56px 0; }
  .ank-hero { min-height: 80vh; }
}
