/* ==========================================================================
   HOME PAGE VISUAL REDESIGN (v2)
   ========================================================================== */

/* 1. Global Home Constraints */
body#home-page .container {
  max-width: 1200px;
  width: 92%;
  padding: 0 16px;
}
@media (min-width: 768px) {
  body#home-page .container { padding: 0 24px; }
}
@media (min-width: 1280px) {
  body#home-page .container { padding: 0 32px; width: 100%; }
}

/* Reduced Vertical Rhythm */
body#home-page .section {
  padding: 32px 0;
}
@media (min-width: 768px) {
  body#home-page .section { padding: 48px 0; }
}
@media (min-width: 1024px) {
  body#home-page .section { padding: 64px 0; }
}

/* Typography Overrides for Home */
body#home-page h1.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 500;
}
body#home-page h2.section-title, body#home-page h2.text-center, body#home-page .cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
body#home-page p.section-subtitle {
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* 2. Navbar Solid Override */
body#home-page .navbar {
  position: sticky !important;
  background: var(--bg) !important;
  border-bottom: 1px solid rgba(74, 59, 76, 0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

/* 3. Hero Split Section */
body#home-page .hero-split {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  body#home-page .hero-split {
    flex-direction: row;
    height: 460px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 3rem;
  }
}
body#home-page .hero-split__content {
  flex: 1;
  text-align: center;
  max-width: 600px;
}
@media (min-width: 1024px) {
  body#home-page .hero-split__content {
    text-align: left;
  }
}
body#home-page .hero-split__image-wrapper {
  flex: 1;
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
@media (max-width: 599px) {
  body#home-page .hero-split__image-wrapper {
    height: 210px;
  }
}
@media (min-width: 1024px) {
  body#home-page .hero-split__image-wrapper {
    height: 100%;
    max-height: 480px;
  }
}
body#home-page .hero-split__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 4. Quick Access Grid */
body#home-page .quick-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  body#home-page .quick-access-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  body#home-page .quick-access-grid { grid-template-columns: repeat(4, 1fr); }
}
body#home-page .qa-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  min-height: 200px;
  padding: 1.25rem;
  color: inherit;
}
body#home-page .qa-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: 0 10px 30px rgba(122, 92, 123, 0.08);
}
body#home-page .qa-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(216, 193, 94, 0.1);
  border-radius: 50%;
  color: var(--gold);
}
body#home-page .qa-card__title {
  font-size: 1.2rem;
  color: var(--purple-dark);
  margin-bottom: 0.4rem;
}
body#home-page .qa-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  flex-grow: 1;
}
body#home-page .qa-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 599px) {
  body#home-page .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  body#home-page .qa-card {
    padding: 14px 10px;
    min-height: 175px;
    height: 100%;
  }
  body#home-page .qa-card__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.5rem;
  }
  body#home-page .qa-card__icon svg {
    width: 18px;
    height: 18px;
  }
  body#home-page .qa-card__title {
    font-size: 14px;
    margin-bottom: 0.2rem;
    line-height: 1.2;
  }
  body#home-page .qa-card__desc {
    font-size: 11px;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    display: block;
    overflow: visible;
  }
  body#home-page .qa-card__link {
    font-size: 10px;
    margin-top: auto;
    letter-spacing: 0.05em;
  }
}

/* 5. Practice Preview Layout */
body#home-page .practice-preview {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  body#home-page .practice-preview {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }
}
body#home-page .practice-preview__text {
  flex: 0 0 34%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body#home-page .practice-preview__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 1200px) {
  body#home-page .practice-preview__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
}
body#home-page .pp-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  height: 180px;
  background: #eaeaea;
}
@media (min-width: 1200px) {
  body#home-page .pp-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  height: 180px;
  background: #eaeaea;
}
}
body#home-page .pp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
body#home-page .pp-card:hover img {
  transform: scale(1.05);
}
body#home-page .pp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
body#home-page .pp-card__title {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 2;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 6. Compact Info Row */
body#home-page .info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  body#home-page .info-row {
    grid-template-columns: repeat(2, 1fr);
  }
  body#home-page .info-card:last-child {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  body#home-page .info-row {
    grid-template-columns: repeat(3, 1fr);
  }
  body#home-page .info-card:last-child {
    grid-column: span 1;
  }
}
body#home-page .info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body#home-page .info-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--purple-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
body#home-page .info-card__content {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
body#home-page .info-card__map {
  width: 100%;
  height: 130px;
  min-height: 110px;
  max-height: 140px;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #eaeaea;
  overflow: hidden;
}
body#home-page .info-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Map Reduction */
body#home-page #map {
  height: 280px !important;
}
@media (min-width: 1024px) {
  body#home-page #map { height: 320px !important; }
}

/* CTA Band Compact */
body#home-page .cta-band {
  padding: 40px 0 !important;
}
@media (min-width: 1024px) {
  body#home-page .cta-band { padding: 60px 0 !important; }
}

