/* ==========================
   PALETA DE COLORES CEDIF
   ========================== */
:root {
  --cedif-blanco: #fcfcfc;
  --cedif-dorado: #d3b339;
  --cedif-azul: #1c2138;
  --cedif-rojo: #1c2138;
  --cedif-rojo-hover: #d3b339;
}

/* ==========================
   TIPOGRAFÍA GLOBAL
   ========================== */
body,
h1,
h2,
h5,
p,
label,
input,
select,
textarea,
button {
  font-family: 'Segoe UI', sans-serif;
}

/* ==========================
   NAVBAR CORPORATIVA
   ========================== */
.navbar {
  background-color: var(--cedif-azul);
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 65px; /* más delgada en desktop */
  padding: 0 1rem;
  display: flex;
  align-items: center;
}

/* Logo */
.logo-container {
  position: relative;
  margin-right: 20px;
}

.logo-circular {
  width: 85px;   /* más grande */
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 0px; /* sobresale un poco de la barra */
}

/* Menú links */
.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin-left: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--cedif-dorado) !important;
}

/* ==========================
   MENÚ HAMBURGUESA
   ========================== */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 6px;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Hover/activo dorado */
.custom-toggler:hover .navbar-toggler-icon,
.custom-toggler:focus .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23d3b339' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ==========================
   MENÚ COLAPSADO EN MÓVIL
   ========================== */
.navbar-collapse {
  background-color: var(--cedif-azul);
  padding: 1rem;
}

@media (max-width: 992px) {
  .navbar {
    min-height: 70px;
    justify-content: space-between;
  }

  .logo-container {
    position: relative;
    margin: 0;
  }

  .logo-circular {
    width: 70px;
    height: 70px;
    margin-top: 0;
  }

  .custom-toggler {
    position: relative;
    z-index: 1051;
  }

  .navbar-collapse {
    border-radius: 0 0 10px 10px;
  }
}






/* ==========================
   BOTONES
   ========================== */
.btn-dorado {
  background-color: var(--cedif-dorado);
  color: var(--cedif-azul);
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease-in-out;
}

.btn-dorado:hover {
  background-color: #b79c2d;
  color: white;
}

.btn-red {
  background-color: var(--cedif-rojo);
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
}

.btn-red:hover {
  background-color: var(--cedif-rojo-hover);
}

/* ==========================
   CONTENEDORES
   ========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .container {
    max-width: 95%;
  }
}

/* ==========================
   SECCIONES HERO (BANNER)
   ========================== */
/* Estilos generales del banner */
.hero {
  width: 100%;
  min-height: 650px;        /* 🔹 altura mínima segura */
  height: auto;             /* 🔹 deja que crezca según el contenido */
  background-size: cover;   /* 🔹 asegura que cubra sin deformarse */
  background-position: center top; /* 🔹 no corta la parte importante */
  background-repeat: no-repeat;
  border-radius: 0;
}

/* Imagenes */
.hero-bg-1 {
  background-image: url('../img/banner/01-2.png');
}

.hero-bg-2 {
  background-image: url('../img/banner/02-2.png');
}

.hero-bg-3 {
  background-image: url('../img/banner/03-4.png');
}

/* Texto del banner */
.banner-text h1,
.banner-text h5,
.banner-text p {
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.85);
}

.banner-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 800;
}

.banner-text p {
  font-size: 1.2rem;
  max-width: 650px;
}

.banner-centered {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}

@media (min-width: 992px) {
  .banner-text h1 {
    font-size: 3.6rem;
  }

  .banner-text p {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 350px;       /* 🔹 más pequeño pero sin cortar */
    background-size: contain; /* 🔹 muestra toda la imagen */
    background-position: top center;
  }
}

/* Flechas dentro del banner */
#heroCarousel {
  position: relative;
  width: 100%;
  /* 🔥 ancho completo */
  max-width: 100%;
  margin: 0 auto;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 45px;
  height: 45px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(206, 206, 206, 0.984);
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#heroCarousel .carousel-control-prev {
  left: 10px;
}

