/* section1.css */

:root{
    --green: #a9f52b;
}
/* ===================== SECTION 1 ===================== */
section.s1 {
  width: 100%;
  background-color: var(--blue-dark);
  display: flex;
  flex-direction: column;      /* hero ARRIBA, features ABAJO */
  align-items: center;
  
}


/* Carousel */
/* ── Carousel no corte el hero ── */
#carouselHero {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto 40px;
}

#carouselHero .carousel-inner {
  border-radius: 32px;
  overflow: hidden;
}

/* ── Cada slide tiene el alto del hero ── */
#carouselHero .carousel-item {
  height: 660px;             /* ← mismo alto que tu .s1-hero */
}

#carouselHero .s1-hero {
  height: 100%;    
            /* ← ocupa todo el slide */
}

/* ── Indicadores abajo del hero ── */
#carouselHero .carousel-indicators {
  bottom: -40px;             /* ← debajo del hero */
}

#carouselHero .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #003fb7;
  opacity: .4;
  border: none;
}

#carouselHero .carousel-indicators button.active {
  opacity: 1;
  background-color: #FFC900;
}

/* ── Flechas prev/next ── */
#carouselHero .carousel-control-prev,
#carouselHero .carousel-control-next {
  width: 40px;
  height: 40px;
  background: #003fb7;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#carouselHero .carousel-control-prev { left: -20px; }
#carouselHero .carousel-control-next { right: -20px; }



/* ── Hero: contenedor con imagen de fondo ── */
.s1-hero {
  background-image: url('../assets/section_1/Hero/Hero.png');
  background-size: 100% 100%;  /* estira la imagen para llenar exactamente el contenedor */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 30px 60px;
  width: 100%;
  height: 660px;
  border-radius: 32px;
  overflow: hidden;
  gap: 24px;
  margin-bottom: 40px;
}

/* ── Columna izquierda: 4 filas ── */
.s1-hero-left {
  margin-top: -50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  width: 460px;
  margin-left: 6%;
}

.s1-hero-left .img_logo_convocados {
    
    margin-left: -20px;
    width: 300px;
    height: auto;
}

.s1-hero-left .text-1,
.s1-hero-left .text-2 {
  
  line-height: 1;
  margin: 0;
}
.s1-hero-left .text-1 {
  color: #ffffff;
  font-weight: 500;
  font-size: 48px;
}

.s1-hero-left .text-2 {
  color: #FFC900;
  font-weight: 650;
  font-size: 68px;
}

.s1-hero-left p {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  margin: 0;
  max-width: 510px;
  line-height: 1.5;
}

.btn-green {
  display: inline-block;
  background: var(--green);
  color: #0e0e0e;
  
  font-weight: 700;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,175,80,.5);
}

/* ── Columna derecha: tarjetas superpuestas ── */
.s1-hero-right {
  margin-top: 140px;
  flex: 0 0 auto;
  position: relative;
  width: 500px;
  height: 340px;
  margin-right: -60px;
}

/* ── Tarjeta GOLD — adelante, horizontal ── */
.tarjeta-gold-wrap {
  width: 400px;
  position: absolute;
  bottom: 0;
  left: -3px;
  z-index: 2;
  transform: rotate(0deg);
  filter: drop-shadow(0px 5px 0px rgba(0,0,0,.4));
}

.tarjeta-gold-wrap img {
  width: 100%;
  display: block;
}

/* ── Inner gold: DEBE tener overflow hidden ── */
.tarjeta-gold-inner {
  position: relative;
  width: 100%;
      /* ← esto es lo que corta en los bordes */
  border-radius: 14px;     /* ← que coincida con el borde de la tarjeta */
}
.tarjeta-gold-inner img {
  width: 100%;
  display: block;
}
/* ── Brillo — empieza y termina dentro del contenedor ── */
.tarjeta-gold-inner::after {
  content: '';
  position: absolute;
  top: 29px;                  /* ← desde el borde superior */
  left: 0;                 /* ← sin negativos, el overflow se encarga */
  width: 48px;
  height: 80%;            /* ← ocupa todo el alto */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.06) 75%,
    transparent 100%
  );
  mix-blend-mode: overlay;  
  transform: translateX(-40px); 
  animation: brillo-gold 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brillo-gold {
  0%   { transform: translateX(10px);   opacity: 0; }
  10%   { opacity: 1; }
  45%  { transform: translateX(340px); opacity: 0; }
  100% { transform: translateX(40px);   opacity: 0; }
}






