/* ========================================
   ICAC Homepage - Pixel Perfect Figma
   ======================================== */

:root {
  --hp-primary: #b91c1c;
  --hp-primary-hover: #991b1b;
  --hp-primary-fg: #fafafa;
  --hp-secondary: #172554;
  --hp-secondary-hover: #0f172a;
  --hp-bg: #ffffff;
  --hp-fg: #0a0a0a;
  --hp-muted: #f5f5f5;
  --hp-muted-fg: #525252;
  --hp-border: #e5e5e5;
  --hp-card: #ffffff;
  --hp-slate-50: #f8fafc;
  --hp-slate-100: #f1f5f9;
  --hp-gray-50: #f9fafb;
  --hp-gray-100: #f3f4f6;
  --hp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================
   LAYOUT
   ================================================ */
.hp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.main-content--front { padding: 0; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--hp-font);
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  border: none;
}
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--hp-primary);
  color: var(--hp-primary-fg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn--primary:hover { background: var(--hp-primary-hover); }

.btn--outline {
  background: var(--hp-bg);
  color: var(--hp-fg);
  border: 1px solid var(--hp-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn--outline:hover { background: var(--hp-muted); }

.btn--outline-sm {
  background: var(--hp-bg);
  color: var(--hp-fg);
  border: 1px solid var(--hp-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 0 12px;
}
.btn--outline-sm:hover { background: var(--hp-muted); }

.btn--full { width: 100%; justify-content: center; }

.btn--nav-dark {
  background: var(--hp-secondary);
  color: white;
  width: 36px; height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btn--nav-dark:hover { background: var(--hp-secondary-hover); }

/* ================================================
   SECTION HEADER
   ================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}
.section-header__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.section-header__label {
  font-size: 16px;
  font-weight: 400;
  color: var(--hp-primary);
  line-height: 24px;
  font-family: var(--hp-font);
}
.section-header__heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--hp-fg);
  line-height: 40px;
  margin: 0;
  font-family: var(--hp-font);
}

/* ================================================
   SECTION 1: HERO
   ================================================ */
.homepage-hero { overflow: hidden; }

.homepage-hero__container {
  display: flex;
  max-width: 1536px;
  margin: 0 auto;
}

.homepage-hero__left,
.homepage-hero__right {
  position: relative;
  width: 50%;
  min-height: 578px;
  overflow: hidden;
}

.homepage-hero__left { background: var(--hp-slate-50); }

.homepage-hero__bg-shape {
  position: absolute;
  inset: 0;
  background: var(--hp-slate-50);
}

.homepage-hero__slides-content {
  position: relative;
  z-index: 2;
  min-height: 578px;
}

.homepage-hero__content {
  position: absolute;
  top: 50%;
  left: clamp(40px, 8.2vw, 127px);
  width: min(522px, calc(100% - clamp(60px, 12vw, 160px)));
  min-height: 268px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(60px, -50%, 0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1), visibility 700ms ease;
  z-index: 2;
}

.homepage-hero__content.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0);
}

.homepage-hero__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.homepage-hero__title {
  font-size: clamp(36px, 3.9vw, 60px);
  font-weight: 700;
  color: var(--hp-fg);
  line-height: 1.05;
  margin: 0;
  font-family: var(--hp-font);
  word-break: break-word;
}
.homepage-hero__title span { display: block; }

.homepage-hero__subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--hp-fg);
  line-height: 28px;
  margin: 0;
  font-family: var(--hp-font);
}

.homepage-hero__slashes {
  position: absolute;
  z-index: 1;
  width: 234px;
  height: 178px;
  pointer-events: none;
}

.homepage-hero__slashes img {
  display: block;
  width: 100%;
  height: 100%;
}

.homepage-hero__slashes--top {
  top: -120px;
  left: 0;
}

.homepage-hero__slashes--bottom {
  right: clamp(0px, 12vw, 140px);
  left: auto;
  bottom: -136px;
  top: auto;
}

.homepage-hero__right { background: #d9d9d9; }

.homepage-hero__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), visibility 900ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(40px);
}

