/* ============================================================
   BRÍO × EXPANSIÓN — HUB DE CONTENIDO
   Basado en diseño Figma / PDF
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --brio-blue: #1C3DF2;
  --brio-blue-light: #4087ea;
  --brio-dark: #1D2331;
  --brio-dark-2: #1D2331;
  --brio-navy: #1a2847;
  --brio-green: #96d132;
  --brio-green-bright: #8bc427;
  --brio-white: #ffffff;
  --brio-gray: #6b7280;
  --brio-gray-light: #f5f5f5;
  --brio-border: #e5e7eb;
  --exp-red: #ed1c24;
  --font-main: 'Avenir', 'Avenir Next', 'Nunito', sans-serif;
  --max-w: 1100px;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
  --transition: all 0.25s ease;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--brio-white);
  color: var(--brio-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--exp-red);
  padding: 0;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.header-logo {
  height: 26px;
  width: auto;
}

/* ============================================================
   HERO — parallax
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding-top: 46px;
  overflow: hidden;
}

.hero-parallax-bg {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 100px 24px 100px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--brio-white);
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--brio-white);
  font-weight: 500;
  opacity: 0.95;
}

.hero-subtitle .hl {
  background: var(--brio-green);
  color: var(--brio-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

/* ============================================================
   INTRO BRIO — dark blue section
   ============================================================ */
.section-intro {
  background: var(--brio-dark-2);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('../img/new/Conoce%20Br%C3%ADo.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Sin degradado — la imagen ya tiene la oscuridad integrada */
.section-intro::before {
  display: none;
}

.section-intro-inner {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.intro-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #8EBBFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 10px;
  font-weight: 400;
}

.intro-body strong {
  color: var(--brio-white);
  font-weight: 700;
}

.intro-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  font-style: italic;
}

/* ============================================================
   CONTENIDO EXCLUSIVO
   ============================================================ */
.section-exclusivo {
  padding: 64px 24px;
  background: var(--brio-white);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--brio-blue);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--brio-gray);
  font-weight: 400;
}

/* --- GRID EXCLUSIVO: 1 grande arriba + 3 pequeñas abajo --- */
.art-card-large {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--brio-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  background: var(--brio-white);
  box-shadow: var(--shadow);
  padding: 12px 0 12px 12px;
}

.art-card-large:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.art-card-large .card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.art-card-large .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.art-card-large:hover .card-img img {
  transform: scale(1.04);
}

.art-card-large .card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
  height: 100%;
}

.art-card-large .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brio-dark);
  line-height: 1.4;
  margin: 0;
}

/* 3 cards en fila debajo de la grande */
.exclusivo-small-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.art-card-sm {
  border: 1px solid var(--brio-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brio-white);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.art-card-sm:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.art-card-sm .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.art-card-sm .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.art-card-sm .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  text-align: center;
}

.art-card-sm .card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brio-dark);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

/* Article card — small */
.art-card-small {
  border: 1px solid var(--brio-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  background: var(--brio-white);
  display: flex;
  flex-direction: column;
}

.art-card-small:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.art-card-small .card-img {
  overflow: hidden;
  flex-shrink: 0;
}

.art-card-small .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.art-card-small .card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.art-card-small .card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brio-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

/* Shared card meta */
.card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--brio-gray);
  margin-bottom: 10px;
  font-weight: 500;
}

.card-meta-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brio-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}

.card-meta-dot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-meta-info span:first-child {
  font-weight: 700;
  color: var(--brio-dark);
  font-size: 0.78rem;
}

.card-meta-info span:last-child {
  font-size: 0.75rem;
  color: var(--brio-gray);
}

.card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brio-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: var(--transition);
  margin-top: auto;
  text-align: center;
}

.card-link:hover {
  color: var(--brio-green-bright);
  gap: 8px;
}

/* Pagination */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 0;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--brio-gray);
  transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
  background: var(--brio-blue);
  color: var(--brio-white);
  border-radius: 6px;
}

.pagination-btn.arrow {
  color: var(--brio-dark);
  font-size: 1.2rem;
}

.pagination-btn.arrow:hover {
  background: var(--brio-blue);
  color: var(--brio-white);
}

/* ============================================================
   CONTENIDO RECOMENDADO
   ============================================================ */
.section-recomendado {
  padding: 64px 24px;
  background: var(--brio-white);
  border-top: none;
}

/* Divisor visual 1px acotado al ancho del contenido (misma distancia que las cards) */
.section-divider {
  border: none;
  border-top: 1px solid #6B7280;
  margin: 0 auto;
  max-width: var(--max-w);
  width: 100%;
}

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

.rec-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brio-white);
  border: 1px solid var(--brio-border);
  transition: var(--transition);
}

.rec-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.rec-card .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

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

.rec-card .card-body {
  padding: 14px;
  text-align: center;
}