.tarjeta-black-inner {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.tarjeta-black-inner img {
  width: 100%;
  display: block;
}




/* ── Tarjeta BLACK — wrapper solo maneja posición y rotación ── */
.tarjeta-black-wrap {
  width: 400px;
  position: absolute;
  top: -70px;
  right: -28px;
  z-index: 1;
  transform: rotate(5deg);         /* rotación aquí */
  filter: drop-shadow(0 12px 24px rgba(2,0,0,0));
}








/* ── 3 Feature cards ── */
.s1-features {
    
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
  width: 98%;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 4%;
}

.feat-card {
    margin-left: 6%;
  padding: 0;
  border-radius: 16px !important;  /* !important sobreescribe Bootstrap */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  border: 3px solid #003fb7 !important;
  transition: transform .25s;
  position: relative;
 
  width: 88%;
}
.feat-card:hover { transform: translateY(-10px); }

/* ── Imagen sin gaps ── */
.feat-card-img-wrap {
  width: 100%;
  overflow: hidden;          /* ← recorta solo la imagen */
  border-radius: 13px 13px 0 0;  /* ← esquinas superiores redondeadas */
  line-height: 0;
}
.feat-card .card-img-top {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

/* ── Ícono centrado en el borde imagen/body ── */
.feat-card-icon {
  width: clamp(56px, 4.5vw, 72px);
  height: clamp(56px, 4.5vw, 72px);
  background: #003fb7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: calc(39% - clamp(28px, 2.25vw, 36px));
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 16px rgba(0,63,183,.4);
  transition: transform .25s, box-shadow .25s;
  z-index: 10;
  overflow: hidden;
  text-decoration: none;
  
}
.feat-card-icon:hover {
  transform: translateX(-50%) scale(1.15);
  background: #FFC900;
  box-shadow: 0 6px 20px rgba(216, 219, 4, 0.6);
}
.feat-card-icon img {
  width: 150%;
  height: auto;
}

/* ── Body ── */
.feat-card-body {
  padding: 48px 20px 24px !important;  /* !important sobreescribe Bootstrap */
  text-align: center;
  background: #ffffff;
  margin: 0;
}
.feat-card-body h3 {
  
  font-size: clamp(25px, 1.1vw, 17px);
  font-weight: 800;
  color: #003fb7;
  margin-bottom: 8px;
}
.feat-card-body p {
  font-size: clamp(18px, 0.85vw, 13px);
  color: #003fb7;
  line-height: 1.6;
  margin: 0;
}


/* ── Responsive Section 1 ── */
@media (max-width: 1200px) {
  #carouselHero {
    width: 95%;
  }
  .s1-hero {
    padding: 30px 40px;
    height: auto;
    min-height: 500px;
  }
  .s1-hero-left .text-2 {
    font-size: 52px;
  }
  .s1-hero-left .text-1 {
    font-size: 38px;
  }
  .s1-hero-right {
    width: 380px;
  }
}

@media (max-width: 1024px) {
  #carouselHero .carousel-item {
    height: auto;
  }
  .s1-hero {
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    height: auto;
    gap: 16px;
  }
  .s1-hero-left {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    align-items: center;
    text-align: center;
  }
  .s1-hero-left .img_logo_convocados {
    margin-left: 0;
    width: 220px;
  }
  .s1-hero-left .text-1 { font-size: 32px; }
  .s1-hero-left .text-2 { font-size: 44px; }
  .s1-hero-right {
    width: 100%;
    max-width: 400px;
    height: 260px;
    margin-top: 0;
    margin-right: 0;
  }
  .tarjeta-gold-wrap {
    width: 280px;
  }
  .tarjeta-black-wrap {
    width: 280px;
    top: -50px;
    right: -10px;
  }
  .s1-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 95%;
  }
  .feat-card {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 1170px) and (min-width: 769px) {
  .feat-card-icon {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 40%;           /* ← mitad del alto negativa */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .feat-card-icon:hover {
    transform: translateX(-50%) scale(1.15);
  }
  .feat-card-icon img {
    width: 150%;
    height: auto;
  }

   .s1-features {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 48px;
  }
  .feat-card-body h3 { font-size: 16px !important; }
  .feat-card-body p  { font-size: 13px !important; }
  
}

/* Tablet - IPAD */
@media (max-width: 821px) and (min-width: 769px) {
  
 
  .feat-card-icon {
    width: 60px;
    height: 60px;
    position: absolute;
    bottom: 26%;           /* ← mitad del alto negativa */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  .feat-card{
    width: 90%;
    margin-left: 5%;
  }
  .feat-card-body {
    padding: 40px 18px 20px !important;  /* !important sobreescribe Bootstrap */
    text-align: center;
    background: #ffffff;
    margin: 0;
    
  }
  .feat-card-body h3 {
    
    font-size: clamp(25px, 1.1vw, 17px);
    font-weight: 800;
    color: #003fb7;
    margin-bottom: 8px;
  }
  .feat-card-body p {
    font-size: clamp(20px, 0.85vw, 13px);
    color: #003fb7;
    line-height: 1.6;
    margin: 0;
  }
   .s1-features {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 48px;
  }
  .feat-card-body h3 { font-size: 16px !important; }
  .feat-card-body p  { font-size: 13px !important; }
  
}

/* ── iPad / Tablet (768px - 1024px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .s1-hero {
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    height: auto;
    min-height: 500px;
  }

  .s1-hero-left {
    width: 100%;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

  .s1-hero-left .text-1 { font-size: 32px; }
  .s1-hero-left .text-2 { font-size: 44px; }

  /* ── Tarjetas más pequeñas en iPad ── */
  .s1-hero-right {
    width: 100%;
    max-width: 340px;        /* ← limitá el ancho máximo */
    height: 220px;
    margin-top: 20px;
    margin-right: 0;
  }


  .tarjeta-gold-wrap {
    width: 220px;            /* ← más pequeña */
    bottom: 0;
    left: 20px;
  }

  .tarjeta-black-wrap {
    width: 220px;            /* ← más pequeña */
    top: -40px;
    right: 20px;
  }
  .tarjeta-gold-inner::after {
  content: '';
  position: absolute;
  top: 18px;                  /* ← desde el borde superior */
  left: 0;                 /* ← sin negativos, el overflow se encarga */
  width: 48px;
  height: 80%;            /* ← ocupa todo el alto */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.06) 75%,
    transparent 100%
  );
  mix-blend-mode: overlay;  
  transform: translateX(-40px); 
  animation: brillo-gold 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes brillo-gold {
  0%   { transform: translateX(12px);   opacity: 0; }
  10%   { opacity: 1; }
  45%  { transform: translateX(200px); opacity: 0; }
  100% { transform: translateX(1px);   opacity: 0; }
}
}