.homepage-hero__media.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.homepage-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pagination */
.homepage-hero__pagination {
  position: absolute;
  z-index: 3;
  left: clamp(40px, 8.2vw, 127px);
  bottom: 42px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--hp-fg);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--hp-font);
  cursor: pointer;
  transition: all 150ms ease;
}
.pagination-btn svg { flex-shrink: 0; }
.pagination-btn--prev,
.pagination-btn--next { width: auto; padding: 0 10px; }
.pagination-btn--active {
  background: var(--hp-gray-100);
  color: var(--hp-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.pagination-btn:hover:not(.pagination-btn--active) { background: var(--hp-gray-100); }

/* ================================================
   SECTION 2: AVISOS Y COMUNICACIONES
   ================================================ */
.homepage-avisos { padding: 64px 0; }

.homepage-alert__messages-wrapper {
  position: relative;
  min-height: 44px; /* Ensure space for at least one line */
}

/* Alert */
.homepage-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}
.homepage-alert__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.homepage-alert__label img { display: block; width: 20px; height: 20px; }
.homepage-alert__label span {
  font-size: 20px;
  font-weight: 600;
  color: var(--hp-fg);
  letter-spacing: -0.4px;
  line-height: 28px;
  font-family: var(--hp-font);
}
.homepage-alert__message {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: var(--hp-muted);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 12px;
  /* Animation */
  transition: opacity 400ms ease, transform 400ms ease;
  opacity: 0;
  transform: translateY(10px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  visibility: hidden;
}

.homepage-alert__message.is-active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  position: relative; /* Re-take space when active */
}
.homepage-alert__message-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.homepage-alert__date {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.homepage-alert__date img { display: block; width: 16px; height: 16px; }
.homepage-alert__date span {
  font-size: 12px;
  color: var(--hp-muted-fg);
  line-height: 16px;
  font-family: var(--hp-font);
}
.homepage-alert__message-content p {
  font-size: 14px;
  color: var(--hp-fg);
  line-height: 20px;
  margin: 0;
  font-family: var(--hp-font);
}
.homepage-alert__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Blog Section */
.homepage-blog {
  display: flex;
  gap: 20px;
}
.homepage-blog__featured {
  width: 638px;
  flex-shrink: 0;
}
.blog-card-featured {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 850px;
}
.blog-card-featured img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.blog-card-featured__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: var(--hp-primary-fg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card-featured__meta,
.blog-card-small__meta {
  display: flex;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
  white-space: nowrap;
  font-family: var(--hp-font);
}
.blog-card-featured__overlay h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  font-family: var(--hp-font);
}
.blog-card-featured__overlay p {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--hp-font);
}
.homepage-blog__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-card-small {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-card-small img {
  width: 100%;
  aspect-ratio: 240 / 180;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.blog-card-small__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card-small__meta { color: var(--hp-muted-fg); }
.blog-card-small__content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 24px;
  margin: 0;
  font-family: var(--hp-font);
}
.blog-card-small__content p {
  font-size: 14px;
  color: var(--hp-muted-fg);
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--hp-font);
}

/* ================================================
   SECTION 3: CONSULTAS
   ================================================ */
.homepage-consultas {
  padding: 64px 0;
}

.homepage-consultas__header {
  margin-bottom: 24px;
}

.homepage-consultas__title-wrap {
  width: 100%;
  max-width: 446px;
}

.homepage-consultas__cta img,
.consulta-card__action img {
  display: block;
  width: 16px;
  height: 16px;
}

.homepage-consultas__cta img,
.consulta-card__action--secondary img {
  filter: none;
}

.consulta-card__action--primary img {
  filter: brightness(0) invert(1);
}

.homepage-consultas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.consulta-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--hp-card);
}

.consulta-card__top {
  position: relative;
  min-height: 300px;
  background: var(--hp-gray-50);
  overflow: hidden;
}

.consulta-card__content {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.consulta-card__icon-wrapper {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: var(--hp-primary);
}

.consulta-card__icon-wrapper svg {
  width: 48px;
  height: 48px;
  display: block;
}

.consulta-card__icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

.consulta-card__title {
  max-width: 352px;
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  color: var(--hp-fg);
  line-height: 36px;
  font-family: var(--hp-font);
}

.consulta-card__visual-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  height: 2px;
}

.consulta-card__visual-line {
  position: absolute;
  height: 2px;
}

.consulta-card__visual-line--left {
  left: 0;
  width: 194px;
  background: var(--hp-fg);
}

.consulta-card__visual-line--right {
  right: 0;
  width: 70px;
  background: var(--hp-primary);
}

