:root {
  --font-size: 16px;
  --background: #f9f9f9;
  --foreground: #002e1e;
  --card: #ffffff;
  --card-foreground: #002e1e;
  --popover: #ffffff;
  --popover-foreground: #002e1e;
  --primary: #002e1e;
  --primary-foreground: #efe3c4;
  --secondary: #efe3c4;
  --secondary-foreground: #002e1e;
  --muted: #f0ede8;
  --muted-foreground: #5a6b62;
  --accent: #efe3c4;
  --accent-foreground: #002e1e;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 46, 30, 0.12);
  --input: transparent;
  --input-background: #f3f1ed;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --radius: 0.625rem;
  --font-sans: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  margin: 0;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  font-style: normal !important;
}

h1,
h2,
h3,
h4,
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom animations and utils */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-rotate-left {
  opacity: 0;
  transform: translateY(60px) rotate(-8deg);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-rotate-left.active {
  opacity: 1;
  transform: translateY(0) rotate(-8deg);
}

.reveal-rotate-right {
  opacity: 0;
  transform: translateY(80px) rotate(6deg);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-rotate-right.active {
  opacity: 1;
  transform: translateY(0) rotate(6deg);
}

/* Masked Text Animation */
.mask-up {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.mask-up span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-serif);
}

.active .mask-up span {
  transform: translateY(0);
}

/* Teaser bar scan animation */
@keyframes teaserScan {
  0% {
    height: 0%;
    top: 0%;
  }

  50% {
    height: 100%;
    top: 0%;
  }

  100% {
    height: 0%;
    top: 100%;
  }
}

.teaser-scan {
  animation: teaserScan 2.5s ease-in-out infinite;
}

/* Glassmorphism */
.glass {
  background: rgba(0, 46, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.testimonial-track {
  display: flex !important;
  flex-direction: row !important;
  /* Forzamos horizontal siempre */
  gap: 1rem;
  /* Gap para mobile */
}

.testimonial-card {
  flex: 0 0 100%;
  /* Una tarjeta por vista en mobile */
  min-width: 100%;
}

@media (min-width: 768px) {
  #testimonial-track {
    gap: 1.5rem;
    /* Gap para desktop */
  }

  .testimonial-card {
    flex: 0 0 calc((100% / 3) - 1rem);
    /* Tres tarjetas en desktop */
    min-width: calc((100% / 3) - 1rem);
  }
}

/* @media (max-width: 768px) {
  }
} */

/* Optimization for Parallax */
[data-parallax] {
  will-change: transform;
}

.nav-link-active {
  border-bottom: 2px solid #EFE3C4;
}

.hero-banner-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
}

.hero-banner-button p {
  position: relative;
  z-index: 2;
  color: #EFE3C4;
}

.hero-banner-button .lucide {
  position: relative;
  z-index: 2;
  color: #EFE3C4;
}

.hero-banner-button-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #002e1e;
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.hero-banner-button:hover .hero-banner-button-bg {
  width: 0%;
}

.hero-banner-button:hover p {
  color: #002e1e;
}

.hero-banner-button:hover .lucide {
  color: #002e1e;
}

/* Hero Collage Slides */
.hero-collage-slide {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-collage-slide>div {
  position: absolute;
  border-radius: 2px;
  overflow: hidden;
}

.hero-collage-slide>div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slot 1: Top-left large */
.hero-collage-slide>div:nth-child(1) {
  top: 5%;
  left: 5%;
  width: 325px;
  height: 367px;
  box-shadow: 0 25px 50px -12px rgba(0, 46, 30, 0.15);
}

/* Slot 2: Bottom-right */
.hero-collage-slide>div:nth-child(2) {
  bottom: 0;
  right: 3%;
  width: 250px;
  height: 280px;
  box-shadow: 0 20px 25px -5px rgba(0, 46, 30, 0.1);
}

/* Slot 3: Bottom-left */
.hero-collage-slide>div:nth-child(3) {
  bottom: 5%;
  left: 0;
  width: 210px;
  height: 233px;
  box-shadow: 0 20px 25px -5px rgba(0, 46, 30, 0.1);
}

/* Slot 4: Top-right */
.hero-collage-slide>div:nth-child(4) {
  top: 0;
  right: 2%;
  width: 225px;
  height: 253px;
  box-shadow: 0 20px 25px -5px rgba(0, 46, 30, 0.1);
}

/* 404 & Terms Styles */
.legal-content section {
  border-bottom: 1px solid rgba(0, 46, 30, 0.05);
  padding-bottom: 3rem;
}

.legal-content section:last-child {
  border-bottom: none;
}

.error-bg-text {
  font-family: var(--font-serif);
  background: linear-gradient(180deg, rgba(0, 46, 30, 0.08) 0%, rgba(0, 46, 30, 0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Preloader Styles */
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.6s;
  opacity: 0;
  visibility: hidden;
}

#site-preloader.is-visible {
  opacity: 1;
  visibility: visible;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.preloader-logo span {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.2;
}

.preloader-line {
  width: 30px;
  height: 1px;
  background-color: var(--primary);
  margin-top: 0.5rem;
  animation: preloader-line-grow 2s ease-in-out infinite;
}

@keyframes preloader-line-grow {

  0%,
  100% {
    width: 20px;
    opacity: 0.3;
  }

  50% {
    width: 50px;
    opacity: 1;
  }
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 46, 30, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
  to {
    transform: rotate(360deg);
  }
}

.logo-header {
  position: relative;
}

.logo-header img {
  width: 126px;
  height: 57px;
  object-fit: contain;
}

.logo-header__clicktag {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.logo-footer {
  position: relative;
}

.logo-footer img {
  width: 126px;
  height: 57px;
  object-fit: contain;
}

.logo-footer__clicktag {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.hero-main-home__title span {
  font-style: italic;
  font-weight: 400;
}

/* Generic Modal Styles */
.site-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: rgba(0, 46, 30, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
  opacity: 0;
  visibility: hidden;
}

.site-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-modal-card {
  background-color: #f9f9f9;
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 46, 30, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-modal-overlay.is-visible .site-modal-card {
  transform: scale(1) translateY(0);
}

.site-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 46, 30, 0.4);
  background-color: rgba(0, 46, 30, 0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.site-modal-close:hover {
  background-color: rgba(0, 46, 30, 0.1);
  color: var(--primary);
  transform: rotate(90deg);
}

.site-modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.site-modal-text {
  color: rgba(0, 46, 30, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.site-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-modal-btn {
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s;
  cursor: pointer;
}

.site-modal-btn-primary {
  background-color: var(--primary);
  color: var(--secondary);
}

.site-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 46, 30, 0.2);
}

.site-modal-btn-secondary {
  border: 1px solid rgba(0, 46, 30, 0.15);
  color: var(--primary);
}

.site-modal-btn-secondary:hover {
  background-color: rgba(0, 46, 30, 0.05);
}

.card-contact-info {
  position: relative;
}

.card-contact-info__clicktag {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: pointer;
}

/* Dots Styling */
.manifesto-dot,
.carousel-dot {
  height: 0.25rem;
  border-radius: 9999px;
  transition: all 0.5s ease;
}

.manifesto-dot {
  width: 0.375rem;
  background-color: rgba(239, 227, 196, 0.15);
}

.manifesto-dot.active {
  width: 1.5rem;
  background-color: rgba(239, 227, 196, 0.5);
}

.carousel-dot {
  width: 0.375rem;
  background-color: rgba(0, 46, 30, 0.1);
}

.carousel-dot.active {
  width: 1.5rem;
  background-color: rgba(0, 46, 30, 1);
}

/* Carousel viewport: padding vertical para que el lift del hover no se recorte */
#testimonial-carousel {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Testimonial Card */
.testimonial-card {
  flex-shrink: 0;
  width: 100%;
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: all .4s;
}

.testimonial-card:hover {
  background-color: #002E1E;
  transform: translateY(-5px);
}

.testimonial-card:hover .testimonial-card__stars svg {
  fill: rgba(239, 227, 196, 0.4);
}

.testimonial-card:hover .testimonial-card__icon {
  background: rgba(239, 227, 196, 0.3);
}

.testimonial-card:hover p {
  color: rgb(239, 227, 196);
}

.testimonial-card:hover .testimonial-card__separator {
  width: 100%;
  background-color: rgba(239, 227, 196, 0.4);
}




@media (min-width: 768px) {
  .testimonial-card {
    width: calc((100% - 3rem) / 3);
    padding: 2.5rem;
    min-height: 300px;
  }
}

.testimonial-card::after {
  content: '';
  width: 100%;
  height: 4px;
  background: #002E1E;
  background: linear-gradient(90deg, rgba(0, 46, 30, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.1;
}

/* Membership Cards */
.membership-card {
  position: relative;
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.membership-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 46, 30, 0.1);
}

.membership-card.tier-basic {
  border-color: rgba(0, 46, 30, 0.1);
  background-color: white;
}

.membership-card.tier-premium {
  background-color: #f1e6cc;
}

.membership-card.tier-curada {
  background-color: #002e1e;
  color: #efe3c4;
}

.tier-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.25rem 0.75rem;
  background-color: #002e1e;
  color: #efe3c4;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 9999px;
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tier-basic .icon-circle,
.tier-premium .icon-circle {
  background-color: rgba(0, 46, 30, 0.05);
  color: rgba(0, 46, 30, 0.4);
}

.tier-curada .icon-circle {
  background-color: rgba(239, 227, 196, 0.1);
  color: rgba(239, 227, 196, 0.6);
}

/* Bento Grid Cards */
.bento-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.bento-card:hover img {
  transform: scale(1.05);
}

.bento-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 46, 30, 0.95), rgba(0, 46, 30, 0.2), transparent);
}

.bento-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2rem;
  z-index: 10;
}

/* Marquee */
.marquee-track {
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-content {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.06);
}

/* Partners Auto Carousel */
.partners-carousel-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 30s linear infinite;
}

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

.partners-carousel-container:hover .partners-carousel-track {
  animation-play-state: paused;
}

.partner-logo-item {
  filter: grayscale(100%) opacity(0.55);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo-item:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-3px) scale(1.04);
}

/* Experience Cards */
.experience-card {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: white;
  border: 1px solid rgba(0, 46, 30, 0.05);
  transition: all 0.5s ease;
}

.experience-card:hover {
  border-color: rgba(0, 46, 30, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.experience-card__image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.experience-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover .experience-card__image {
  transform: scale(1.05);
}

.experience-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 46, 30, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.experience-card:hover .experience-card__overlay {
  opacity: 1;
}

.experience-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(0, 46, 30, 0.7);
  backdrop-filter: blur(4px);
  color: #efe3c4;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 5;
}

.experience-card__status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
}

.experience-card__status-badge--past {
  background-color: rgba(239, 227, 196, 0.8);
  backdrop-filter: blur(4px);
  color: rgba(0, 46, 30, 0.6);
}

.experience-card__status-badge--hot {
  background-color: #002e1e;
  color: #efe3c4;
}

.experience-card__content {
  padding: 1.5rem;
}

.experience-card__title {
  color: #002e1e;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.experience-card:hover .experience-card__title {
  color: rgba(0, 46, 30, 0.8);
}

.experience-card__subtitle {
  color: rgba(0, 46, 30, 0.4);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.6;
}

.experience-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(0, 46, 30, 0.35);
  font-size: 0.7rem;
}

.experience-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Category Filters */
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background-color: rgba(0, 46, 30, 0.05);
  color: rgba(0, 46, 30, 0.5);
  border: none;
  outline: none;
}