/* Overrides for Buttons */
body#home-page .btn {
  height: 44px;
  line-height: 42px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
}
@media (min-width: 1024px) {
  body#home-page .btn {
    height: 44px;
    line-height: 42px;
    font-size: 0.95rem;
  }
}


/* Additional Refinements */
body#home-page .cta-section {
  padding: 40px 0 !important;
}
@media (min-width: 1024px) {
  body#home-page .cta-section { padding: 64px 0 !important; }
}

body#home-page .faq-container {
  max-width: 880px;
  margin: 0 auto;
}
body#home-page .faq-item {
  margin-bottom: 10px;
}
body#home-page .faq-item summary {
  padding: 14px 18px;
  font-size: 1.05rem;
}

body#home-page .merch-card {
  height: 100%;
}
body#home-page .merch-card__content {
  padding: 1rem;
}
body#home-page .merch-card h3 {
  font-size: 0.95rem;
}
body#home-page .merch-card p {
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

body#home-page #map {
  height: 240px !important;
}
@media (min-width: 768px) {
  body#home-page #map { height: 280px !important; }
}
@media (min-width: 1024px) {
  body#home-page #map { height: 320px !important; }
}


/* Further Merch Compaction */
body#home-page .merch-card .btn {
  height: 36px;
  line-height: 34px;
  font-size: 0.8rem;
  padding: 0 1rem;
}
body#home-page .merch-swiper {
  padding: 0 !important;
}
body#home-page .swiper-nav {
  margin-top: 1rem !important;
}

@media (min-width: 768px) {
  body#home-page .pp-card { height: 195px; }
}
@media (min-width: 1200px) {
  body#home-page .pp-card { height: 210px; }
}

@media (min-width: 1200px) {
  body#home-page .practice-preview__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Fix Merch Card Overlap */
body#home-page .merch-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  min-height: max-content;
}
body#home-page .merch-card__img {
  flex-shrink: 0;
}
body#home-page .merch-card__content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1;
  padding: 1rem;
}
body#home-page .merch-card p {
  margin-bottom: 16px !important;
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
body#home-page .merch-card .btn {
  margin-top: auto !important;
  height: 42px !important;
  line-height: 40px !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* DEFINITIVE FIX FOR MERCH CARDS OVERLAP */
body#home-page .merch-swiper .swiper-slide {
  height: auto; /* Allow slides to dictate height naturally */
}

body#home-page .merch-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 400px; /* Give enough breathing room so it never overlaps */
  background: var(--glass-bg);
  position: relative;
}

body#home-page .merch-card__img {
  width: 100%;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}
body#home-page .merch-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}

body#home-page .merch-card__content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 1.5rem !important; /* give enough padding */
}

body#home-page .merch-card h3 {
  font-size: 1.05rem !important;
  margin-bottom: 0.5rem !important;
}

body#home-page .merch-card p {
  font-size: 0.85rem !important;
  margin-bottom: 24px !important; /* 18px minimum requested, giving 24px for safety */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: var(--text-muted);
}

body#home-page .merch-card .btn {
  position: static !important; /* NO absolute positioning */
  margin-top: auto !important; /* Pushes to bottom */
  height: 44px !important;
  line-height: 42px !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 1rem !important;
}


/* FIX 3 FOR MERCH OVERLAP & NAVBAR */
body#home-page #merch {
  padding-top: 80px !important; /* prevent navbar overlap */
  scroll-margin-top: 100px;
}

body#home-page .merch-card .btn {
  position: static !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  line-height: 1.2 !important; /* remove hardcoded px line height */
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 12px !important;
  font-size: 13.5px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  white-space: normal !important; /* allow wrap if needed */
}

/* Ensure Hero image keeps object-fit */
body#home-page .hero-visual img {
  object-fit: cover !important;
  object-position: center center !important;
}


/* ========================================= */
/* DOODLES DECORATIVOS ORGÁNICOS (BACKGROUND) */
/* ========================================= */
.home-doodles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none; /* Let clicks pass through to content */
  z-index: 5; /* Keep it ABOVE section backgrounds but below content containers */
  opacity: 0.12; /* Subtle and soft */
}

/* Base style for pseudo-elements */
.home-doodles::before,
.home-doodles::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  background-repeat: repeat-y;
  pointer-events: none;
}

/* Left Doodle */
.home-doodles::before {
  left: -20px;
  width: 250px;
  /* An organic winding line matching the gold/beige palette */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='1000' viewBox='0 0 250 1000'%3E%3Cpath d='M-20,0 C-20,150 220,250 150,450 C80,650 -60,750 40,880 C140,1010 -20,950 -20,1000' fill='none' stroke='%23C8B170' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 1200px;
}