.consulta-card__visual-bars {
  position: absolute;
  right: 86px;
  bottom: 32px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  height: 50px;
}

.consulta-card__visual-bars span {
  display: block;
  width: 0;
  height: 50px;
  border-right: 2px solid var(--hp-primary);
  transform: skewX(-20deg);
}

.consulta-card__bottom {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consulta-card__info {
  display: flex;
  flex-direction: column;
}

.consulta-card__subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 24px;
  font-family: var(--hp-font);
}

.consulta-card__desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--hp-muted-fg);
  line-height: 24px;
  font-family: var(--hp-font);
}

.consulta-card__actions {
  display: flex;
  gap: 20px;
  width: 100%;
}

.consulta-card__action {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
}

@media (max-width: 1100px) {
  .homepage-consultas__grid {
    grid-template-columns: 1fr;
  }

  .consulta-card__title {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .consulta-card__actions {
    flex-direction: row;
    gap: 12px;
  }

  .consulta-card__visual-bars {
    right: 24px;
  }

  .consulta-card__visual-line--left {
    width: 40%;
  }

  .consulta-card__visual-line--right {
    width: 18%;
  }
}

/* ================================================
   SECTION 4: SEDE ELECTRONICA
   ================================================ */
.homepage-sede {
  background: var(--hp-slate-100);
  padding: 64px 0;
}
.homepage-sede__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.sede-card {
  background: var(--hp-card);
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.sede-card__content { display: flex; flex-direction: column; gap: 6px; }
.sede-card__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 28px;
  margin: 0;
  font-family: var(--hp-font);
}
.sede-card__desc,
.sede-card__desc p {
  font-size: 14px;
  font-weight: 400;
  color: var(--hp-muted-fg);
  line-height: 20px;
  margin: 0;
  font-family: var(--hp-font);
}
.sede-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--hp-font);
}
.sede-card__link:hover { opacity: 0.8; }
.homepage-sede__cta { display: flex; justify-content: center; }

/* ================================================
   SECTION 5: HACERSE AUDITOR
   ================================================ */
.homepage-auditor { padding: 64px 0; }

.homepage-auditor__inner {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--hp-secondary);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.homepage-auditor__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  width: 587px;
  flex-shrink: 0;
}
.homepage-auditor__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--hp-primary-fg);
  line-height: 40px;
  margin: 0;
  font-family: var(--hp-font);
}
.homepage-auditor__desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--hp-primary-fg);
  line-height: 20px;
  margin: 0;
  font-family: var(--hp-font);
}
.homepage-auditor__list { display: flex; flex-direction: column; gap: 8px; }

.auditor-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px;
  border-radius: 10px;
  transition: background 150ms ease;
  text-decoration: none;
}
.auditor-list-item:hover { background: rgba(255,255,255,0.05); }


.auditor-list-item__icon {
  width: 40px; height: 40px;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.auditor-list-item span {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-primary-fg);
  line-height: 24px;
  font-family: var(--hp-font);
}
.auditor-list-item__arrow { flex-shrink: 0; }
.auditor-list-separator {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 12px;
}
.homepage-auditor__image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  min-height: 441px;
}
.homepage-auditor__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* ================================================
   SECTION 6: REDES SOCIALES
   ================================================ */
.homepage-redes { padding: 64px 0; }

.homepage-redes__carousel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 36px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  z-index: 2;
  color: var(--hp-fg);
}
.carousel-arrow:hover { background: var(--hp-muted); }
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }

.homepage-redes__grid {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 4px;
}
.homepage-redes__grid::-webkit-scrollbar { display: none; }

.redes-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 280px;
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-snap-align: start;
}
.redes-card__header { display: flex; gap: 12px; align-items: flex-start; }
.redes-card__author {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.redes-card__avatar {
  width: 48px; height: 48px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}
.redes-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.redes-card__author-info { display: flex; flex-direction: column; gap: 4px; }
.redes-card__author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 1;
  font-family: var(--hp-font);
}
.redes-card__author-date {
  font-size: 14px;
  font-weight: 400;
  color: var(--hp-fg);
  line-height: 20px;
  font-family: var(--hp-font);
}
.redes-card__social-icon { flex-shrink: 0; }
.redes-card__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 240 / 135;
}
.redes-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.redes-card__footer { display: flex; flex-direction: column; gap: 3px; }
.redes-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 20px;
  margin: 0;
  font-family: var(--hp-font);
}
.redes-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  height: 36px;
  line-height: 20px;
  padding: 8px 0;
  font-family: var(--hp-font);
}