.rec-card .card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brio-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

/* ============================================================
   CONOCE MÁS DE BRÍO — dark section
   ============================================================ */
.section-conoce {
  background: #1D2331;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

/* Sin pseudo-elemento de fondo — SVG se aplica por tarjeta */
.section-conoce::before {
  display: none;
}

.conoce-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.conoce-title {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #8EBBFF;
  margin-bottom: 40px;
}

.conoce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

/* SVG compartido que cubre las 6 cards como una sola unidad */
.conoce-cards-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

/* Un solo SVG cubre todas las cards desde el wrapper */
.conoce-cards-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/new/Background\ cards.svg');
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

/* El ::before del grid tampoco lleva SVG */
.conoce-grid::before {
  display: none;
}

.conoce-card {
  position: relative;
  background: rgba(150, 209, 50, 0.10);
  border: none;
  border-radius: var(--radius);
  padding: 32px 24px 0;
  transition: var(--transition);
  overflow: hidden;
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.conoce-card:last-child {
  border-right: none;
}

.conoce-card::before {
  display: none;
}

.conoce-card>* {
  position: relative;
  z-index: 1;
}

.conoce-card:hover {
  background: rgba(150, 209, 50, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(150, 209, 50, 0.12);
}

/* Franja verde inferior — igual que en las cards de reguladores */
.conoce-card-bar {
  width: calc(100% + 48px);
  height: 6px;
  background: var(--brio-green);
  flex-shrink: 0;
  margin-top: auto;
  margin-left: -24px;
  margin-right: -24px;
  position: relative;
  z-index: 2;
}

.conoce-card--center {
  text-align: center;
}

.conoce-card--right {
  text-align: center;
}

/* Espacio entre el contenido y la barra verde */
.conoce-card-title,
.conoce-card-body,
.bravo-logo-wrapper {
  padding-left: 0;
  padding-right: 0;
}

.conoce-card-body {
  padding-bottom: 8px;
}

.conoce-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brio-white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.conoce-card-body {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
}

.bravo-logo-wrapper {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.bravo-logo-img {
  max-height: 40px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 20px;
}

.bravo-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brio-white);
  letter-spacing: -1px;
}

.bravo-logo-text span {
  color: var(--brio-green);
}

/* Instituciones — card única */
.regulators-section {
  padding-top: 0;
}

.regulators-card {
  position: relative;
  background: rgba(150, 209, 50, 0.10);
  border-radius: var(--radius);
  padding: 28px 40px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: var(--transition);
  z-index: 1;
}

.regulators-card:hover {
  background: rgba(150, 209, 50, 0.18);
}

.regulators-label {
  font-size: 1rem;
  color: var(--brio-white);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  margin: 0;
}

/* Fila de logos centrada */
.regulators-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  width: 100%;
  padding-bottom: 28px;
}

.regulators-logos-row img {
  max-height: 56px;
  width: auto;
  opacity: 0.9;
  display: block;
}

/* Override: la barra en .regulators-card tiene padding lateral de 40px */
.regulators-card .conoce-card-bar {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.section-cta {
  background: var(--brio-dark-2);
  padding: 72px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--brio-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.65;
}

.btn-cta {
  display: inline-block;
  background: var(--brio-green);
  color: var(--brio-dark);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 48px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.2px;
}

.btn-cta:hover {
  background: #aae040;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(150, 209, 50, 0.35);
  color: var(--brio-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brio-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-brio-img {
  max-height: 44px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  text-align: right;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--brio-blue);
  color: var(--brio-white);
}

.footer-follow-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .art-card-large {
    grid-template-columns: 1fr;
  }

  .art-card-large .card-img {
    aspect-ratio: 16/9;
  }

  .exclusivo-small-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .recomendado-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conoce-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .conoce-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .conoce-card:last-child {
    border-bottom: none;
  }

  .conoce-card--center,
  .conoce-card--right {
    text-align: center;
  }

  .regulators-logos {
    grid-template-columns: 1fr;
  }

  .regulator-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .regulator-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .exclusivo-small-row {
    grid-template-columns: 1fr;
  }

  /* Card única en mobile para la sección exclusiva */
  .art-card-mobile-solo {
    display: flex;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid var(--brio-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--brio-white);
    box-shadow: var(--shadow);
    padding: 0 !important;
    animation: card-fade-in 0.3s ease;
  }

  .art-card-mobile-solo .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0;
  }

  .art-card-mobile-solo .card-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
  }

  .art-card-mobile-solo .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
  }

  @keyframes card-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .recomendado-grid {
    grid-template-columns: 1fr 1fr;
  }

  .regulators-logos {
    gap: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .footer-right {
    align-items: flex-start;
  }

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

@media (max-width: 400px) {
  .recomendado-grid {
    grid-template-columns: 1fr;
  }
}