/* ============================================= */
/*             INVERSION – VISUAL PREMIUM        */
/* ============================================= */

/* General spacing for all sections */
section {
  padding: clamp(5rem, 8vw, 9rem) 5vw;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ======================== */
/*    HERO INVERSIÓN       */
/* ======================== */

#hero-inversion {
  background-color: var(--black-color);
  padding: clamp(6rem, 10vw, 8rem) 5vw 5rem;
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.hero-video-bg.mobile {
  display: none;
}

@media (max-width: 767px) {
  .hero-video-bg.desktop {
    display: none;
  }

  .hero-video-bg.mobile {
    display: block;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 2rem;
}

/* Título principal */
.hero-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary-color);
  display: block;
}

/* Control por dispositivo */
.titulo-escritorio {
  display: block;
}

.titulo-movil {
  display: none;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .titulo-escritorio {
    display: none;
  }

  .titulo-movil {
    display: block;
    text-align: center;
    line-height: 1.3;
  }
}

/* Subtítulo */
.hero-subtitle {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--white-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}




/* ======================== */
/*  OPORTUNIDADES SECTION   */
/* ======================== */

/* Titulo de la Sección */
.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.oportunidades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.oportunidad-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.oportunidad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.oportunidad-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: var(--primary-color);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
  text-align: center;
}

.card-content p {
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  display: block;
  margin-top: 0.4rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .oportunidades-grid {
    grid-template-columns: 1fr;
  }

  .oportunidad-card img {
    height: 200px;
  }
}

/* ======================== */
/*   PERFIL DEL INVERSOR   */
/* ======================== */

#perfil-inversor {
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 8rem) 5vw;
  background-color: var(--white-color);
}

#perfil-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.perfil-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta individual */
.perfil-item {
  flex: 1 1 300px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.perfil-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.perfil-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}


.perfil-item h3 {
  font-family: var(--font-family-heading);
  color: var(--primary-color);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  margin-top: 1.2rem;
}

.perfil-item p {
  font-family: var(--font-family-main);
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  padding: 0 1.2rem 2rem;
  margin-top: 0.4rem;
}



/* ============================ */
/*     SECCIÓN: SECTORES       */
/* ============================ */

.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

/* Grid adaptable */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Card principal */
.sector-card {
  position: relative;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.3s ease;
  background-color: #000; /* fallback */
}

.sector-card:hover {
  transform: translateY(-5px);
}

/* Imagen de fondo */
.sector-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

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

/* Overlay con degradado y texto */
.sector-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

/* Título de cada sector */
.sector-overlay h3 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  color: var(--white-color);
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsivo */
@media (max-width: 1200px) {
  .sectores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sectores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-card {
    min-height: 300px;
  }

  .sector-overlay {
    padding: 1.5rem 1rem;
  }

  .sector-overlay h3 {
    font-size: 1rem;
  }
}

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

  .sector-card {
    min-height: 280px;
  }
}


/* ============================================= */
/*        BENEFICIOS Y MODELO DE INVERSIÓN       */
/* ============================================= */

.beneficios-list,
.modelo-pasos {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  font-family: var(--font-family-main);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--black-color);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

/* =============================== */
/*       50/50 GRID LAYOUT        */
/* =============================== */

.beneficios-grid,
.modelo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 9rem) 5vw;
}

.beneficios-texto,
.modelo-texto {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Visual */
.beneficios-visual img,
.modelo-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* LISTAS ESTILIZADAS */
.beneficios-list,
.modelo-pasos {
  font-family: var(--font-family-main);
  color: var(--black-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.5;
  padding: 0 1.2rem 2rem;
  margin-top: 0.4rem;
}

.beneficios-list li {
  position: relative;
  padding-left: 2rem;
}

.beneficios-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.modelo-pasos {
  counter-reset: paso;
}

.modelo-pasos li {
  counter-increment: paso;
  position: relative;
  padding-left: 2.5rem;
}

.modelo-pasos li::before {
  content: counter(paso) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-family: var(--font-family-heading);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 991px) {
  .beneficios-grid,
  .modelo-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(4rem, 6vw, 5rem) 8vw;
  }

  .beneficios-visual img,
  .modelo-visual img {
    max-width: 500px;
    margin: 0 auto 2rem;
  }

  .beneficios-texto,
  .modelo-texto {
    align-items: center;
  }

  .beneficios-list,
  .modelo-pasos {
    padding: 0 1rem;
    text-align: left;
  }

  .beneficios-list li,
  .modelo-pasos li {
    padding-left: 1.8rem;
  }
}

@media (max-width: 576px) {
  .beneficios-visual img,
  .modelo-visual img {
    max-width: 100%;
  }

  .beneficios-grid,
  .modelo-grid {
    gap: 2rem;
  }

  .beneficios-texto,
  .modelo-texto {
    gap: 1.5rem;
  }
}



/* ============================================= */
/*                  CTA FINAL                    */
/* ============================================= */

#cta-inversion {
  background-color: var(--white-color);
  padding: clamp(5rem, 8vw, 9rem) 10vw;
  min-height: 90vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-inversion-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Frase principal */
.cta-frase {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

/* Palabra destacada */
.cta-frase .cta-destacado {
  color: var(--black-color);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  display: block;
  margin-top: 0.4rem;
}

/* Subfrase informativa */
.cta-subtexto {
  font-family: var(--font-family-main);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: var(--black-color);
}

/* Botones de acción */
.cta-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 4rem;
}

.subtexto-escritorio {
  display: block;
}

.subtexto-movil {
  display: none;
}

@media (max-width: 768px) {
  .subtexto-escritorio {
    display: none;
  }

  .subtexto-movil {
    display: block;
    text-align: center;
    max-width: 90%;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
  }
}