/* ================================================
   SECTION 7: TASAS
   ================================================ */
.homepage-tasas {
  background: var(--hp-gray-100);
  padding: 96px 0;
}
.homepage-tasas__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.homepage-tasas__content {
  max-width: 512px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.homepage-tasas__title-group { display: flex; flex-direction: column; gap: 8px; }
.homepage-tasas__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--hp-primary);
  line-height: 20px;
  font-family: var(--hp-font);
}
.homepage-tasas__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--hp-fg);
  line-height: 40px;
  margin: 0;
  font-family: var(--hp-font);
}
.homepage-tasas__desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--hp-muted-fg);
  line-height: 24px;
  margin: 0;
  font-family: var(--hp-font);
}
.homepage-tasas__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tasas-card {
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--hp-card);
}
.tasas-card__top {
  position: relative;
  background: var(--hp-gray-50);
  min-height: 300px;
  overflow: hidden;
}
.tasas-card__content {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.tasas-card__icon-wrapper {
  width: 64px; height: 64px;
  background: var(--hp-bg);
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: var(--hp-primary);
}
.tasas-card__icon-wrapper img { display: block; width: 48px; height: 48px; object-fit: contain; }
.tasas-card__title {
  font-size: 30px;
  font-weight: 500;
  color: var(--hp-fg);
  line-height: 36px;
  margin: 0;
  font-family: var(--hp-font);
}
.tasas-card__bottom {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tasas-card__category {
  font-size: 16px;
  font-weight: 400;
  color: var(--hp-muted-fg);
  line-height: 24px;
  font-family: var(--hp-font);
}
.tasas-card__desc {
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 24px;
  margin: 0;
  font-family: var(--hp-font);
}

/* ================================================
   LANDING (Declaraciones / ICAC_2025 frame)
   ================================================ */
.landing-alert-strip {
  font-family: var(--hp-font);
}
.landing-alert-strip__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}
.landing-alert-strip__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.landing-alert-strip--yellow-info .landing-alert-strip__content {
  background: #fef9c3;
  color: #422006;
  border: 1px solid #fde047;
}
.landing-alert-strip--pink-warning .landing-alert-strip__content {
  background: #fce7f3;
  color: #831843;
  border: 1px solid #f9a8d4;
}
.landing-alert-strip__text p { margin: 0; }
.landing-alert-strip__text p + p { margin-top: 0.5em; }
.landing-alert-strip__link {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.landing-alert-strip__link:hover { opacity: 0.85; }

.landing-partner-logos {
  padding: 48px 0 56px;
  font-family: var(--hp-font);
}
.landing-partner-logos__header { margin-bottom: 32px; }
.landing-partner-logos__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--hp-fg);
  line-height: 1.2;
}
.landing-partner-logos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px 32px;
  align-items: center;
}
.landing-partner-logos__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  background: var(--hp-gray-50);
  border: 1px solid var(--hp-border);
  border-radius: 10px;
}
.landing-partner-logos__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.landing-partner-logos__img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.landing-newsletter {
  padding: 40px 0 64px;
  font-family: var(--hp-font);
}
.landing-newsletter__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 36px;
  background: var(--hp-slate-50);
  border: 1px solid var(--hp-border);
  border-radius: 16px;
}
.landing-newsletter__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--hp-fg);
}
.landing-newsletter__subtitle {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--hp-muted-fg);
  line-height: 1.5;
}
.landing-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.landing-newsletter__input {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--hp-font);
  background: var(--hp-bg);
}
.landing-newsletter__input:focus {
  outline: 2px solid var(--hp-secondary);
  outline-offset: 1px;
}
.landing-newsletter__submit { flex-shrink: 0; }
.landing-newsletter__privacy {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hp-muted-fg);
}
.landing-newsletter__privacy p { margin: 0; }
.landing-newsletter__privacy p + p { margin-top: 0.35em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Prevent horizontal scroll globally */
html, body { overflow-x: hidden; }

/* ── 1280px: Large screens ── */
@media (max-width: 1280px) {
  .hp-container { padding: 0 24px; }
  .homepage-hero__content,
  .homepage-hero__pagination { left: 64px; }
  .homepage-hero__content { width: calc(100% - 128px); }
  .homepage-hero__title { font-size: 48px; }
  .homepage-hero__slashes--bottom { left: auto; right: 0; }
  .homepage-sede__grid { grid-template-columns: repeat(2, 1fr); }
  .redes-card { flex: 0 0 calc(33.333% - 12px); }
}

/* ── 1024px: Tablet landscape ── */
@media (max-width: 1024px) {
  .hp-container { padding: 0 20px; }

  /* Hero */
  .homepage-hero__content { left: 40px; width: calc(100% - 80px); }
  .homepage-hero__pagination { left: 40px; }
  .homepage-hero__title { font-size: 40px; }
  .homepage-hero__left,
  .homepage-hero__right { min-height: 450px; }

  /* Blog */
  .homepage-blog { flex-direction: column; }
  .homepage-blog__featured { width: 100%; }
  .blog-card-featured { min-height: 500px; }
  .homepage-blog__grid { grid-template-columns: repeat(2, 1fr); }

  /* Consultas */
  .homepage-consultas__grid { grid-template-columns: 1fr; }
  .consulta-card__title { max-width: none; }

  /* Auditor */
  .homepage-auditor__inner { flex-direction: column; }
  .homepage-auditor__content { width: 100%; }

  /* Tasas */
  .homepage-tasas__inner { flex-direction: column; }
  .homepage-tasas__content { max-width: 100%; }

  /* Redes */
  .redes-card { flex: 0 0 calc(50% - 6px); }

  /* Sections spacing */
  .homepage-avisos,
  .homepage-consultas,
  .homepage-sede,
  .homepage-auditor,
  .homepage-redes { padding: 48px 0; }
  .homepage-tasas { padding: 64px 0; }
}

/* ── 768px: Tablet portrait / small screens ── */
@media (max-width: 768px) {
  .hp-container { padding: 0 16px; }

  /* Hero: stack vertically */
  .homepage-hero__container { flex-direction: column; }
  .homepage-hero__left,
  .homepage-hero__right {
    width: 100%;
    min-height: 360px;
  }
  .homepage-hero__slides-content {
    min-height: 320px;
    padding: 72px 24px 92px;
  }
  .homepage-hero__content,
  .homepage-hero__content.is-active {
    position: relative;
    top: auto;
    left: 0;
    width: 100%;
    min-height: auto;
    transform: none;
  }
  .homepage-hero__content:not(.is-active) {
    display: none;
  }
  .homepage-hero__pagination {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .homepage-hero__title { font-size: 32px; line-height: 1.1; }
  .homepage-hero__subtitle { font-size: 16px; line-height: 24px; }
  .homepage-hero__text { gap: 20px; }
  .homepage-hero__slashes--top {
    top: -100px;
    left: -16px;
    transform: scale(0.6);
  }
  .homepage-hero__slashes--bottom {
    top: auto;
    bottom: -96px;
    right: -24px;
    left: auto;
    transform: scale(0.6);
  }

  /* Section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .section-header__heading { font-size: 28px; line-height: 36px; }

  /* Alert */
  .homepage-avisos .hp-container { padding: 0 16px; }
  .homepage-alert { 
    flex-direction: column; 
    align-items: stretch;
    border-radius: 10px;
    border-left: 1px solid var(--hp-border);
    border-right: 1px solid var(--hp-border);
    padding: 16px;
  }
  .homepage-alert__messages-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .homepage-alert__messages-wrapper::-webkit-scrollbar {
    display: none;
  }
  .homepage-alert__message { 
    position: relative !important;
    flex: 0 0 100%;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    flex-direction: column;
    border-radius: 10px;
    scroll-snap-align: start;
    border-left: 1px solid var(--hp-border);
    border-right: 1px solid var(--hp-border);
  }
  .homepage-alert__nav { display: none; }

  /* Blog */
  .homepage-blog { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
  }
  .homepage-blog__featured,
  .homepage-blog__grid { 
    display: contents; 
  }
  .blog-card-featured,
  .blog-card-small {
    min-height: 280px;
    height: 100%;
  }

  /* Sede Carousel */
  .homepage-sede__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .homepage-sede__grid::-webkit-scrollbar {
    display: none;
  }
  .sede-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  /* Tasas */
  .homepage-tasas__grid { grid-template-columns: 1fr; }

  /* Redes */
  .redes-card { flex: 0 0 100%; min-width: 260px; }

  /* Auditor */
  .homepage-auditor__inner { padding: 24px; border-radius: 12px; }
  .homepage-auditor__title { font-size: 28px; line-height: 36px; }
  .homepage-auditor__image { min-height: 300px; }

  /* Consultas Carousel */
  .homepage-consultas__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .homepage-consultas__grid::-webkit-scrollbar {
    display: none;
  }
  .consulta-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .consulta-card__actions { flex-direction: row; gap: 8px; }
  .consulta-card__action {
    padding: 10px 8px !important;
    gap: 4px !important;
  }
  .consulta-card__action span {
    font-size: 13px !important;
  }
  .consulta-card__action svg,
  .consulta-card__action img {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0;
  }
  .consulta-card__title { font-size: 24px; line-height: 30px; }

  /* Tasas */
  .homepage-tasas__title { font-size: 28px; line-height: 36px; }
  .tasas-card__title { font-size: 24px; line-height: 30px; }

  /* Sections spacing */
  .homepage-avisos,
  .homepage-consultas,
  .homepage-sede,
  .homepage-auditor,
  .homepage-redes { padding: 40px 0; }
  .homepage-tasas { padding: 48px 0; }
}

/* ── 480px: Small mobile ── */
@media (max-width: 480px) {
  .hp-container { padding: 0 12px; }

  /* Hero */
  .homepage-hero__left,
  .homepage-hero__right { min-height: 300px; }
  .homepage-hero__slides-content {
    min-height: 280px;
    padding: 56px 16px 80px;
  }
  .homepage-hero__title { font-size: 26px; }
  .homepage-hero__subtitle { font-size: 14px; line-height: 22px; }
  .homepage-hero__pagination { left: 16px; bottom: 16px; }

  /* Section headers */
  .section-header__heading { font-size: 24px; line-height: 32px; }

  /* Blog */
  .blog-card-featured,
  .blog-card-small { min-height: 220px; }
  .blog-card-featured__overlay h3,
  .blog-card-small__content h3 { font-size: 16px; line-height: 1.2; }
  .blog-card-featured__overlay p,
  .blog-card-small__content p { display: none; } /* Hide excerpts on very small screens in 2-col to save space */

  /* Alert */
  .homepage-alert__label span { font-size: 16px; }

  /* Cards */
  .consulta-card__top { min-height: 240px; }
  .consulta-card__title { font-size: 22px; line-height: 28px; }
  .tasas-card__top { min-height: 240px; }
  .tasas-card__title { font-size: 22px; line-height: 28px; }

  /* Sede */
  .sede-card { padding: 16px; }
  .sede-card__title { font-size: 18px; }

  /* Auditor */
  .homepage-auditor__inner { padding: 16px; }
  .homepage-auditor__title { font-size: 24px; line-height: 32px; }
  .homepage-auditor__image { min-height: 240px; }
  .auditor-list-item { padding: 8px; gap: 12px; }
  .auditor-list-item span { font-size: 14px; }

  /* Tasas */
  .homepage-tasas__title { font-size: 24px; line-height: 32px; }

  /* Redes */
  .homepage-redes__carousel { padding: 0; }
  .carousel-arrow { display: none; }
  .redes-card { min-width: 240px; }

  /* Sections spacing */
  .homepage-avisos,
  .homepage-consultas,
  .homepage-sede,
  .homepage-auditor,
  .homepage-redes { padding: 32px 0; }
  .homepage-tasas { padding: 40px 0; }

  /* Landing */
  .landing-partner-logos__title { font-size: 22px; }
  .landing-newsletter__card { padding: 20px 16px; }
  .landing-newsletter__title { font-size: 20px; }
}


/* ===================================================
   Consultas carousel dots — mobile only
   =================================================== */
.consultas-dots {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .consultas-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 4px;
  }

  .consultas-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
  }

  .consultas-dot--active {
    background: #b91c1c;
    transform: scale(1.25);
  }
}

/* ===================================================
   Sede carousel dots — mobile only
   =================================================== */
.sede-dots {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .sede-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 4px;
  }

  .sede-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
  }

  .sede-dot--active {
    background: #b91c1c;
    transform: scale(1.25);
  }
}

/* ===================================================
   Ocultar breadcrumb y título de página en la portada
   =================================================== */
#block-icac-theme-page-title,
.breadcrumb-wrapper {
  display: none !important;
}
