/* ---------- PALETA ---------- */
:root {
  --verde-oscuro: #09463f;
  --verde-suave: #73ada1;
  --naranja: #cc570a;
  --amarillo: #edad1d;
  --marron: #663323;
  --rojo: #ce3f19;
}


/* Lado izquierdo con color + imagen */
.split-left {
  background-color: #486025; /* verde */
  background-image: url('https://www.reincorporacion.gov.co/es/Paginas/etcr-especial/img/cifras/7-%20Los_monos2.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply; /* mezcla color + imagen */
}

/* Lado derecho con color + imagen */
.split-right {
  background-color: #2fb4dd; /* azul */
  background-image: url('images/photo-3.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply; /* mezcla color + imagen */
}

/* ---------- INTRO TEXTO INSTITUCIONAL ---------- */

.intro-section {
  width: 100%;
  padding: 50px 50px;
 /*-- background: var(--verde-oscuro);--*/
  display: flex;
  justify-content: center;
}

.intro-container {
  width: 90%;
  max-width: 600px;
  color: white;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.95;
}

.intro-container p {
  margin-bottom: 22px;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .intro-container {
    font-size: 17px;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .intro-section {
    padding: 35px 0;
  }

  .intro-container {
    font-size: 15px;
    width: 92%;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .intro-container {
    font-size: 14px;
    line-height: 1.6;
  }
}


/* ---------- BANNER PRINCIPAL ---------- */
.banner {
  width: 100%;
  aspect-ratio: 16/9; /* hace que el banner sea responsivo */
  margin-top: 60px; /* evita tapar menú */
  position: relative;
  overflow: hidden;
}

.banner-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- GENERAL ---------- */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: var(--verde-oscuro) url("https://www.reincorporacion.gov.co/es/Paginas/etcr-especial/img/Capa%206.png") center/cover no-repeat fixed;
  color: white;
  overflow-x: hidden;
}

/* ---------- MENU SUPERIOR ---------- */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 20;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--amarillo);
}

.hamburger {
  width: 28px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: white;
  display: block;
  margin: 5px 0;
  border-radius: 2px;
}

/* MENU MÓVIL */
.mobile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  background: var(--marron);
  padding: 15px 20px;
  display: none;
  flex-direction: column;
}

.mobile-menu a {
  color: white;
  padding: 8px 0;
  text-decoration: none;
}

/* ---------- SLIDER ---------- */
.slider {
  padding-top: 100px;
}

.slider-container {
  display: flex;
  flex-wrap: wrap;        /* Antes: solo scroll horizontal */
  justify-content: center;
  gap: 24px;
  padding: 40px;
}

.slider-container::-webkit-scrollbar {
  height: 6px;
}

/* ---------- CARDS ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 380px;       /* antes min-width */
  aspect-ratio: 1/1;      /* cuadradas y responsivas */
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  transition: 0.35s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.card:hover {
  transform: scale(1.04);
  z-index: 10;
}

/* ---------- INFO PANEL ---------- */
.card-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.35);
}

.card-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.card-info p {
  margin: 0 0 10px;
  font-size: 14px;
  opacity: 0.88;
}

.btn {
  padding: 8px 14px;
  background: var(--naranja);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}


/* ---------- RESPONSIVE DESIGN ---------- */

/* Tablets */
@media (max-width: 1024px) {

  .slider-container {
    padding: 24px;
    gap: 20px;
  }

  .card {
    max-width: 320px;
    aspect-ratio: 4/3;
  }

  .card-info h2 { font-size: 18px; }
  .card-info p { font-size: 13px; }
}


/* Móviles */
@media (max-width: 768px) {

.banner {
    aspect-ratio: 4/3; /* más alto para teléfonos */
    margin-top: 60px;
  }

  .banner-inner img {
    object-fit: cover;
    object-position: center;
  }

  /* Menú */
  .menu {
    padding: 14px 18px;
  }

  .logo {
    font-size: 18px;
  }

  .hamburger span {
    height: 2.5px;
  }

  .mobile-menu {
    width: 100%;
    text-align: right;
    padding: 20px;
  }

  /* Slider */
  .slider-container {
    padding: 18px;
    gap: 18px;
  }

  .card {
    max-width: 100%;
    aspect-ratio: 4/5; /* más vertical para móviles */
  }

   .card-info {
    padding: 12px;
  }

  .card-info h2 { font-size: 17px; }
  .card-info p { font-size: 12px; }
  .btn { font-size: 12px; padding: 6px 12px; }

  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {

 .banner {
    aspect-ratio: 1/1; /* cuadrado → mejor composición en pantallas pequeñas */
  }
 .slider-container {
    padding: 14px;
    gap: 14px;
  }

  .card {
    aspect-ratio: 3/4;
  }

  .card-info {
    padding: 10px;
  }

  .card-info h2 { font-size: 15px; }
  .card-info p { font-size: 11px; }
  .btn { font-size: 11px; padding: 5px 10px; }
}