.filter-btn:hover {
  background-color: rgba(0, 46, 30, 0.1);
}

.filter-btn.active {
  background-color: #002e1e;
  color: #efe3c4;
}

/* Detail Page Elements */
.detail-meta-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.detail-meta-item svg {
  color: rgba(0, 46, 30, 0.25);
  margin-top: 0.125rem;
}

.detail-meta-label {
  display: block;
  color: rgba(0, 46, 30, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.6rem;
}

.detail-meta-value {
  color: rgba(0, 46, 30, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

.detail-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 46, 30, 0.03);
}

.detail-highlight__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: rgba(0, 46, 30, 0.2);
}

.detail-highlight__text {
  color: rgba(0, 46, 30, 0.6);
  font-size: 0.85rem;
}

.hero-collage-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 0;
  transition: opacity 1s ease;
}

.hero-collage-slide>div {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 46, 30, 0.15);
}

.hero-collage-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image 1: Large Main */
.hero-collage-slide>div:nth-child(1) {
  grid-column: 1 / 10;
  grid-row: 1 / 10;
  z-index: 1;
}

/* Image 2: Bottom Right Offset */
.hero-collage-slide>div:nth-child(2) {
  grid-column: 7 / 13;
  grid-row: 7 / 13;
  z-index: 2;
  border: 4px solid #efe3c4;
}