/* Right Doodle */
.home-doodles::after {
  right: -20px;
  width: 280px;
  /* Different organic curve for asymmetry */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='1200' viewBox='0 0 280 1200'%3E%3Cpath d='M300,0 C300,200 40,300 120,550 C200,800 320,900 210,1080 C100,1260 300,1150 300,1200' fill='none' stroke='%23C8B170' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 1500px;
}

/* Ensure content inside sections sits above the doodles */
body#home-page .section .container,
body#home-page .hero-split {
  position: relative;
  z-index: 10;
}

/* Ensure the footer covers the doodles */
body#home-page .footer {
  position: relative;
  z-index: 20;
}

/* Ensure navbar sits on top */
body#home-page .navbar {
  position: relative;
  z-index: 30;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .home-doodles {
    opacity: 0.08; /* Even more subtle on tablet */
  }
  .home-doodles::before {
    left: -80px; /* Push further off-screen */
  }
  .home-doodles::after {
    right: -80px;
  }
}

@media (max-width: 768px) {
  .home-doodles {
    opacity: 0.05; /* Barely visible on mobile to prevent clutter */
  }
  .home-doodles::before {
    left: -120px; 
  }
  .home-doodles::after {
    right: -140px; 
  }
}

/* ========================================= */
/* ABOUT HERO (SOBRE NOSOTROS) */
/* ========================================= */
.about-hero {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-hero__content {
  width: 100%;
  max-width: 100%;
  text-align: left;
}
.about-hero__content h1 {
  font-size: clamp(34px, 4vw, 46px) !important;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.about-hero__content .section-subtitle p {
  font-size: 0.95rem !important;
  max-width: 480px !important;
  margin-bottom: 0.85rem !important; line-height: 1.5 !important;
}
.about-hero__image-wrapper {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.about-hero__image-wrapper img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .about-hero {
    flex-direction: row;
    gap: 4rem;
    align-items: stretch;
  }
  .about-hero__content {
    flex: 0 0 45%;
  }
  .about-hero__image-wrapper {
    flex: 0 0 50%;
    height: auto;
  }
}

/* ========================================= */
/* TEAM SPLIT LAYOUT (ABOUT PAGE) */
/* ========================================= */
.team-split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .team-split {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .team-split__text {
    flex: 0 0 35%;
    text-align: left;
  }
  .team-split__carousel {
    flex: 0 0 60%;
    min-width: 0; /* allows swiper to shrink */
  }
}

/* ========================================= */
/* UNIVERSAL NAVBAR FIXES */
/* ========================================= */
.navbar__logo {
  width: auto !important;
  height: 54px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
.navbar {
  padding: 1rem 0 !important;
}

/* ========================================= */
/* COMPACT MERCH GRID ON MOBILE */
/* ========================================= */
@media (max-width: 599px) {
  /* Merch Header Compactation */
  body#home-page #merch .accent-text {
    font-size: 13px !important;
  }
  body#home-page #merch h2 {
    font-size: 28px !important;
    line-height: 1.1 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  body#home-page #merch > .container > p.reveal {
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin-bottom: 24px !important;
  }

  /* Merch Grid */
  body#home-page .merch-swiper {
    padding: 0 !important;
  }
  body#home-page .merch-swiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    transform: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body#home-page .merch-swiper .swiper-slide {
    width: 100% !important;
    margin: 0 !important;
  }
  body#home-page .merch-card {
    min-height: auto !important;
  }
  body#home-page .merch-card__content {
    padding: 0.6rem !important;
  }
  body#home-page .merch-card h3 {
    font-size: 14px !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.2 !important;
  }
  body#home-page .merch-card p {
    font-size: 10.5px !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    overflow: visible !important;
    line-height: 1.2 !important;
  }
  body#home-page .merch-card .btn {
    height: auto !important;
    min-height: 28px !important;
    font-size: 9.5px !important;
    padding: 6px 8px !important;
    margin-top: auto !important;
    line-height: 1.1 !important;
    letter-spacing: 0.03em !important;
    white-space: normal !important;
    text-align: center !important;
  }
  body#home-page .merch-card__badge {
    font-size: 0.55rem !important;
    padding: 3px 6px !important;
    top: 6px !important;
    right: 6px !important;
  }
  body#home-page .swiper-nav {
    display: none !important;
  }
}

/* ========================================= */
/* COMPACT FAQ ON MOBILE */
/* ========================================= */
@media (max-width: 599px) {
  body#home-page #faq {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  body#home-page #faq h2.section-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.25rem !important;
  }
  body#home-page #faq p.section-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }
  body#home-page .faq-item {
    padding: 0 !important; /* Prevent double padding between item and summary */
    margin-bottom: 8px !important;
    border-radius: var(--radius);
  }
  body#home-page .faq-item summary {
    padding: 14px 16px !important;
    font-size: 15px !important; 
    line-height: 1.25 !important;
  }
  body#home-page .faq-item p {
    padding: 0 16px 14px 16px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  body#home-page .faq-item summary::after {
    font-size: 18px !important;
  }
}
