/* ==========================================================================
   1. SECCIÓN HERO (NUEVA ARQUITECTURA PRO)
   ========================================================================== */
body {
  background: oklab(0.62 -0.12 0.07 / 0.02);
}

article.inmueble-card .card-info h3 {
  margin: 0px;
}

body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home #content.site-main {
  padding-top: 4.5rem;
}


.home-message-band {
  padding: 100px 0
}

.home-message-shell {
  max-width: 1420px;
  margin-inline: auto;
}

.home-message-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #000;
}

.home-message-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1rem;
  white-space: nowrap;
}

.home-message-copy {
  font-size: clamp(1.7rem, 3.35vw, 3.45rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.home-message-separator {
  margin: 0;
  flex: 0 0 auto;
}

.home-message-separator img {
  display: block;
  width: clamp(5rem, 7.2vw, 8rem);
  height: auto;
}

.home-message-separator-photo img {
  aspect-ratio: 0.95;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.home-message-separator-shape img {
  filter: drop-shadow(0 1rem 2rem rgba(249, 115, 22, 0.18));
}

body.admin-bar.home .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar.home .site-header {
    top: 46px;
  }
}

@media (max-width: 768px) {
  body.home .site-header {
    display: block !important;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  }

  body.home .site-header__wrapper {
    min-height: 4.5rem;
    padding: 0 14px;
  }

  body.home .site-branding,
  body.home .header-actions {
    display: flex;
    align-items: center;
  }

  section.home-message-band {
    min-height: 30vh;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 0px;
    margin: 0px auto;
  }

  .home-message-shell {
    max-width: 100%;
  }

  .home-message-flow {
    align-items: center;
    gap: 0.45rem;
  }

  .home-message-line {
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
    white-space: nowrap;
  }

  .home-message-copy {
    font-size: clamp(0.92rem, 3vw, 1.15rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .home-message-separator img {
    width: 2rem;
  }

  .home-message-separator-photo img {
    border-radius: 0;
  }

  .home-message-line:first-child .home-message-copy:last-child {
    font-size: clamp(0.88rem, 3.6vw, 1.05rem);
  }
}

.hero {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  z-index: 100;
  height: 80vh;
  min-height: 500px;
  color: #fff;
  text-align: center;
  max-width: 1210px;
  margin: 2rem auto;
  overflow: visible !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4) !important;
  border-radius: 20px;
  /* Permitir decoraciones flotantes */
}

/* Contenedor y Slides */
.hero-master-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Mantener visibilidad base */
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.8);
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-slide-item.is-active {
  opacity: 1;
  display: flex;
  z-index: 2;
}

.hero-media {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* SISTEMA INTELIGENTE ADAPTABLE (MEDIA ROUTING) */
.is-desktop-only {
  display: block;
}
.is-mobile-only {
  display: none;
}
.is-all-devices {
  display: block;
}

@media (max-width: 1024px) {
  .is-desktop-only {
    display: none !important; /* Neutralizar video en móvil para performance */
  }
  .is-mobile-only {
    display: block !important; /* Priorizar imagen optimizada en móvil */
  }
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Cinematic Vignette (Capas oscuras envolventes) */
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

/* Contenido y Reveal */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 0px;
  max-width: 900px;
  overflow: visible !important;
}

.hero-title {
  margin-bottom: 25px;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Disparador del Buscador (Glassmorphism) */
#hero-search-trigger {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-all-front.is-trigger {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 20px 28px;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-all-front.is-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Formulario Revelado (Screenshot Match) */
#hero-search-form {
  position: relative;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
  margin: 3rem auto 0;
  max-width: 800px;
  border: 0px solid rgba(255, 255, 255, 0.5);
  z-index: 10;
  overflow: hidden;
  /* Para que las pestañas sigan el redondeado */
  color: #000;
  text-align: left;
}

.hero-search-inner {
  padding: 2.5rem 3rem;
}

/* Panel de Pestañas Superiores */
.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-panel-item {
  padding: 22px 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.tab-panel-item.active {
  background: #fff;
  color: #000;
}

.tab-panel-item:not(.active):hover {
  color: #000;
  background: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   2. BUSCADOR PREDICTIVO (LIVE SEARCH)
   ========================================================================== */
.form-front {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0px;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
  overflow: visible !important;
}

#live-search-input {
  display: block !important;
  visibility: visible !important;
  outline: none;
  border: 2px solid #eee;
  border-radius: 8px;
  background: #fff;
  padding: 12px 15px !important;
  width: 100%;
  color: #333;
  font-size: 16px;
}

#live-search-results {
  display: none;
  position: absolute !important;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 999999 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #ffffff !important;
  /* Por encima de todo */
  max-height: 400px;
  overflow-y: auto;
  /* Controlado por JS */
}

/* Contenedor principal del resultado */
.live-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background 0.2s ease;
  -webkit-transition: background 0.2s ease;
  -moz-transition: background 0.2s ease;
  -ms-transition: background 0.2s ease;
  -o-transition: background 0.2s ease;
  border-bottom: 1px solid #f1f1f1;
  padding: 12px 15px;
  text-decoration: none;
}

.live-result-item:last-child {
  border-bottom: none;
  /* Quita la línea del último elemento */
}

/* Ajuste de la Imagen */
.live-result-item img {
  flex-shrink: 0;
  border-radius: 6px;
  /* Evita que la imagen se aplaste si el texto es largo */
  background-color: #f9f9f9;
  width: 55px;
  height: 55px;
  object-fit: cover;
  /* Fondo por si la imagen falla */
}

/* Contenedor de Texto (El que se ve desordenado) */
.live-result-item .info {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

/* Título de la propiedad */
.live-result-item .info .title {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  color: #2d3436;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.3;
  text-overflow: ellipsis;
  /* Cortar texto largo con puntos suspensivos (...) */
  white-space: nowrap;
}

/* Precio destacado */
.live-result-item .info .price {
  display: block;
  color: #00b894;
  font-weight: 500;
  font-size: var(--text-sm);
}

/* Hover suave */
.live-result-item:hover {
  background-color: #f8fbfb;
}

.no-results {
  padding: 30px 20px;
  color: #636e72;
  text-align: center;
}

/* ==========================================================================
   3. SELECTORES Y BOTONES (CLEAN WHITE)
   ========================================================================== */
.row-home-drop b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: 0px;
}

.col-home-drop {
  margin-bottom: 16px;
}

.form-front select {
  font-family: var(--font-family);
  appearance: none;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-position: calc(100% - 20px) center;
  background-repeat: no-repeat;
  padding: 12px 10px;
  color: #444;
  width: 100% !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-front select:focus {
  border-color: #399d57;
  outline: none;
}

/* Fila de Acciones en la parte baja */
.row-home-btn-actions {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-all-front {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbb;
  border-radius: 16px;
  padding: 12px 10px;
  color: #000;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-all-front:hover {
  background: #f1f1f1;
  border-color: #888;
}

.btn-form-front {
  cursor: pointer;
  border: none;
  border-radius: 16px;
  background: #399d57;
  padding: 12px 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-form-front:hover {
  background: #2e8147;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(57, 157, 87, 0.3);
}

/* ==========================================================================
   4. GRID DE PROPIEDADES (4 COLUMNAS)
   ========================================================================== */
.prop-grid.grid-into-frontpage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 40px auto;
  padding: 0 15px;
  max-width: 1200px;
}

.inmueble-card {
  position: relative;
  transition:
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.2s ease;
  border: 1px solid #efefef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.inmueble-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.inmueble-card:active {
  transform: scale(0.96);
}

.card-image-box {
  position: relative;

}

.card-image-box img {
  transition: 0.5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 4px;
  background: #00b894;
  padding: 5px 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
}

.card-price-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.card-info {
  flex-grow: 1;
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  height: 2.8em;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 700;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

/* ==========================================================================
   5. SECCIONES DE ABAJO Y RESPONSIVO
   ========================================================================== */
.section-areas {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  /* Menor que el Hero */
  padding: 60px 16px;
  padding-bottom: 0px;
  max-width: 1200px;
}

.catagory-slides.owl-carousel.owl-loaded.owl-drag {
  margin: 0px;
  width: 100% !important;
}

@media (max-width: 1100px) {
  .prop-grid.grid-into-frontpage {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  header.hero img,
  #hero-bg-slider,
  #hero-bg-fade,
  .hero-overlay {
    border-radius: var(--radius-lg);
  }

  .section-areas {
    padding: 60px 0px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .form-front {
    flex-direction: column;
  }

  .hero {
    padding: 60px 0;
    min-height: 70vh; /* Altura minima para que el motor de slider sea visible */
    height: auto;
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-location {
    display: flex;
  }

  .prop-grid.grid-into-frontpage {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0px;
  }

  .card-info .card-location span {
    display: block;
    font-size: var(--text-micro);
    line-height: 1.3;
  }

  .live-result-item .info .title,
  .live-result-item .info .price {
    font-size: var(--text-xs) !important;
  }

  a.live-result-item,
  span.info,
  span.title,
  span.price,
  #live-search-results span.title {
    font-size: var(--text-xs) !important;
  }
}

/* Accesibilidad SEO */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   6. GRID DE ZONAS (SAN SALVADOR, LA LIBERTAD, ETC.)
   ========================================================================== */
.areas-grid-tpl {
  position: relative;
  -webkit-transform: translate3d(0, 0, 0);
  overflow: hidden;
}

.area-card {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  background-color: transparent;
}

/* Capa oscura degradada para que el nombre de la ciudad se lea perfecto */

.area-card span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- EFECTOS HOVER --- */

/* Oscurecemos un poco más el fondo al pasar el mouse */
.area-card:hover::before {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.2) 100%);
}

.container-who.panel-2 {
  padding: 100px 0;
}


/* --- RESPONSIVO PARA ZONAS --- */
@media (max-width: 480px) {
  .area-card {
    height: 180px;
    /* Un poco más bajas en móviles pequeños */
  }

  .area-card span {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   RESCATE: EFECTO MATERIAL DESIGN & TOUCH (APP STYLE)
   ========================================================================== */




/* 1. Base de la tarjeta: Preparamos para el efecto de onda */
.inmueble-card,
.area-card {
  position: relative;
  /* Necesario para que la onda no se salga */
  transition:
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.2s ease;

  -webkit-tap-highlight-color: transparent;
  /* Quita el cuadro azul de Android */
  cursor: pointer;
}

/* 2. Efecto de "Hundimiento" al tocar (Feedback táctil) */
.inmueble-card:active,
.area-card:active {
  transform: scale(0.96) !important;
  /* Se encoge un poquito */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 3. La Onda (Ripple Effect) - Requiere el JS que pusimos antes */
.ripple-effect {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  /* No bloquea el clic */
  animation: ripple-animation 0.6s linear;
  /* Color de la onda */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@keyframes ripple-animation {
  from {
    opacity: 0.5;
    width: 0px;
    height: 0px;
  }

  to {
    opacity: 0;
    width: 500px;
    /* Tamaño máximo de expansión */
    height: 500px;
  }
}

/* 4. Feedback en la imagen al presionar */
.inmueble-card:active .card-image-box img {
  filter: brightness(0.8);
  /* Se oscurece un poco al tocar */
}

.col-who.col-right h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  letter-spacing: 0px;
}

/* 5. Optimización para que el hover no moleste en móviles */
@media (hover: none) {

  .inmueble-card:hover,
  .area-card:hover {
    transform: none;
    /* En móviles solo funciona el :active (toque) */
  }
}

div#splitview-modal {
  display: none;
}

section.propiedades-destacadas {
  padding: 60px 20px;
}

section h2 {
  margin-top: 0px;
  margin-bottom: 40px;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  text-align: center;
}

#clear-search {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 5;
  cursor: pointer;
  padding: 5px;
  color: #999;
  font-size: 22px;
}

#clear-search:hover {
  color: #333;
}

/* El Spinner */
.loader-spinner {
  display: none;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  /* Oculto por defecto */
  z-index: 10;
  animation: spin 0.8s linear infinite;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #00b894;
  /* Color verde de tu marca */
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Ajuste para que la X y el Loader no se encimen */
#clear-search {
  z-index: 11;
}

@media (max-width: 768px) {
  section.propiedades-destacadas {
    padding: 0px 20px;
  }

  /* 1. Evita que el navegador cambie el tamaño de letra por su cuenta */
  html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  /* 2. Forzamos el tamaño del título en los resultados */
  .live-result-item .info .title {
    /* Permite 2 líneas si es necesario */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    font-size: 14px !important;
    /* Tamaño fijo para móvil */
    line-height: 1.2 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
  }

  /* 3. Forzamos el tamaño del precio */
  .live-result-item .info .price {
    margin-top: 2px;
    font-size: 13px !important;
    text-align: left;
  }

  /* 4. Ajuste de la imagen para que no robe espacio */
  .live-result-item img {
    width: 50px !important;
    height: 50px !important;
  }
}

.catagory-card {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  background-color: transparent;
}

.catagory-card a {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  overflow: hidden;
}

.catagory-card a::after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.4;
  z-index: 5;
  border-radius: 1rem;
  background-color: #0c153b;
  width: 100%;
  height: 100%;
  content: "";
}

.catagory-card a img {
  position: relative;
  z-index: -5;
  -webkit-transition-duration: 500ms;
  transition-duration: 500ms;
  border-radius: 1rem;
  min-height: 15rem;
  object-fit: cover;
}

.catagory-card a h3 {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  -webkit-transition-duration: 500ms;
  transition-duration: 500ms;
  margin-bottom: 0;
  border-radius: 2rem;
  background-color: #fff;
  padding: 0.25rem 0.625rem;
  color: #3a393c;
  font-size: var(--text-sm);
}

.catagory-card a h3:hover,
.catagory-card a h3:focus {
  background-color: #020b10;
}

.catagory-card a:hover img,
.catagory-card a:focus img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.catagory-slides {
  margin-left: 2rem;
  width: calc(100% - 4rem) !important;
}

.title-link h3 {
  margin: 0px;
  padding: 0;
}

.card-info .card-location span {
  font-size: var(--text-micro);
  line-height: 1.3;
}

.card-info a {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  width: 100%;
  line-height: 1.3;
}

@media only screen and (min-width: 1200px) {

  /* Ajuste para pantallas grandes */
  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {

  /* Ajuste para laptops y pantallas medianas */
  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {

  /* Ajuste para tablets */
  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  /* Ajuste para tablets */

  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (max-width: 575px) {

  /* Ajuste para móviles pequeños */
  .catagory-card a h3 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    border-radius: 1rem;
    height: 4rem;
    font-size: var(--text-xs);
  }

  .catagory-slides.owl-carousel.owl-loaded.owl-drag {
    padding-right: 0rem;
    padding-left: 1rem;
  }
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a::after {
  background-color: #100dd1;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a h3 {
  background: #76b791;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a h3:hover,
.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a h3:focus {
  background-color: #020b10;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a::after {
  background: #76b791;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a h3 {
  background-color: #fff;
  color: #020b10;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a h3:hover,
.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a h3:focus {
  background-color: #020b10;
  color: #ffffff;
}

/* ==========================================================================
   7. SECCIÓN HOW IT WORKS
   ========================================================================== */
#how-it-works {
  background-color: #ffffff;
  padding: 100px 20px;
}

#how-it-works .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-header__description {
  font-size: 1.1rem;
  color: #636e72;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.how-it-work__box {
  margin-top: 40px;
}

.how-work-post {
  text-align: center;
  padding: 40px 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
}

.how-work-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.how-work-post__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: rgba(0, 184, 148, 0.1);
  color: #00b894;
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.how-work-post:hover .how-work-post__icon {
  background-color: #00b894;
  color: #ffffff;
  transform: rotate(10deg);
}

.how-work-post__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 15px;
}

.how-work-post__description {
  font-size: 1rem;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Ajustes de Grid para 3 columnas reales */
.how-it-work__box .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Anulamos anchos de Bootstrap para que el Grid mande */
#how-it-works [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0;
  margin: 0;
}

@media (max-width: 1200px) {
  .how-it-work__box .row {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .how-it-work__box .row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header__title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  #how-it-works {
    padding: 60px 20px;
  }

  .how-it-work__box .row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .how-work-post {
    padding: 30px 20px;
  }

  .how-work-post__icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}





.caja {
  width: 150px;
  height: 150px;
  background-color: #ba1f1fff;
  border: 2px solid black;
}

.header_text-wrap {
  position: relative;
  overflow: hidden;
}

.header_text-wrap h1 {
  margin-top: 0px;
  margin-bottom: 0px;
  line-height: 0.8;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.4em;
}

.is--alt-text {
  font-style: italic;
  font-weight: 400;
}


.header_text-wrap.text-sp {
  padding-bottom: 0.4rem;
  margin-top: 0rem;
}

.sticky-circle_wrap {
  height: 300vh;
}

.sticky-circle {
  position: -webkit-sticky;
  position: sticky;
  top: 0px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  padding-top: 6em;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.sticky-circle_element {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  width: 35em;
  height: 35em;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 35em;
}

.sticky-circle_img {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none;
  min-height: 100vh;
  min-width: 100vw;
  -o-object-fit: cover;
  object-fit: cover;
  flex-shrink: 0;
  /* Evita que la imagen se colapse */
}

#about {

  width: 100%;
  display: flex;

  justify-content: center;
  flex-direction: column;


}

h1.is--alt-text {
  font-size: 2rem;

  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}

.container-who {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: left;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.col-who {
  width: 50%;
  font-size: var(--text-xs);
  line-height: 1.5;
}

.col-left {
  text-align: left;
}

.col-right {
  text-align: left;
}

#about .col-who ul {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

#about .col-who ul li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#about .col-who ul li::before {
  content: "";
  flex: 0 0 1.4rem;
  width: 10px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(34, 197, 94, 0.2);
}

#about .col-who ul li::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 1.8rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 2px solid #166534;
  border-bottom: 2px solid #166534;
  transform: translate(-50%, -50%) rotate(40deg);
}

#about .col-who ul li p {
  margin: 0 !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.img-who {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.row-who {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

#about a.btn {

  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  background: var(--color-primary);
  padding: 10px 1rem;
  color: #fff;
  font-size: var(--text-sm);
  text-decoration: none;
  max-width: 230px;
}

/* En front-page.php, dentro de <style> */
.panel-1 .img-who {
  position: relative;
  /* Elimina left: 100% */
  transform: translateX(80px);
  /* Empieza solo 80px a la derecha */
  opacity: 0;
  /* Empieza invisible para un efecto más limpio */
}

.panel-2 .img-who {
  position: relative;
  transform: translateX(-80px);
  /* En el panel 2, viene de la izquierda */
  opacity: 0;
}

#about {
  background: #399d57;
  border-radius: var(--radius-lg);
  margin-top: -20vh;
  width: 100%;
  display: block;
  overflow: hidden;
}


/* RESPONSIVO PARA SECCIÓN ABOUT */
@media (max-width: 768px) {

  .form-h-front {
    min-height: calc(100vh - 70vh);
    margin-bottom: 10vh;
  }

  h1.is--alt-text {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
  }

  .description-front {
    opacity: 0.9;
    margin-bottom: 40px;
    font-size: 12px;
  }


  .header_text-wrap {
    margin-bottom: 10px;
  }

  .container-who {
    padding: 0 1.6rem !important;
  }

  .row-who {
    flex-direction: column !important;
    gap: 30px;
    padding: 0 !important;
  }

  .col-who {
    width: 100% !important;
    text-align: center !important;
  }

  .col-who h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .col-who p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }

  .col-who ul {
    width: 100%;
    text-align: left;
    display: grid;
    padding-left: 0;
    margin-top: 1.25rem;
    gap: 0.85rem;
  }

  .col-who .btn {
    margin: 0 auto !important;
  }

  #about .col-who ul li {
    padding: 0.9rem 0.95rem;
    gap: 0.8rem;
  }

  #about .col-who ul li::before {
    flex-basis: 1.9rem;
    width: 10px;
    height: 10px;
  }

  #about .col-who ul li::after {
    top: 1.38rem;
    left: 1.62rem;
    width: 0.4rem;
    height: 0.72rem;
  }

  #about .col-who ul li p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* En el segundo bloque, ponemos la imagen arriba en móvil */
  #about .container-who:nth-of-type(2) .row-who {
    flex-direction: column-reverse !important;
  }

  #about .container-who {
    margin-bottom: 60px !important;
  }
}



.tab-panel {
  display: flex;
  gap: 15px;
  margin-bottom: 0px;
}

.tab-panel-item {
  cursor: pointer;
  padding: 10px 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px 8px 0px 0px;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-panel-item:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.tab-panel-item.active {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-weight: 500;
  width: 10rem;
}

.tab-panel-content {
  display: none;
  animation: fadeIn 0.4s ease;
  width: 100%;
}

.tab-panel-content.active {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: 0px 0px 16px 16px;
  margin-top: -1px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


.card-image-box img.img-frontpage-random {
  height: 180px;
  object-fit: cover;
}