#heroCarousel .carousel-control-next {
  right: 10px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
  background-color: rgba(207, 207, 207, 0.833);
  transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  filter: invert(1) drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
  background-size: 70% 70%;
}

/* ==========================
   FOOTER
   ========================== */
.footer-cedif {
  background-color: var(--cedif-azul);
  color: var(--cedif-blanco);
}

.footer-title {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--cedif-dorado);
}

.footer-link {
  color: var(--cedif-blanco);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--cedif-dorado);
  text-decoration: underline;
}

.footer-logo {
  display: block;
  width: 90px;
  /* lo agrandé un poco */
  height: 90px;
  border-radius: 50%;
  background-color: white;
  background-image: url("../img/marca/logo-j.jpg");
  background-size: 80%;
  /* 🔽 más pequeño para que no toque bordes */
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.social-icon {
  font-size: 1.4rem;
  color: var(--cedif-blanco);
  margin: 0 6px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--cedif-dorado);
  transform: scale(1.2);
}

/* ==========================
   GALERÍA RESPONSIVA
   ========================== */
#galeriaCarousel img {
  max-height: 240px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;
}

#galeriaCarousel img:hover {
  transform: scale(1.05);
}

/* Ajuste flechas */
#galeriaCarousel .carousel-control-prev,
#galeriaCarousel .carousel-control-next {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.816);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

#galeriaCarousel .carousel-control-prev-icon,
#galeriaCarousel .carousel-control-next-icon {
  filter: invert(1) drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}


/* ==========================
   TARJETAS IMPONENTES (PROGRAMAS)
   ========================== */
.card-imponente {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.card-imponente img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-imponente:hover img {
  transform: scale(1.08);
}

/* Fondo degradado en la parte inferior */
.card-imponente::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  z-index: 1;
}

/* Texto inferior con fondo sólido */
.card-caption {
  background-color: #d3b339;
  /* 🔥 Fondo dorado sólido */
  color: #1c2138;
  /* Azul corporativo */
  font-weight: bold;
  z-index: 2;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-imponente:hover .card-caption {
  background-color: #1c2138;
  /* Azul al hacer hover */
  color: #d3b339;
  /* Dorado en hover */
}

/* ==========================
   HERO NOSOTROS
   ========================== */
.hero-nosotros {
  width: 100%;
  min-height: 65vh;
  background: url('../img/banner/nosotros-1.jpeg') center/contain no-repeat;
  /* 🔽 cambia la ruta a tu imagen */
  border-radius: 0;
  /* plano como un banner */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Overlay para mejorar legibilidad */
.hero-nosotros::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: rgba(0, 0, 0, 0.45);  capa oscura */
  border-radius: 0;
}

/* Texto sobre el overlay */
.hero-nosotros .container {
  position: relative;
  z-index: 1;
}

.hero-nosotros h1 {
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-nosotros p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* En pantallas pequeñas */
@media (max-width: 768px) {
  .hero-nosotros {
    min-height: 40vh;
    background-position: top center;
  }

  .hero-nosotros h1 {
    font-size: 1.8rem;
  }

  .hero-nosotros p {
    font-size: 1rem;
  }
}


/* ==========================
   HERO PROGRAMAS
   ========================== */
.hero-programas {
  width: 100%;
  min-height: 65vh;
  background: url('../img/banner/nprogramas.png')top center/contain no-repeat;
  /* 🔽 cambia la ruta a tu imagen */
  border-radius: 0;
  /* plano como un banner */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Overlay para mejorar legibilidad */
.hero-programas::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: rgba(0, 0, 0, 0.45);  capa oscura */
  border-radius: 0;
}

/* Texto sobre el overlay */
.hero-programas .container {
  position: relative;
  z-index: 1;
}

/* En pantallas pequeñas */
@media (max-width: 768px) {
  .hero-programas {
    min-height: 40vh;
    background-position: top center;
  }
}