.banner-section {
  position: relative;
  /* para poder posicionar el texto encima */
  width: 100%;
  height: auto;
  /* altura fija para el banner */
  overflow: hidden;
}

.banner-section img {
  width: 100%;
  height: 100%;
  /*object-fit: cover;       /* que la imagen cubra todo el ancho/alto */
  /*display: block;*/
}

.texto1 {
  position: absolute;
  top: 50%;
  left: 23%;
  right: 10%;
  transform: translate(200%, -250%);
  /* centra horizontal y vertical */
  text-align: left;
  color: #000000;
  padding: 0 20px;
  max-width: 20%;
  font-family: 'Gandhi Sans', sans-serif;
}

.texto1 h2 {
  font-size: 3rem;
  /* tamaño grande de título */
  font-weight: bold;
  line-height: 1.2;
}

/* Sección general */
.seccion-general {
  padding: 40px 40px;
  width: 100%;
  color: black;
}

.seccion-general h3 {
  font-size: 1.8rem;
  color: #B82F25;
  text-decoration: none;
  line-height: 1.2;
  font-weight: bold;
}

.img-wrapper {
  grid-column: 8 / 13;
  grid-row: 2;

  width: 100%;
  height: 240px;

  border-radius: 140px;
  overflow: hidden;
  /* esto hace que los bordes funcionen */
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Título arriba centrado correctamente sin afectar filas */
.menu-titulo {
  grid-column: 2 / -1;
  margin-bottom: 20px;
  text-align: start;
}

/* Iconos en columna izquierda */
.porque-iconos {
  grid-column: 1;
  /* Columna izquierda */
  grid-row: 2;
  /* Misma fila del texto */
}

.porque-iconos ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.porque-iconos li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icono-lista {
  font-size: 2.4rem;
  color: #B82F25;
}

/* Texto en columna derecha */
.menu-links {
  grid-column: 2 / span 6;
  /* Texto a la derecha de iconos */
  grid-row: 2;
}

.texto-iconos {
  list-style: none;
  padding: 0;
  margin: 0;
}

.texto-iconos li {
  display: flex;
  align-items: center;
  margin-bottom: 18px;

  font-size: 1.15rem;
  color: black;
  text-decoration: none;
  line-height: 1.2;
  font-weight: bold;
}

.porque-iconos li,
.texto-iconos li {
  height: 50px;
}

/* BOTÓN */
.btn {
  display: inline-flex;
  /* permite centrar el texto */
  justify-content: center;
  /* centra horizontalmente */
  align-items: center;
  /* centra verticalmente */
  background: linear-gradient(180deg, #b5312e 0%, #d14825 100%);
  color: white;
  border: none;
  font-family: 'Gandhi Sans', sans-serif;
  border-radius: 25px;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #92231e 0%, #b5312e 100%);
}

.seccion-general .btn {
  grid-column: 2/ span 3;
}

/* --- SECCIÓN TARJETAS EN GRID --- */

/*TARJETAS */
.tarjeta {
  background-color: #b5312e;
  border-radius: 35px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* IMAGEN */
.imagen {
  padding: 0;
  background-color: #000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  height: 220px;
  /* 🔸 altura uniforme para todas */
  width: 100%;
  margin-bottom: 20px;
  margin: 0;
}

.imagen img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  object-fit: cover;
  /* 🔸 mantiene proporción sin deformar */
}

.contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 20px;
}

/* TEXTO */
.tarjeta p {
  margin: 30px 0 10px;
  font-family: 'Gandhi Sans', sans-serif;
  color: #fff;
  font-size: 1.45rem;
  font-weight: bold;
  line-height: 1.5;
}

.contenido p {
  font-family: 'Gandhi Serif', serif;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tarjeta .btn {
  background: linear-gradient(#b5312e);
  text-decoration: underline;
}

.seccion-tarjetas {
  background-color: #000;
  width: 100%;
  padding: 60px 0;
  display: flex;
  justify-content: space-around;
}

/* Cada tarjeta ocupa 4 columnas del grid */
.seccion-tarjetas .tarjeta {
  grid-column: span 4;
}


/* CONTENEDOR PRINCIPAL */
.asesoria-video-section {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  padding: 40px;
  color: #fff;
}

/* Video */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Overlay oscuro */
.asesoria-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.asesoria-layout {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* centra verticalmente */
  height: 100%;
  width: 100%;
  gap: 60px;
  z-index: 1;
}

.asesoria-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: fit-content;
  height: auto;
}

/* Alineaciones */
.asesoria-col.izquierda {
  align-items: flex-start;
  text-align: left;
}

.asesoria-col.derecha {
  align-items: flex-end;
  text-align: right;
}

.asesoria-img-text {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

.asesoria-img {
  width: 80px;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.asesoria-descripcion {
  max-width: 320px;
  font-size: 1.4rem;
  line-height: 1.5;
}

/* FORMULARIO (columna derecha) */
.asesoria-form {
  background: rgba(0, 0, 0, 0.55);
  padding: 30px 28px;
  border-radius: 16px;
  backdrop-filter: blur(6px);

  display: flex;
  flex-direction: column;
  gap: 14px;

  width: 350px;
  min-height: auto;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.form-titulo {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  color: white;
  background: none !important;
  padding: 0 !important;
  margin-bottom: 10px;
}

.asesoria-form label {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.form-btn {
  padding: 12px 18px !important;
  font-size: 0.85rem !important;
  margin-top: 10px;
  align-self: center;
  width: 60%;
}

.asesoria-form input,
.asesoria-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
}

.asesoria-form textarea {
  min-height: 90px;
  resize: vertical;
}

.porque-iconos .icono-white {
  font-size: 1.5rem;
}

h5 {
  display: flex;
  justify-content: center;
  font-size: 3.6rem;
  padding: 25px 0;
  color: #fff;
  background: black;
}

.layout-1-2-1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 40px;

  width: 100%;
  padding: 10px 0;
  margin: 10px 0;
}

/* --------------------------
   A y C (imágenes laterales)
   -------------------------- */
.side-img {
  width: 450px;
  /* Tamaño fijo igual para A y C */
  height: 450px;
  object-fit: cover;
  /* Mantiene proporción dentro del cuadro */
  border-radius: 20px;
}

.left {
  justify-self: end;
}

.right {
  justify-self: start;
}

/* --------------------------
   B y D (imágenes verticales)
   -------------------------- */
.center-images {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-content: center;
  align-items: center;
}

.center-img {
  width: 375px;
  /* Tamaño fija igual para B y D */
  height: 375px;
  object-fit: cover;
  border-radius: 20px;
}


/* ---------------------------
   Responsive: tablet / medium
   --------------------------- */
@media (max-width: 1024px) {

  /* Banner: texto más pequeño y centrado mejor */
  .texto1 {
    left: 50%;
    top: 45%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 60%;
    padding: 0 16px;
  }

  .texto1 h2 {
    font-size: 2rem;
  }

  /* Sección general: reducir márgenes y ajustar imagen */
  .seccion-general {
    padding: 32px 24px;
  }

  .img-wrapper {
    height: 220px;
    border-radius: 40px;
  }

  /* Iconos y textos: acercar columnas */
  .porque-iconos {
    grid-column: 1;
  }

  .menu-links {
    grid-column: 2 / span 6;
  }

  .icono-lista {
    font-size: 2rem;
  }

  .texto-iconos li {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  /* Botón: reducir padding */
  .seccion-general .btn {
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 22px;
  }

  /* Tarjetas: pasar a 2 columnas si usas grid, o reducir tamaño si están en flex */
  .seccion-tarjetas {
    padding: 44px 20px;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }


  /* Layout 1-2-1: reducir tamaños laterales y centrales */
  .side-img {
    width: 350px;
    height: 350px;
  }

  .center-img {
    width: 250px;
    height: 250px;
  }

  .layout-1-2-1 {
    gap: 24px;
    padding: 32px 0;
  }
}


/* ---------------------------
   Responsive: móvil (max-width: 700px)
   --------------------------- */
@media (max-width: 700px) {

  /* BANNER */
  .banner-section {
    height: auto;
  }

  .banner-section img {
    display: block;
    width: 100%;
    height: auto;
  }

  .texto1 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 86%;
    text-align: center;
    padding: 0 12px;
  }

  .texto1 h2 {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  /* Quitar imagen */
  .img-wrapper {
    display: none;
  }

  /* Ajustar grid a dos columnas (icons + textos) */
  .parent {
    grid-template-columns: 50px 1fr;
  }

  /* Iconos */
  .porque-iconos {
    grid-column: 1;
    grid-row: auto;
  }

  /* Textos */
  .menu-links {
    grid-column: 2;
    grid-row: auto;
  }

  /* Título */
  .menu-titulo {
    grid-column: 1 / -1;
  }
  .menu-titulo h3 {
    font-size: 2.5rem;
  }

  /* Botón ocupa todo ancho */
  .seccion-general .btn {
    grid-column: 1 / -1;
    justify-self: center;
    font-size: 1.3rem;
  }

    /* Tamaño de los íconos */
  .icono-lista {
    margin-left: 50px;
    font-size: 3rem;   /* Antes 2.4rem */
  }

  /* Tamaño del texto */
  .texto-iconos li {
    font-size: 1.3rem;     /* Antes 1.15rem */
  }



  /* TARJETAS: apilar vertical y ensanchar */
  .seccion-tarjetas {
    flex-direction: column;
    align-items: center;
    padding: 36px 12px;
    gap: 20px;
  }

  .seccion-tarjetas .tarjeta {
    width: 90%;
    max-width: 520px;
  }

  /* ASESORIA: convertir layout a columna (izquierda encima, derecha debajo) */
  .asesoria-video-section {
    height: auto;
    padding: 28px 18px;
  }

  .asesoria-video-section .asesoria-layout {
    flex-direction: column;
    gap: 26px;
    align-items: center;
    width: 100%;
  }

  /* Columnas en una sola */
  .asesoria-video-section .asesoria-col.izquierda,
  .asesoria-video-section .asesoria-col.derecha {
    width: 92%;
    align-items: center !important;
    text-align: center !important;
  }

  /* Imagen SIN recorte */
  .asesoria-video-section .asesoria-img {
    width: 90px;
    height: auto;      
    object-fit: contain;
    border-radius: 14px;
  }

  /* Texto descriptivo */
  .asesoria-video-section .asesoria-descripcion {
    max-width: 100%;
    font-size: 1.8rem;
    line-height: 1.4;
  }

  /* --- ICONOS SOLO EN ESTA SECCIÓN --- */
  .asesoria-video-section .porque-iconos ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 26px;
    padding: 0;
    margin-top: 6px;
  }

  .asesoria-video-section .porque-iconos li {
    margin-bottom: 10px !important;
  }

  .asesoria-video-section .icono-white i {
    font-size: 3.5rem !important;
  }

  /* FORMULARIO */
  .asesoria-video-section .asesoria-form {
    width: 92%;
    max-width: 520px;
    padding: 22px;
    gap: 12px;
  }

  .asesoria-video-section .form-titulo {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .asesoria-video-section .asesoria-form label {
    font-size: 0.95rem;
    text-align: left;
  }

  .asesoria-video-section .asesoria-form input,
  .asesoria-video-section .asesoria-form textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  .asesoria-video-section .form-btn {
    width: 60%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 20px;
  }

  .layout-1-2-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 20px;
    padding: 20px;
  }

  /* A y C (laterales) y B/D (centro): TODAS igual tamaño y en grid */
  .side-img,
  .center-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 50px;
  }

  /* Container de las centrales ya no debe usar columna vertical */
  .center-images {
    display: contents; /* Se eliminan restricciones de flex vertical */
  }

  /* H5 grande: reducir tamaño y eliminar fondo negro en móvil si no conviene */
  h5 {
    font-size: 1.8rem;
    color: #fff;
  }

  /* Mantén scroll y accesibilidad del menú (no tocar header/nav) */
}

@media (max-width: 700px) {

  /*BANNER*/
  .texto1 {
    position: absolute;
    padding: 0 10px;
  }

  .texto1 h2 {
    font-size: 1.1rem;
    line-height: 1.2;
  }
}