.featured-slider {
  padding: 80px 60px;
  background: var(--bg, #f1f2f7);
  max-width: 1400px;
  margin: 0 auto;
}

.featured-header {
  text-align: center;
  margin-bottom: 32px;
}

.featured-header h2 {
  color: var(--primary, #00529C);
  font-size: 48px;
  margin: 0;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* icons use navbar .nav-icon-desktop styles for consistent sizing/colors */

/* Increase icon size specifically for section titles */
.title-with-icon .nav-icon-desktop {
  font-size: 2.8rem; /* larger for featured section title */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Make the featured section icon Abadie yellow */
.featured-header .nav-icon-desktop {
  color: #FDBF50; /* Amarillo Abadie */
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
}

.slider-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.2s ease !important;
  color: var(--primary, #00529C);
  font-size: 20px;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn-prev {
  left: 24px;
}

.slider-btn-next {
  right: 24px;
}

.slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.featured-card {
  flex: 0 0 100%;
  display: flex;
  background: linear-gradient(145deg, #ffffff 0%, #fcfbf8 100%);
  border-radius: 0;
  overflow: hidden;
  height: 540px; /* Fixed height to prevent vertical images from stretching the card */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 1;
  transform: translateX(0);
  transition: none !important;
}

/* remove animation classes to prevent keyframe usage */
.featured-card.animating-next,
.featured-card.animating-prev {
  animation: none !important;
}

/* Animations disabled for slider - keyframes intentionally removed */

.card-image {
  flex: 0 0 55%;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-card:hover .card-image img {
  transform: scale(1.06);
}

.card-info {
  flex: 1 1 45%;
  padding: 48px 80px 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.card-title {
  color: var(--primary, #00529C);
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 16px 0;
  line-height: 1.25;
  letter-spacing: -0.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  color: #0f172a;
  font-weight: 800;
  font-size: 38px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.card-city {
  color: #64748b;
  margin-bottom: 32px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.card-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #334155;
  margin-bottom: 36px;
}

.card-features .feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  color: #475569;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.spec-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.spec-chip svg {
  color: #00529C;
  font-size: 16px;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent, #FDBF50);
  color: #0F172A;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(253,191,80,0.25);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(253,191,80,0.35);
  background: #ffc966;
}

.card-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
}

.operation-type {
  background: rgba(0, 82, 156, 0.95);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 6px 16px rgba(0,82,156,0.2);
  display: inline-block;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .operation-type {
    padding: 0.4rem 0.7rem;
    font-size: 0.825rem;
  }
}

@media (max-width: 1024px) {
  .featured-slider {
    padding: 60px 40px;
  }

  .featured-header h2 {
    font-size: 42px;
  }

  .slider-container {
    max-width: 900px;
  }

  .featured-card {
    flex-direction: column;
    min-height: 500px;
  }

  .card-image {
    flex: 0 0 45%;
    height: 300px;
  }

  .card-info {
    padding: 32px 40px;
  }

  .card-title {
    font-size: 32px;
  }

  .card-price {
    font-size: 26px;
  }

  .slider-btn {
    width: 55px;
    height: 55px;
    font-size: 18px;
  }

  .slider-btn-prev {
    left: 16px;
  }

  .slider-btn-next {
    right: 16px;
  }
}

/* Media query específica para tablets (pantallas cuadradas como iPad) */
@media (max-width: 1024px) and (min-width: 769px) {
  .featured-slider {
    padding: 60px 30px;
  }

  .slider-container {
    max-width: 100%;
    width: 100%;
  }

  .featured-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 550px;
    height: auto;
    margin: 0;
    width: 100%;
  }

  .card-image {
    /* `auto` y no un porcentaje: con la tarjeta en columna, un `flex-basis` en %
       se mide contra el alto del contenedor y pelea con el `height` de abajo. */
    flex: 0 0 auto;
    height: 350px;
    width: 100%;
  }

  .card-info {
    padding: 36px 32px;
    flex: 1 1;
  }

  .card-title {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .card-price {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .card-city {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .card-features {
    gap: 12px;
    margin-bottom: 24px;
  }

  .spec-chip {
    font-size: 0.9rem;
    padding: 0.5rem 0.7rem;
  }

  .slider-btn {
    width: 52px;
    height: 52px;
    font-size: 16px;
  }

  .slider-btn-prev {
    left: 0;
  }

  .slider-btn-next {
    right: 0;
  }

  /* ───────────────────────────────────────────────────────────────────────────
     Acá convivían TRES carruseles distintos, y de a dos ya no funcionan.

     El que manda es el del JavaScript: una pista con todas las tarjetas al 100%
     que se corre con `translateX`, un ancho de wrapper por tarjeta. Es el que
     funciona por debajo de 768 y por encima de 1024.

     Encima estaba, primero, la tarjeta con `flex: 0 0 auto` y `max-width: 700px`
     —una tarjeta más angosta que el desplazamiento, así que la pista se corría
     de más—, y arriba de eso el `display: none` con `.active`, que es un
     carrusel entero hecho a mano. Con `display: none` las tarjetas no activas
     salen del flujo: el wrapper contiene una sola caja, siempre en la posición
     0. Al pasar a la tarjeta 1 el JavaScript corría el wrapper una pantalla a la
     izquierda y `.slider-container` tiene `overflow: hidden`, así que no quedaba
     nada a la vista. En la tarjeta 0 el desplazamiento es 0 y por eso esa sí se
     veía — el síntoma exacto: se ve la primera y después queda en blanco.

     El límite de 700px se conserva, pero puesto en la vista del carrusel y no en
     la tarjeta. Ahí centra sin romper la cuenta: cada tarjeta sigue midiendo
     exactamente lo que el JavaScript desplaza.
     ─────────────────────────────────────────────────────────────────────────── */
  .slider-container {
    padding: 0;
    box-sizing: border-box;
    max-width: 700px;
    margin: 0 auto;
  }

  .slider-wrapper {
    display: flex !important;
    align-items: stretch;
    width: 100%;
  }

  /* Ajustar botones para que queden flotando sobre la tarjeta */
  .slider-btn-prev {
    left: 16px;
  }

  .slider-btn-next {
    right: 16px;
  }
}

/* Mobile Optimized */
@media (max-width: 768px) {
  .featured-slider {
    padding: 40px 16px;
  }

  .featured-header h2 {
    font-size: 32px;
  }

  .slider-container {
    padding: 0 !important;
    overflow: hidden;
    max-width: 100%;
  }

  .slider-wrapper {
    display: flex !important;
    transition: transform 0.45s ease;
    will-change: transform;
    touch-action: pan-y;
    align-items: stretch;
  }

  .featured-card,
  .announcement-card {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-radius: 16px;
    padding-bottom: 0;
  }

  .card-image {
    min-height: 240px;
    height: 240px;
    flex: 0 0 auto;
  }

  .card-info {
    padding: 24px 20px !important;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .card-title {
    font-size: 24px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .card-price {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .card-city {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .card-features {
    margin-bottom: 16px;
    gap: 8px;
  }

  /* Show only the first two spec-chips to reduce vertical length */
  .card-features .spec-chip:nth-child(n+3) {
    display: none !important;
  }

  .spec-chip {
    font-size: 13px !important;
    padding: 6px 12px !important;
    margin: 0 !important;
  }

  .card-actions {
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: 0;
    width: 100%;
  }

  /* Full width button */
  .card-actions .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
  }

  /* Hide arrow buttons to encourage swipe */
  .slider-btn {
    display: none !important;
  }

  .slider-indicators {
    margin-top: 20px;
    gap: 12px;
  }
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none !important;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 82, 156, 0.8) 100%
  );
  transition: none !important;
}

.category-card:hover .category-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 82, 156, 0.6) 50%,
    rgba(253, 191, 80, 0.9) 100%
  );
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  text-align: center;
  transform: translateY(0);
  transition: none !important;
}

.category-card:hover .category-content {
  transform: translateY(-10px);
}

.category-icon {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: none !important;
}

.category-card:hover .category-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(253, 191, 80, 0.5));
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: none !important;
}

.category-card:hover .category-title {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  position: relative;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: rgba(15,23,42,0.06); /* subtle neutral */
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
  overflow: visible;
}

.indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent, #FDBF50);
  border-radius: 50%;
  transform: scale(1); /* no progress animation */
}

/* Indicator animations/transitions disabled */
.indicator.active {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #FDBF50);
  border-color: var(--accent, #FDBF50);
  box-shadow: 0 6px 18px rgba(5, 54, 92, 0.12);
  transform: scale(1.05);
}

/* improve focus/hover for accessibility */
.indicator:focus,
.indicator:hover {
  outline: none;
  box-shadow: 0 6px 14px rgba(5, 54, 92, 0.08);
  transform: translateY(-2px) scale(1.02);
}

/* paused state for indicators: animations intentionally removed */

/* Responsive Design */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 3rem;
  }

  .category-card {
    height: 300px;
  }
  
  .chooser-header {
    padding: 0 3rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLET (768–1023px)
   ===================
   La regla de `max-width: 1200px` de arriba deja 3 columnas hasta 768px. En un
   iPad vertical (768–834px) eso son tarjetas de ~238px: el nombre de la
   categoría se corta y la foto queda diminuta. Con dos, entran bien.
   ───────────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
  }

  .category-card {
    height: 280px;
  }

  .featured-slider {
    padding: 48px 24px;
  }
}

@media (max-width: 768px) {
  .category-chooser {
    padding: 60px 0;
  }

  .chooser-header {
    margin-bottom: 3rem;
    padding: 0 1.5rem;
  }

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

  .chooser-subtitle {
    font-size: 1rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .category-card {
    height: 260px;
  }

  .category-icon {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .category-chooser {
    padding: 40px 0;
  }

  .chooser-title {
    font-size: 1.8rem;
  }

  .chooser-subtitle {
    font-size: 0.95rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .category-card {
    height: 250px;
  }

  .category-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .featured-slider {
    padding: 40px 15px;
  }

  .slider-container {
    padding: 0 50px; /* Reduced padding for small mobile */
  }

  .featured-header h2 {
    font-size: 28px;
  }

  .featured-card {
    min-height: auto;
    height: auto;
    border-radius: 10px;
    padding-bottom: 12px;
  }

  .card-image {
    height: 200px;
  }

  .card-info {
    padding: 16px 14px;
  }

  .card-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .card-price {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .card-features {
    margin: 8px 0;
  }

  .spec-chip {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
    margin: 3px 3px 3px 0 !important;
  }

  .card-actions {
    margin-top: auto;
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }

  .slider-btn-prev {
    left: 10px;
  }

  .slider-btn-next {
    right: 10px;
  }
}

/* ANNOUNCEMENT CARD STYLES - Same visual structure as property cards */

.announcement-card {
  background: #E6F0FF !important; /* Azul Abadie clarito */
}

.announcement-card .card-info {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.announcement-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  min-height: 40px; /* Maintain consistent height with features */
  justify-content: center; /* Center badges horizontally */
}

.announcement-badge {
  background: linear-gradient(135deg, #00529C 0%, #003D73 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 82, 156, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Responsive badges para móvil */
@media (max-width: 768px) {
  .announcement-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .announcement-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

.announcement-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.announcement-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 156, 0.4);
  background: linear-gradient(135deg, #003D73 0%, #00264D 100%);
}

.announcement-badge:hover::before {
  left: 100%;
}

.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.link-arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.announcement-link:hover .link-arrow {
  transform: translateX(4px);
}

/* Featured badge for announcements */
.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #FDBF50, #FFA500);
  color: var(--text-dark, #1A1A1A);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(253, 191, 80, 0.3);
  z-index: 5;
}

.featured-badge .material-icons {
  font-size: 16px;
}

/* Responsive adjustments for announcements */
@media (max-width: 768px) {
  .announcement-description {
    font-size: 16px;
  }

  .announcement-badges {
    gap: 8px;
    margin: 14px 0;
  }

  .announcement-badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
  }

  .featured-badge {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Contact Section Styles */
.contact-section {
  padding: 80px 0;
  background-color: var(--color-section-bg);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(254, 213, 141, 0.3) 0%, rgba(241, 242, 247, 0.5) 100%);
  z-index: 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--color-title);
  font-weight: 700;
  margin-bottom: 1rem;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* icons use navbar .nav-icon-desktop styles for consistent sizing/colors */

/* Increase icon size specifically for section titles */
.title-with-icon .nav-icon-desktop {
  font-size: 2.6rem; /* larger icon for the Contact title */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure contact icon has the primary title color (keeps contrast) */
.contact-header .nav-icon-desktop {
  color: var(--color-title, #00529C);
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  /* Left = flexible form, Right = compact info column */
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
  align-items: start;
}

/* Contact Form */
.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 82, 156, 0.12);
  border: 2px solid rgba(253, 191, 80, 0.3);
  max-width: 600px;
  width: 100%;
}

/* Contact Info Container */
.contact-info-container {
  background: white;
  padding: 1.25rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 82, 156, 0.06);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 360px;
}

.contact-info-header {
  text-align: center;
}

.contact-info-header h3 {
  color: var(--color-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info-header p {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.75rem;
  /* More intense Abadie gold tint so it stands out better */
  background: rgba(253,191,80,0.18); /* #FDBF50 @ 12% */
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(253,191,80,0.06);
  max-width: 320px; /* Consistent max-width */
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* Ensure it takes up the available width up to max-width */
}

.info-item:hover {
  transform: none;
}

.info-item .info-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FED58D 100%);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item .info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.info-item .info-content h4 {
  color: var(--color-title);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.info-item .info-content p {
  color: var(--color-text-primary);
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Clickable links in contact info */
.info-link {
  color: var(--color-title);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-link:hover {
  text-decoration: underline;
  color: var(--color-title);
}

/* Slight visual emphasis for the right column container */
.contact-info-container {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
  border-left: 4px solid rgba(0,82,156,0.06);
  /* prevent children from forcing column to overflow */
  box-sizing: border-box;
  min-width: 0;
}

/* Ensure nested flex items don't grow beyond container */
.contact-info-list,
.info-item,
.info-item .info-content {
  min-width: 0;
  box-sizing: border-box;
}

/* Consulta Type Container */
.consulta-type-container {
  background: rgba(253, 191, 80, 0.08);
  border: 2px solid rgba(253, 191, 80, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(253, 191, 80, 0.15);
}

/* Center the 'Tipo de Consulta' label inside its container and make the text/icon slightly larger */
.consulta-type-container .form-group > label {
  justify-content: center; /* center icon + text horizontally */
  text-align: center;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-title);
  padding-bottom: 0.5rem;
}

.consulta-type-container .form-group > label svg {
  font-size: 1.25rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h3 {
  color: var(--color-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Radio Group */
.radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(253, 191, 80, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
  flex: 1 1;
  /* Sin esto, `flex: 1` no sirve de nada: el mínimo de un ítem flex es su
     `min-content`, así que las dos opciones no pueden encogerse por debajo de lo
     que mide su texto y se desbordan del recuadro en vez de achicarse. */
  min-width: 0;
}

.radio-option:hover {
  border-color: var(--color-accent);
  background: rgba(253, 191, 80, 0.05);
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option input[type="radio"]:checked + .radio-label {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FED58D 100%);
  color: white;
  border-color: var(--color-accent);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-title);
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  width: 100%;
  justify-content: center;
}

.radio-label svg {
  font-size: 1.2rem;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--color-title);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(253, 191, 80, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(253, 191, 80, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Submit Button */
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  align-self: center;
  min-width: 200px;
}

.submit-button .whatsapp-icon {
  font-size: 1.4rem;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-primary);
  opacity: 0.8;
  margin-top: 1rem;
  line-height: 1.4;
}

.consent-group {
  margin-top: 0.5rem;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.consent-checkbox input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-title);
  cursor: pointer;
}

.consent-checkbox a {
  color: var(--color-title);
  font-weight: 600;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */

/* ─────────────────────────────────────────────────────────────────────────────
   TABLET (768–1023px)
   ===================
   El desborde de "Solicitar Tasación" pasaba acá. La columna derecha quedaba
   clavada en 360px hasta 768px, así que en un iPad de 820 a la izquierda le
   sobraban 372px; adentro del recuadro del tipo de consulta eso son 230px, y los
   dos botones necesitan cerca de 400. El contenedor no tiene `overflow`, así que
   el segundo se dibujaba fuera de la caja.

   Los dos arreglos ya existían —una sola columna y los botones apilados— pero
   solo por debajo de 768px, y el iPad vertical mide 810–834.
   ───────────────────────────────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .contact-content {
    gap: 3rem;
  }

  .contact-form-container {
    padding: 2.5rem;
  }

  .contact-info-container {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 100%;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-form-container {
    padding: 2rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .contact-info-container {
    padding: 2rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .contact-info-header {
    text-align: center;
  }

  .contact-info-list {
    gap: 1rem;
  }

  .info-item {
    padding: 0.8rem 0.75rem;
    /* Revert to row layout, but allow it to be contained */
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    /* To make the items appear centered, we can add a max-width and margin auto */
    max-width: 320px; /* Adjust as needed */
    margin-left: auto;
    margin-right: auto;
    /* Use Abadie gold tint to match palette */
    background: rgba(253,191,80,0.18);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(253,191,80,0.06);
  }

  .form-header h3 {
    font-size: 1.4rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .submit-button {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 40px 0;
  }

  .contact-header {
    margin-bottom: 2.5rem;
  }

  .contact-title {
    font-size: 1.6rem;
  }

  .contact-subtitle {
    font-size: 0.9rem;
  }

  .contact-form-container {
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .contact-info-container {
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .contact-info-header {
    text-align: center;
  }

  .contact-info-header h3 {
    font-size: 1.3rem;
  }

  .contact-info-list {
    gap: 1rem;
  }

  .info-item {
    flex-direction: row;
    gap: 0.75rem;
    padding: 1rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .info-item .info-content h4 {
    font-size: 1rem;
  }

  .info-item .info-content p {
    font-size: 0.85rem;
  }

  .form-header {
    margin-bottom: 2rem;
  }

  .form-header h3 {
    font-size: 1.2rem;
  }

  .form-header p {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

.header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-title);
  contain: layout style;
  will-change: transform;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-image: url('/header_abadie.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
  content-visibility: auto;
  /* Filtros pesados solo en desktop */
}

/* Filtros pesados solo en desktop para mejor rendimiento en móviles */
@media (min-width: 769px) {
  .header-background {
    filter: blur(4px) brightness(0.9) contrast(0.9);
  }
}

/* En móviles usar imagen optimizada más liviana */
@media (max-width: 768px) {
  .header-background {
    background-image: url('/images/header-mobile.webp');
    filter: brightness(0.7);
    background-attachment: scroll;
    transform: translateZ(0);
    background-size: cover;
  }
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(0, 0, 0, 0.2) 70%,
    rgba(0, 82, 156, 0.3) 100%
  );
  z-index: 2;
}

/* backdrop-filter solo en desktop - muy costoso en móviles */
@media (min-width: 769px) {
  .header-overlay {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }
}

.header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 100px 0 80px;
}

.header-text {
  margin-bottom: 2rem;
}

/* Contenedor principal del título */
.title-container {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

/* Transiciones más rápidas en móvil */
@media (min-width: 769px) {
  .title-container {
    transition: all 1s ease;
  }
}

@media (max-width: 768px) {
  .title-container {
    transition: all 0.5s ease;
  }
}

.title-container.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.search-container {
  opacity: 0;
  transform: translateY(40px);
}

@media (min-width: 769px) {
  .search-container {
    transition: all 1s ease 0.3s;
  }
}

@media (max-width: 768px) {
  .search-container {
    transition: all 0.5s ease 0.2s;
  }
}

.search-container.slide-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* Título principal - diseño limpio y elegante */
.main-title {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Animación solo en desktop */
@media (min-width: 769px) {
  .main-title {
    animation: slideInScale 1s ease-out 0.3s both;
  }
}

/* El número 40 destacado en dorado */
.title-number {
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--color-accent);
  display: inline-block;
  margin-right: 0.3rem;
  position: relative;
  top: 0.1em;
}

/* Sombras solo en desktop */
@media (min-width: 769px) {
  .title-number {
    text-shadow: 
      0 3px 6px rgba(0, 0, 0, 0.4),
      0 6px 16px rgba(253, 191, 80, 0.3);
  }
}

@media (max-width: 768px) {
  .title-number {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* "años de" en blanco limpio */
.title-years {
  color: white;
  font-weight: 700;
  display: inline-block;
  margin-right: 0.5rem;
}

/* Sombras solo en desktop */
@media (min-width: 769px) {
  .title-years {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 768px) {
  .title-years {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Palabra del typewriter en dorado */
.title-word {
  color: var(--color-accent);
  font-weight: 800;
  display: inline-block;
  min-width: 320px;
  text-align: left;
  position: relative;
}

/* Sombras solo en desktop */
@media (min-width: 769px) {
  .title-word {
    text-shadow: 
      0 3px 8px rgba(0, 0, 0, 0.4),
      0 0 25px rgba(253, 191, 80, 0.4);
  }
}

@media (max-width: 768px) {
  .title-word {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
}

/* Icono SVG al final del typewriter */
.title-icon {
  width: 72px;
  height: 72px;
  display: inline-block;
  margin-left: 1.2rem;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
  opacity: 1;
  transition: transform 0.3s ease;
}

/* Filtros pesados solo en desktop */
@media (min-width: 769px) {
  .title-icon {
    filter: 
      brightness(0) 
      saturate(100%) 
      invert(23%) 
      sepia(91%) 
      saturate(1844%) 
      hue-rotate(188deg) 
      brightness(91%) 
      contrast(101%)
      drop-shadow(0 4px 12px #fed58d9d)
      drop-shadow(0 0 20px #fed58d8a);
    animation: floatIconElegant 4s ease-in-out infinite;
  }
  
  .title-icon:hover {
    transform: scale(1.1);
    filter: 
      brightness(0) 
      saturate(100%) 
      invert(23%) 
      sepia(91%) 
      saturate(1844%) 
      hue-rotate(188deg) 
      brightness(91%) 
      contrast(101%)
      drop-shadow(0 6px 16px #fed58d9a)
      drop-shadow(0 0 30px #fed58da4);
  }
}

/* En móviles: filtro simple sin animación */
@media (max-width: 768px) {
  .title-icon {
    filter: 
      brightness(0) 
      saturate(100%) 
      invert(23%) 
      sepia(91%) 
      saturate(1844%) 
      hue-rotate(188deg) 
      brightness(91%) 
      contrast(101%);
  }
}

/* Espaciado específico para el SearchHeader */
.header-text .search-header {
  margin-bottom: 2rem;
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(253, 191, 80, 0.5);
}

/* Animación de cursor solo en desktop */
@media (min-width: 769px) {
  .cursor {
    animation: blink 1.2s ease-in-out infinite;
  }
}

@keyframes blink {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.title-accent {
  color: var(--color-accent);
  display: inline-block;
}

.header-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

@media (min-width: 769px) {
  .header-stats {
    transition: all 1s ease 0.5s;
  }
}

@media (max-width: 768px) {
  .header-stats {
    transition: all 0.5s ease 0.3s;
  }
}

.header-stats.fade-in-delayed {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.35);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  opacity: 0;
}

/* Animación solo en desktop */
@media (min-width: 769px) {
  .stat-item {
    animation: scaleIn 0.6s ease forwards;
  }
}

/* En móvil aparecer directamente sin animación */
@media (max-width: 768px) {
  .stat-item {
    opacity: 1;
  }
}

/* backdrop-filter solo en desktop */
@media (min-width: 769px) {
  .stat-item {
    -webkit-backdrop-filter: blur(15px);
            backdrop-filter: blur(15px);
  }
}

.stat-item:nth-child(1) {
  animation-delay: 0.6s;
}

.stat-item:nth-child(2) {
  animation-delay: 0.7s;
}

.stat-item:nth-child(3) {
  animation-delay: 0.8s;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* Solo cambiar background en desktop */
@media (min-width: 769px) {
  .stat-item:hover {
    background: rgba(255, 255, 255, 0.45);
  }
}

.stat-icon {
  font-size: 2rem;
  color: var(--color-accent);
}

.stat-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px);
}

@media (min-width: 769px) {
  .header-actions {
    transition: all 1s ease 0.7s;
  }
}

@media (max-width: 768px) {
  .header-actions {
    transition: all 0.5s ease 0.4s;
  }
}

.header-actions.slide-in-up-delayed {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary:hover {
  background-color: #E6AC47;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 191, 80, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--color-text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (min-width: 1200px) {
  .header-background {
    background-attachment: fixed;
  }
  
  .header-overlay {
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
  }
}

@media (max-width: 1024px) {
  .header-title {
    font-size: 3rem;
  }
  
  .header-subtitle {
    font-size: 1.2rem;
  }
  
  .header-stats {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-background {
    background-position: center center;
    background-attachment: scroll;
    /* Simplificar para móviles */
    transform: translateZ(0);
  }
  
  .header-content {
    padding: 100px 0 60px;
  }
  
  .header-title {
    font-size: 2.5rem;
  }
  
  .typewriter-text {
    display: block;
    margin: 0.5rem 0;
  }
  
  .header-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .header-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  .stat-item {
    width: 100%;
    max-width: 280px;
    /* Deshabilitar hover en móvil */
    pointer-events: none;
  }
  
  .header-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 1024px) {
  .main-title {
    font-size: 3.8rem;
  }
  
  .title-number {
    font-size: 4.8rem;
  }
  
  .title-word {
    min-width: 280px;
  }
  
  .title-icon {
    width: 64px;
    height: 64px;
    margin-left: 1rem;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 3.2rem;
  }
  
  .title-number {
    font-size: 4rem;
  }
  
  .title-word {
    min-width: 240px;
  }
  
  .title-icon {
    width: 54px;
    height: 54px;
    margin-left: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header-background {
    background-position: center top;
  }
  
  .header-overlay {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 82, 156, 0.5) 100%
    );
  }
  
  .main-title {
    font-size: 2.5rem;
  }
  
  .title-number {
    font-size: 3.2rem;
  }
  
  .title-years {
    display: block;
    margin-bottom: 0.3rem;
  }
  
  .title-word {
    min-width: 200px;
    text-align: center;
  }
  
  .cursor {
    width: 2px;
  }
  
  .header-subtitle {
    font-size: 1rem;
  }
  
  .stat-item {
    padding: 0.8rem 1rem;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .stat-icon {
    font-size: 1.5rem;
  }
}

/* Animaciones para el nuevo diseño */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) rotate(2deg);
  }
  66% {
    transform: translateY(4px) rotate(-1deg);
  }
}

@keyframes floatIconElegant {
  0%, 100% {
    transform: translateY(0px);
    filter: 
      brightness(0) 
      saturate(100%) 
      invert(23%) 
      sepia(91%) 
      saturate(1844%) 
      hue-rotate(188deg) 
      brightness(91%) 
      contrast(101%)
      drop-shadow(0 4px 12px #FED58D)
      drop-shadow(0 0 20px #FED58D);
  }
  50% {
    transform: translateY(-6px);
    filter: 
      brightness(0) 
      saturate(100%) 
      invert(23%) 
      sepia(91%) 
      saturate(1844%) 
      hue-rotate(188deg) 
      brightness(91%) 
      contrast(101%)
      drop-shadow(0 6px 16px #FED58D)
      drop-shadow(0 0 30px #FED58D);
  }
}

.search-header {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 850px;
  margin: 0 auto;
}

/* backdrop-filter solo en desktop - muy costoso en móviles */
@media (min-width: 769px) {
  .search-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* En móviles usar fondo sólido */
@media (max-width: 768px) {
  .search-header {
    background: rgba(255, 255, 255, 0.95);
  }
}

.search-loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-title);
  font-weight: 500;
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  background: rgba(0, 82, 156, 0.08);
  border-radius: 6px;
  padding: 3px;
}

.search-tab {
  flex: 1 1;
  padding: 0.65rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.search-tab:hover {
  background: rgba(0, 82, 156, 0.1);
  color: var(--color-title);
}

.search-tab.active {
  background: var(--color-title);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 82, 156, 0.3);
}

.search-form {
  width: 100%;
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.25rem;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-title);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.select-wrapper {
  position: relative;
}

.search-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.875rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  font-family: inherit;
}

.search-select:focus {
  outline: none;
  border-color: var(--color-title);
  box-shadow: 0 0 0 3px rgba(0, 82, 156, 0.1);
}

.search-select option[value=""] {
  color: #9CA3AF;
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-primary);
  font-size: 1.2rem;
  pointer-events: none;
}

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: center;
}

.advanced-search-btn {
  background: none;
  border: none;
  color: var(--color-title);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  font-family: inherit;
}

.advanced-search-btn:hover {
  color: var(--color-accent);
  transform: translateY(-1px);
}

.search-icon {
  font-size: 1rem;
}

.search-btn {
  min-width: 140px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Ensure Button icon in search context is left of the text and aligned */
.search-btn .btn-icon-left {
  margin-right: 0.6rem;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
}

.search-btn .btn-content {
  display: inline-flex;
  align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-header {
    padding: 1rem;
    margin: 0 1rem;
    border-radius: 10px;
  }
  
  .search-fields {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  
  .search-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .search-btn {
    width: 100%;
  }
  
  .search-tabs {
    flex-wrap: wrap;
    gap: 2px;
  }
  
  .search-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .search-header {
    padding: 0.875rem;
    border-radius: 12px;
  }
  
  .search-tabs {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 4px;
  }
  
  .search-tab {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .search-select {
    padding: 0.75rem 2.25rem 0.75rem 0.875rem;
    font-size: 0.85rem;
  }
  
  .search-field label {
    font-size: 0.75rem;
  }
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--color-background);
  border-radius: 12px;
  width: calc(100% - 40px);
  /* Allow modal to expand for wide content but cap to viewport */
  max-width: min(1200px, calc(100% - 40px));
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal header */
.modal-header {
  background: linear-gradient(135deg, var(--color-title) 0%, #003f7f 100%);
  color: #F1F2F7 !important;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  min-height: 60px;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #F1F2F7 !important;
}

.modal-close {
  background: transparent;
  border: none;
  color: #F1F2F7;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(241, 242, 247, 0.2);
  transform: scale(1.1);
}

/* Modal body */
.modal-body {
  flex: 1 1;
  overflow-y: auto;
  /* allow horizontal growth/scroll when needed instead of clipping content */
  overflow-x: auto;
  padding: 2rem;
  background: var(--color-background);
}

/* Form sections */
.form-section {
  margin-bottom: 2.5rem;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h3 {
  color: var(--color-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* Form rows and fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Select styling */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--color-title);
  box-shadow: 0 0 0 3px rgba(0, 82, 156, 0.1);
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.select-wrapper:hover .select-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Text input styling */
.form-field input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-field input[type="text"]:focus {
  outline: none;
  border-color: var(--color-title);
  box-shadow: 0 0 0 3px rgba(0, 82, 156, 0.1);
}

.form-field input[type="text"]::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* Checkbox grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.checkbox-item:hover {
  background: rgba(0, 82, 156, 0.05);
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
  background: white;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--color-title);
  border-color: var(--color-title);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom + span {
  color: var(--color-title);
  font-weight: 600;
}

/* Range inputs */
.range-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-inputs input {
  flex: 1 1;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.range-inputs input:focus {
  outline: none;
  border-color: var(--color-title);
  box-shadow: 0 0 0 3px rgba(0, 82, 156, 0.1);
}

.range-inputs span {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Modal footer */
.modal-footer {
  background: var(--color-background);
  padding: 1.5rem 2rem;
  border-top: 1px solid #e1e5e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Responsive design */
@media (max-width: 1024px) {
  .modal-content {
    max-width: 95vw;
    width: 95vw;
  }

  .form-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .checkbox-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-content {
    max-height: none;
    min-height: calc(100vh - 20px);
    border-radius: 8px;
    margin: 0;
    width: calc(100vw - 20px);
    max-width: none;
  }

  .modal-header {
    padding: 0.8rem 1.2rem;
    border-radius: 8px 8px 0 0;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .modal-footer {
    padding: 1rem 1.2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .modal-footer > * {
    width: 100%;
  }

  .range-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .range-inputs span {
    text-align: center;
    margin: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-item {
    padding: 0.75rem 0.5rem;
  }
}

/* Prevenir scroll del body cuando modal está abierto */
body.modal-open {
  overflow: hidden !important;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

/* Prevent horizontal overflow inside the modal */
.modal-content,
.modal-body,
.form-row,
.form-field,
.checkbox-grid,
.range-inputs {
  min-width: 0; /* allow children to shrink within flex/grid containers */
  box-sizing: border-box;
}

.modal-body {
  overflow-x: hidden; /* explicitly hide horizontal overflow */
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #e6a640;
}

.info-abadie {
  padding: 60px 0;
  background-color: white;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.section-header.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-section-bg);
  color: var(--color-title);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-badge svg {
  font-size: 1rem;
  color: var(--color-accent);
}

.info-title {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--color-title);
  font-weight: 700;
}

.title-accent {
  color: var(--color-accent);
}

.info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Timeline Section */
.timeline-section {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.timeline-section.slide-in-left {
  opacity: 1;
  transform: translateX(0);
}

.timeline {
  position: relative;
  padding: 0 0 2rem 0;
  margin-bottom: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-title) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

.timeline-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: white;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-title);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(253, 191, 80, 0.3);
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

/* Subtle gold background for the Hoy card */
.timeline-content.today-card {
  background: linear-gradient(180deg, rgba(253,191,80,0.14) 0%, rgba(254,213,141,0.08) 100%);
  border: 1px solid rgba(253,191,80,0.22);
  box-shadow: 0 12px 36px rgba(253,191,80,0.12), 0 6px 22px rgba(0,0,0,0.08);
}

.timeline-content.today-card .timeline-icon {
  background: linear-gradient(135deg, #FDBF50 0%, #F7C65A 60%, #FED58D 100%);
  color: white;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-icon {
  background-color: var(--color-section-bg);
  color: var(--color-title);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
}

.timeline-content h3 {
  color: var(--color-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--color-text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Highlighted paragraph inside the Hoy card */

.timeline-content .highlight-paragraph {
  color: var(--color-title);
  font-weight: 600;
  background: rgba(253, 191, 80, 0.12); /* stronger gold tint */
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  display: inline-block;
  margin-top: 0.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .timeline-content .highlight-paragraph {
    display: block;
    padding: 0.5rem 0.75rem;
  }
}

/* Carousel images under the "Hoy" card */
.timeline-images {
  margin-top: 1rem;
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 2px solid rgba(0,0,0,0.03);
}

.timeline-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.02);
}

.timeline-image.active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1024px) {
  .timeline-images { height: 200px; }
}

@media (max-width: 480px) {
  .timeline-images { height: 160px; }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.feature-card {
  background: linear-gradient(135deg, white 0%, #FEFBF5 100%);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 10px 35px rgba(0, 82, 156, 0.12),
    0 4px 15px rgba(253, 191, 80, 0.08);
  border: 2px solid rgba(253, 191, 80, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-section-bg) 0%, rgba(253, 191, 80, 0.15) 100%);
  opacity: 0.3;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.6;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 16px 50px rgba(0, 82, 156, 0.2),
    0 8px 25px rgba(253, 191, 80, 0.15);
  border-color: var(--color-accent);
}

.feature-card .feature-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FED58D 100%);
  color: white;
  width: 75px;
  height: 75px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 6px 20px rgba(253, 191, 80, 0.4),
    0 2px 8px rgba(0, 82, 156, 0.2);
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #FDBF50 0%, var(--color-accent) 100%);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 
    0 10px 30px rgba(253, 191, 80, 0.6),
    0 4px 15px rgba(0, 82, 156, 0.3);
}

.feature-card h3 {
  color: var(--color-title);
  font-size: 1.35rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-card:hover h3 {
  color: var(--color-title);
  transform: scale(1.05);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Location Section */
.info-location {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

.info-location.slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

.map-container {
  width: 100%;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 82, 156, 0.15),
    0 4px 20px rgba(253, 191, 80, 0.1);
  border: 3px solid var(--color-accent);
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  animation: scaleIn 0.6s ease forwards;
  opacity: 0;
  animation-delay: 0.5s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-container:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 15px 50px rgba(0, 82, 156, 0.2),
    0 6px 25px rgba(253, 191, 80, 0.15);
}

.location-header {
  background: linear-gradient(135deg, white 0%, #FEFBF5 100%);
  padding: 2rem;
  text-align: center;
  border-bottom: 2px solid rgba(253, 191, 80, 0.3);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: 0.7s;
  z-index: 1;
}

.location-header .location-icon {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FED58D 100%);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  box-shadow: 
    0 6px 20px rgba(253, 191, 80, 0.4),
    0 2px 8px rgba(0, 82, 156, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-container:hover .location-icon {
  transform: scale(1.1) rotate(5deg);
}

.location-header h3 {
  color: var(--color-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.location-header p {
  color: var(--color-text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.map-container iframe {
  flex: 1 1;
  min-height: 0;
}


/* CTA Section */
.info-cta {
  background: linear-gradient(135deg, var(--color-title) 0%, #0066CC 100%);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.info-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.info-cta h3 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.info-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .info-content {
    gap: 3rem;
  }
  
  .info-title {
    font-size: 2.2rem;
  }

  .features-grid {
    gap: 1.5rem;
  }

  .feature-card .feature-icon {
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }
  
  .timeline-item {
    padding-left: 70px;
  }
  
  .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 0.7rem;
  }
  
  .timeline::before {
    left: 25px;
  }
}

@media (max-width: 768px) {
  .info-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .info-title {
    font-size: 2rem;
  }
  
  .timeline-section,
  .info-location {
    transform: none;
  }
  
  .timeline-section.slide-in-left,
  .info-location.slide-in-right {
    opacity: 1;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .feature-card .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }

  .feature-card h3 {
    font-size: 1.2rem;
  }
  
  .map-container {
    height: 500px;
  }

  .location-header {
    padding: 1.5rem;
  }

  .location-header h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .info-abadie {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .info-title {
    font-size: 1.6rem;
  }
  
  .timeline {
    padding: 1rem 0;
  }
  
  .timeline-item {
    padding-left: 60px;
    margin-bottom: 2rem;
  }
  
  .timeline-year {
    width: 45px;
    height: 45px;
    font-size: 0.65rem;
  }
  
  .timeline::before {
    left: 22px;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .info-cta {
    padding: 1.5rem;
  }
  
  .info-cta h3 {
    font-size: 1.2rem;
  }

  .map-container {
    height: 450px;
    border-width: 2px;
  }

  .location-header {
    padding: 1.25rem;
  }

  .location-header .location-icon {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .location-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }

  .location-header p {
    font-size: 0.85rem;
  }
}

/* ================================================
   RENTAL STORIES — Sección de Flyers de Alquileres
   Paleta Abadie:
     Azul:   #00529C
     Dorado: #FDBF50
     Fondo:  #F1F2F7
     Texto:  #1A1A1A
   ================================================ */

/* ── Sección wrapper ── */
.rental-stories {
  padding: 72px 0; /* Sin padding lateral para que el slider toque los bordes */
  background: #ffffff;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.rental-stories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00529C 0%, #FDBF50 50%, #00529C 100%);
}

/* ── Header de sección ── */
.stories-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 60px;
}

.stories-header h2 {
  color: #00529C;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.stories-header-icon {
  font-size: 2.4rem;
  color: #FDBF50;
  line-height: 1;
}

.stories-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* ── Contenedor de la tira ── */
.stories-strip-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 60px; /* Espacio para las flechas en desktop */
}

/* ── Tira de thumbnails ── */
.stories-strip {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: #FDBF50 #f0f0f0;
}

.stories-strip::-webkit-scrollbar {
  height: 6px;
}
.stories-strip::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.stories-strip::-webkit-scrollbar-thumb {
  background: #FDBF50;
  border-radius: 3px;
}

/* ── Thumbnail individual ── */
.story-thumb {
  flex: 0 0 280px;
  scroll-snap-align: start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  text-align: center;
}

.story-thumb-image-wrap {
  width: 280px;
  height: 498px; /* 280 × (16/9) ≈ 498px — aspecto 9:16 */
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 82, 156, 0.12);
}

.story-thumb:hover .story-thumb-image-wrap,
.story-thumb:focus .story-thumb-image-wrap {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 82, 156, 0.22);
  border-color: #FDBF50;
}

.story-thumb-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.story-thumb:hover .story-thumb-image-wrap img {
  transform: scale(1.04);
}

/* Overlay sutil al hacer hover */
.story-thumb-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 82, 156, 0) 60%,
    rgba(0, 82, 156, 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  border-radius: 13px;
}

.story-thumb:hover .story-thumb-image-wrap::after {
  opacity: 1;
}

/* Badge "DESTACADO" en el thumbnail */
.story-thumb-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #FDBF50, #FFA500);
  color: #1A1A1A;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(253, 191, 80, 0.5);
}

/* Ícono play / tap encima del thumbnail */
.story-thumb-tap-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 2;
}

.story-thumb-tap-hint svg {
  width: 16px;
  height: 16px;
  fill: #00529C;
}

.story-thumb:hover .story-thumb-tap-hint {
  opacity: 1;
}

/* Título debajo del thumbnail */
.story-thumb-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
  max-width: 280px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Flechas de navegación ── */
.stories-nav-btn {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 18px)); /* compensar el título */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e0e0e0;
  color: #00529C;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.stories-nav-btn:hover {
  background: #00529C;
  border-color: #00529C;
  color: white;
  box-shadow: 0 6px 18px rgba(0, 82, 156, 0.3);
}

.stories-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stories-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stories-nav-prev { left: 10px; }
.stories-nav-next { right: 10px; }

@media (min-width: 900px) {
  .stories-nav-btn {
    width: 44px;
    height: 44px;
  }
  .stories-nav-prev { left: 5px; }
  .stories-nav-next { right: 5px; }
}

/* ── Viewer fullscreen ── */
.story-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: storyViewerFadeIn 0.25s ease forwards;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@keyframes storyViewerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.story-viewer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  width: 100%;
  max-width: 480px;
  padding: 60px 16px 90px;
  gap: 0;
}

/* Imagen del flyer vertical */
.story-viewer-image-wrap {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.story-viewer-image-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: storyImageIn 0.3s ease forwards;
  display: block;
}

@keyframes storyImageIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Barra superior del viewer ── */
.story-viewer-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  z-index: 10;
}

.story-viewer-counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
}

.story-viewer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.story-viewer-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.story-viewer-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── Barra inferior del viewer ── */
.story-viewer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

/* Indicadores de puntos */
.story-viewer-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.story-viewer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.story-viewer-dot.active {
  width: 22px;
  border-radius: 4px;
  background: #FDBF50;
}

/* Botón CTA (WhatsApp / URL) */
.story-viewer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366; /* Verde WhatsApp por defecto */
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  letter-spacing: 0.3px;
}

.story-viewer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  text-decoration: none;
  color: white;
}

.story-viewer-cta.generic-cta {
  background: #FDBF50;
  color: #1A1A1A;
  box-shadow: 0 4px 16px rgba(253, 191, 80, 0.45);
}

.story-viewer-cta.generic-cta:hover {
  box-shadow: 0 8px 24px rgba(253, 191, 80, 0.6);
}

.story-viewer-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Flechas laterales en el viewer ── */
.story-viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.18s ease;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.story-viewer-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.story-viewer-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.story-viewer-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-viewer-arrow-prev { left: 12px; }
.story-viewer-arrow-next { right: 12px; }

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */

@media (max-width: 900px) {
  .rental-stories {
    padding: 56px 0;
  }

  .stories-header {
    padding: 0 30px;
  }

  .stories-header h2 {
    font-size: 1.9rem;
  }

  .stories-strip-container {
    padding: 0;
  }
  .stories-strip {
    padding: 12px 20px 20px;
  }

  .story-thumb {
    flex: 0 0 220px;
  }

  .story-thumb-image-wrap {
    width: 220px;
    height: 391px;
  }
  
  .story-thumb-title {
    font-size: 0.85rem;
    max-width: 220px;
  }
}

@media (max-width: 600px) {
  .rental-stories {
    padding: 48px 0;
  }

  .stories-header {
    padding: 0 16px;
  }

  .stories-header h2 {
    font-size: 1.6rem;
  }

  .stories-strip {
    padding: 12px 16px 20px;
  }
  
  .stories-nav-prev { left: 8px; }
  .stories-nav-next { right: 8px; }

  .story-thumb {
    flex: 0 0 180px;
  }

  .story-thumb-image-wrap {
    width: 180px;
    height: 320px;
  }
  
  .story-thumb-title {
    font-size: 0.8rem;
    max-width: 180px;
  }

  /* En mobile el viewer ocupa toda la pantalla */
  .story-viewer-inner {
    max-width: 100%;
    padding: 56px 8px 80px;
  }
}