/* Image 3: Top Right Small */
.hero-collage-slide>div:nth-child(3) {
  grid-column: 7 / 10;
  grid-row: 2 / 6;
  z-index: 3;
}

/* Image 4: Bottom Left Small */
.hero-collage-slide>div:nth-child(4) {
  grid-column: 2 / 6;
  grid-row: 8 / 11;
  z-index: 4;
}

.highlight-overlay {
  background: linear-gradient(to bottom, transparent, rgba(0, 46, 30, 0.2));
}


/* Sistema de Grid Dinámico para Experiencias */
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  padding: 0 0.75rem;
}

@media (min-width: 768px) {
  .experiences-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* Definimos una fila base pequeña para tener control granular */
    grid-auto-rows: 20px;
    gap: 1.5rem;
    padding: 0 2rem;
  }

  /* FILA 1: Altura 720px (720 / 20 = 36 spans) */
  .experiences-grid>div:nth-child(6n+1),
  .experiences-grid>div:nth-child(6n+2) {
    grid-row: span 18;
  }

  .experiences-grid>div:nth-child(6n+1) {
    grid-column: span 7;
  }

  .experiences-grid>div:nth-child(6n+2) {
    grid-column: span 5;
  }

  /* FILA 2: Altura 540px (540 / 20 = 27 spans) */
  .experiences-grid>div:nth-child(6n+3),
  .experiences-grid>div:nth-child(6n+4),
  .experiences-grid>div:nth-child(6n+5) {
    grid-row: span 14;
  }

  .experiences-grid>div:nth-child(6n+3) {
    grid-column: span 4;
  }

  .experiences-grid>div:nth-child(6n+4) {
    grid-column: span 3;
  }

  .experiences-grid>div:nth-child(6n+5) {
    grid-column: span 5;
  }

  /* FILA 3: Altura 500px (500 / 20 = 25 spans) */
  .experiences-grid>div:nth-child(6n+6) {
    grid-column: span 12;
    grid-row: span 12;
  }
}