@media (max-width: 768px) {
  .s1-hero {
    padding: 30px 20px;
    border-radius: 16px;
  }
  .s1-hero-left .text-1 { font-size: 26px; }
  .s1-hero-left .text-2 { font-size: 36px; }
  .s1-hero-left p { font-size: 13px; }
  .s1-hero-right {
    height: 220px;
    max-width: 320px;
  }
  .tarjeta-gold-wrap { width: 240px; }
  .tarjeta-black-wrap { width: 240px; top: -40px; right: -10px; }
  .s1-features {
    grid-template-columns: 1fr;
    width: 90%;
    gap: 48px;
  }
  .feat-card-body h3 { font-size: 16px !important; }
  .feat-card-body p  { font-size: 13px !important; }
}
@media (max-width: 768px) {
  /* ── Flechas más adentro ── */
  #carouselHero .carousel-control-prev { left: 8px; }
  #carouselHero .carousel-control-next { right: 8px; }

  #carouselHero .carousel-control-prev,
  #carouselHero .carousel-control-next {
    width: 32px;
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
  }
 
}


@media (max-width: 490px) {
  .s1-hero { padding: 24px 16px; border-radius: 12px; }
  .s1-hero-left .text-1 { font-size: 22px; }
  .s1-hero-left .text-2 { font-size: 30px; }
  .s1-hero-right { display: none; } /* ← oculta tarjetas en pantallas muy chicas */
  #carouselHero { width: 100%; border-radius: 0; }
  #carouselHero .carousel-inner { border-radius: 0; }
}
@media (max-width: 490px) {
  #carouselHero .carousel-control-prev { left: 6px; }
  #carouselHero .carousel-control-next { right: 6px; }

  #carouselHero .carousel-control-prev,
  #carouselHero .carousel-control-next {
    width: 28px;
    height: 28px;
  }

  /* ── Ícono más pequeño ── */
  #carouselHero .carousel-control-prev-icon,
  #carouselHero .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }
  .s1-hero-right{
    display: none;
  }
}
/* ── Responsive ── */
@media (max-width: 1024px) {
  .s1-features {
    gap: 3%;
    width: 95%;
  }
}
@media (max-width: 768px) {
  .s1-features {
    grid-template-columns: 1fr;
    width: 85%;
    gap: 48px;
  }
}