/* Forzar que los contenedores internos ocupen el 100% de la altura asignada */
.experience-slot {
  height: 100%;
}

.bento-card {
  height: 100%;
}

/* Forzar que el contenido ocupe todo el alto del slot de la grid */
.experience-slot {
  height: 420px;
  /* Altura móvil */
}

@media (min-width: 768px) {
  .experience-slot {
    height: 100%;
  }
}

#modal-image-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

#modal-image-track img {
  min-width: 100%;
  /* Cada imagen ocupa el 100% del contenedor padre */
  object-fit: cover;
}

.hero-slot {
  position: absolute;
  /* O la posición que dicta tu grid de collage */
  overflow: hidden;
}

.hero-slot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slot img.next {
  opacity: 0;
  /* Oculta por defecto */
  z-index: 5;
}

.hero-slot img.active {
  opacity: 1;
  z-index: 10;
}

/* Posicionamiento de los slots dentro del collage */
#hero-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  position: relative;
}

.hero-slot {
  position: relative;
  /* Cambiado para contener las imágenes absolutas */
  overflow: hidden;
  border-radius: 4px;
  background: #e5e5e5;
  /* Fondo placeholder por si la imagen tarda */
}

/* Reasignación de posiciones originales del collage */
.hero-slot[data-slot="0"] {
  grid-column: 1 / 10;
  grid-row: 2 / 10;
  z-index: 1;
}

.hero-slot[data-slot="1"] {
  grid-column: 7 / 13;
  grid-row: 7 / 13;
  z-index: 2;
  border: 4px solid #efe3c4;
}

.hero-slot[data-slot="2"] {
  grid-column: 8 / 13;
  grid-row: 2 / 6;
  z-index: 3;
}

.hero-slot[data-slot="3"] {
  grid-column: 2 / 6;
  grid-row: 9 / 13;
  z-index: 4;
}

.hero-slot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Todas ocultas por defecto */
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slot img.active {
  opacity: 1;
  z-index: 10;
}

/* Filosofía Section Overrides */
#filosofia .text-secondary {
  color: #fff !important;
}

#filosofia .border-secondary {
  border-color: var(--secondary) !important;
}

.filosofia-description {
  opacity: 0.7 !important;
}

.button-filosofia span {
  width: 32px;
  height: 1px;
  background-color: #FFFFFF33;
}

/* Ajuste de la tipografía Serif para que coincida con el diseño de lujo */
#filosofia h2 span.italic {
  font-weight: 400;
  opacity: 0.8;
}

/* Efecto de las ondas de fondo */
@keyframes wave-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}



.module-filosofia__image img {
  height: 580px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.experience-slot__circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.experience-slot__circles img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-tags {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 9.6px;
  font-weight: medium;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(3px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-number {
  position: absolute;
  right: 32px;
  top: 74px;
  z-index: 5;
}

.bento-number p {
  font-family: var(--font-serif);
  font-size: 152px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff23;
  letter-spacing: -1px;
}

/* Auto-numbering of experience cards */
.experiences-grid {
  counter-reset: bento-counter;
}

.experiences-grid > .experience-slot:not(.bg-primary) {
  counter-increment: bento-counter;
}

.experiences-grid > .experience-slot:not(.bg-primary) .bento-number p::before {
  content: counter(bento-counter, decimal-leading-zero);
}

.bento-tag-modal {
  background-color: #EFE3C480;
}

.separator-modal-custom {
  width: 64px !important;
  height: 1px;
  background-color: #EFE3C4 !important;
  margin-bottom: 40px;
}

.blockquote-modal {
  border-left: 2px solid #EFE3C4;
  position: relative;
}

.icon-quote {
  position: absolute;
  top: -10px;
  left: -9px;
  background-color: white;
  width: 16px;
  height: 16px;
}

.modal-prev-img>svg,
.modal-next-img>svg {
  stroke: white;
}

.testimonial-card__quote img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.testimonial-card__separator {
  width: 152px;
  height: 1px;
  background-color: #002E1E14;
  margin-top: 32px;
  transition: .4s;
}

.footer-legal a {
  color: #002E1E4D;
  font-size: 12px;
  font-weight: regular;
}

.footer-legal a:hover {
  color: #002e1e8f;
}

#toast-container div {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Curva de transición personalizada para un efecto seda */
.ease-premium {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajuste de altura para que el hover no mueva el resto de la página */
#prensa a {
  will-change: padding, background-color;
}

/* Opcional: un sutil cambio de color de fondo al hacer hover */
#prensa a:hover {
  background-color: rgba(0, 46, 30, 0.015);
}

/* Progresión automática de la línea de tiempo */
.timeline-item {
  transition-property: all;
  transition-duration: 600ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Generación de retardos automáticos */
.timeline-item:nth-child(1) {
  transition-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  transition-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  transition-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  transition-delay: 0.4s;
}

.timeline-item:nth-child(5) {
  transition-delay: 0.5s;
}

.timeline-item:nth-child(6) {
  transition-delay: 0.6s;
}

.timeline-item:nth-child(7) {
  transition-delay: 0.7s;
}

.timeline-item:nth-child(8) {
  transition-delay: 0.8s;
}

.timeline-item:nth-child(9) {
  transition-delay: 0.9s;
}

.timeline-item:nth-child(10) {
  transition-delay: 1.0s;
}

/* Si el backend agrega más de 10, puedes seguir la secuencia o 
   dejar un valor por defecto para el resto */
.timeline-item:nth-child(n+11) {
  transition-delay: 1.1s;
}


.gallery-grid-item {
  overflow: hidden;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenedor principal */
.blog-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .blog-grid {
    /* Definimos que la columna derecha es un sub-grid de una sola columna */
    grid-template-areas: "destacado lista";
    grid-template-columns: 2fr 1fr;
  }

  /* El primer elemento ocupa el área de destacado */
  .blog-item:nth-child(1) {
    grid-area: destacado;
  }

  /* Todos los elementos a partir del segundo se van a la columna de lista */
  .blog-item:nth-child(n+2) {
    grid-column: 2;
  }
}

/* LÓGICA DE VISIBILIDAD */

/* 1. Para el primer elemento: mostrar contenido grande, ocultar pequeño */
.blog-item:nth-child(1) .item-featured-content {
  display: block;
}

.blog-item:nth-child(1) .item-list-content {
  display: none;
}

/* 2. Para los demás elementos: mostrar contenido pequeño, ocultar grande */
.blog-item:nth-child(n+2) .item-featured-content {
  display: none;
}

.blog-item:nth-child(n+2) .item-list-content {
  display: flex;
}

/* 3. Retardos de animación automáticos (como en la línea de tiempo) */
.blog-item:nth-child(1) {
  transition-delay: 0.1s;
}

.blog-item:nth-child(2) {
  transition-delay: 0.2s;
}

.blog-item:nth-child(3) {
  transition-delay: 0.3s;
}

.blog-item:nth-child(n+4) {
  transition-delay: 0.4s;
}

/* Manejo de aparición secuencial para Prensa */
.press-item {
  /* Aseguramos que las transiciones de color y transform sigan la misma curva */
  transition-property: color, background-color, transform, opacity;
}

/* Cascada automática basada en la posición */
.press-item:nth-child(1) {
  transition-delay: 0.10s;
}

.press-item:nth-child(2) {
  transition-delay: 0.18s;
}

.press-item:nth-child(3) {
  transition-delay: 0.26s;
}

.press-item:nth-child(4) {
  transition-delay: 0.34s;
}

.press-item:nth-child(5) {
  transition-delay: 0.42s;
}

.press-item:nth-child(6) {
  transition-delay: 0.50s;
}

.press-item:nth-child(7) {
  transition-delay: 0.58s;
}

.press-item:nth-child(8) {
  transition-delay: 0.66s;
}

/* Valor por defecto para elementos excedentes (si el back mete más de 8) */
.press-item:nth-child(n+9) {
  transition-delay: 0.75s;
}

/* Cascada automática para Beneficios */
.benefit-card:nth-child(1) {
  transition-delay: 0.1s;
}

.benefit-card:nth-child(2) {
  transition-delay: 0.2s;
}

.benefit-card:nth-child(3) {
  transition-delay: 0.3s;
}

.benefit-card:nth-child(4) {
  transition-delay: 0.4s;
}

.benefit-card:nth-child(5) {
  transition-delay: 0.5s;
}

.benefit-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Para cualquier item adicional */
.benefit-card:nth-child(n+7) {
  transition-delay: 0.7s;
}

/* La imagen final aparece después de los beneficios */
.reveal-scale {
  transition-delay: 0.8s;
}

/* Cascada automática para el módulo de Aliados */
.partner-item:nth-child(1) {
  transition-delay: 0.10s;
}

.partner-item:nth-child(2) {
  transition-delay: 0.16s;
}

.partner-item:nth-child(3) {
  transition-delay: 0.22s;
}

.partner-item:nth-child(4) {
  transition-delay: 0.28s;
}

.partner-item:nth-child(5) {
  transition-delay: 0.34s;
}

.partner-item:nth-child(6) {
  transition-delay: 0.40s;
}

.partner-item:nth-child(7) {
  transition-delay: 0.46s;
}

.partner-item:nth-child(8) {
  transition-delay: 0.52s;
}

/* En caso de que el backend agregue más de 8 aliados */
.partner-item:nth-child(n+9) {
  transition-delay: 0.6s;
}

/* Optimización para el rendimiento de hover */
.partner-item {
  will-change: background-color, transform, box-shadow;
}

/* Micro-animaciones de hover para botones */
button,
.btn,
.hero-banner-button,
.js-plan-btn,
.filter-btn,
.lang-option,
.mobile-lang-item,
[role="button"] {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease, opacity 0.2s ease;
  will-change: transform;
  cursor: pointer;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled),
.hero-banner-button:hover,
.js-plan-btn:hover:not(:disabled),
.filter-btn:hover:not(:disabled),
.lang-option:hover,
.mobile-lang-item:hover,
[role="button"]:hover {
  transform: scale(1.03);
}

button:active:not(:disabled),
.btn:active:not(:disabled),
.hero-banner-button:active,
.js-plan-btn:active:not(:disabled),
.filter-btn:active:not(:disabled),
.lang-option:active,
.mobile-lang-item:active,
[role="button"]:active {
  transform: scale(0.97);
}