/* ==========================
   ✅ ESTILOS CSS - BJM FINAL
   ========================== */

/* ---------- RESET GENERAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- BANNER SUPERIOR (REESTRUCTURADO) ---------- */
.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
  90deg,
  #000c1f,
  #003b6f,
  #0077cc,
  #003b6f,
  #000c1f
);
background-size: 400% 400%;
animation: brillo-banner 15s ease infinite; /* Azul eléctrico con brillo */
  padding: 0.6rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


@keyframes brillo-banner {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



.banner-top .logo img {
  height: 65px;
  max-height: 75px;
}

.banner-top .frase-banner {
  flex: 1;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f7f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.banner-top .frase-banner i {
  color: #0066cc;
  font-size: 1.3rem;
}


body {
  font-family: 'Rajdhani', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

h1 { font-size: 2.2rem; letter-spacing: 0.5px; }
h2 { font-size: 1.6rem; }

img, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ---------- CONTENEDORES ---------- */
.contenedor-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* El fondo del footer ocupará todo el ancho */
.contenedor-footer {
  width: 100%;
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: #fdfdfd;
  padding: 2rem 1rem 3rem;
  overflow: hidden;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
}


/* ---------- ESTRUCTURA GENERAL ---------- */
main {
  display: flex;
  flex-direction: column;
}

main > *:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

main + footer {
  margin-top: 0;
}

.bienvenida {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---------- CABECERA ---------- */
.logo img {
  height: 60px;
}

.menu-principal {
  margin-bottom: 0.9rem;
  transition: max-height 0.3s ease;
}

.menu-principal ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.menu-principal a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-principal a:hover {
  transform: scale(1.15);
  color: #0066cc;
}

.redes-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-left: 0;        /* 🔁 quita el padding que lo empuja */
  margin-left: 0rem;    /* ✅ usa un pequeño margen si hace falta separación */
}


.redes-header a {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.redes-header a:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* ---------- HERO VIDEO ---------- */
.hero-video {
  position: relative;
  overflow: hidden;
  height: 60vh;
}

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

.overlay-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.overlay-logo img {
  width: 180px;
}


/* 🔷 BARRA PERSONALIZADA TIPO OSCURA */
.barra-cta-personalizada {
  width: 100%;
  width: 99vw;
  max-width: none;
  margin: 0rem auto;
  background: linear-gradient(to right, #7196cd, #0b214a); /* de azul claro a azul marino oscuro */
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 50px 50px 0;
  gap: 1rem;
}

.btn-solicita,
.btn-experto {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  color: white;
  background-color: transparent;
  border: 2px solid white;
}

.btn-solicita {
  border-radius: 0 50px 50px 0;
  background-color: rgba(255, 255, 255, 0.1);
  margin-left: -0.5rem;
}

.btn-experto {
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-right: -0.5rem;
}

.btn-solicita:hover,
.btn-experto:hover {
  background-color: white;
  color: #0b214a;
  transform: scale(1.05);
}



/* ---------- BIENVENIDA ---------- */
.bienvenida {
  margin: 2rem auto 1rem auto;   /* menos separación arriba y abajo */
  padding: 1.5rem 1rem 2rem 1rem; /* menos padding superior */
  text-align: center;
  background-color: #f7f9fb;
  border-top: 3px solid #0066cc;
  border-bottom: 3px solid #0066cc;
}


.bienvenida .intro-destacada {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: #444;
}

.bloque-bienvenida {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.bloque-bienvenida .bloque-texto {
  flex: 1 1 400px;
  text-align: left;
}

.bloque-bienvenida .bloque-imagen {
  flex: 1 1 400px;
}

.bloque-bienvenida ul {
  list-style: none;
}

.bloque-bienvenida li {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  padding-left: 2rem;
  position: relative;
}

.bloque-bienvenida li::before {
  content: "\f0ad";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #28a745;
  position: absolute;
  left: 0;
  top: 0.1rem;
}

.bloque-cta {
  margin-top: 2rem;
}

.boton {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #0066cc;
  color: white;
  border-radius: 5px;
  margin: 0.5rem;
  transition: background-color 0.3s, transform 0.2s;
}

.boton:hover {
  background-color: #004a99;
  transform: scale(1.05);
}

.boton.secundario {
  background-color: #ccc;
  color: #333;
}

/* ---------- FRASE DESTACADA ---------- */
.frase-destacada {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0a0a0a;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.frase-destacada.visible {
  opacity: 1;
  transform: translateX(0);
}

.frase-destacada i {
  color: #0066cc;
  font-size: 1.5rem;
}

/* ---------- FOOTER ---------- */

.contenedor-footer {
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: #fdfdfd;
  padding: 2rem 1rem 3rem;
  overflow: hidden;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
}

.contenedor-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw; /* 🔥 Esto fuerza a ocupar todo el ancho del viewport */
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("../img/fondo azul planos.jpg") no-repeat center center / cover;
  z-index: 0;
  opacity: 1;
}


.contenedor-footer > * {
  position: relative;
  z-index: 1;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-info,
.footer-enlaces {
  flex: 1 1 250px;
}

.footer-redes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 1.4rem;
  margin-top: -9rem; /* Subimos iconos de redes */
}

.footer-redes a {
  color: #ccc;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-redes a:hover {
  color: #fff;
  transform: scale(1.2);
  filter: brightness(1.2);
}

.footer-info h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-info p,
.footer-info a {
  margin: 0.3rem 0;
  color: #ddd;
}

.footer-info a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-enlaces ul {
  list-style: none;
  padding: 0;
}

.footer-enlaces li {
  margin: 0.4rem 0;
}

.footer-enlaces a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-enlaces a:hover {
  color: #fff;
  transform: scale(1.05);
}

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  color: #ccc;
  font-size: 0.85rem;
}
/* Fondo circular gris */
.boton-cookies-config {
  position: fixed;
  bottom: 2rem;
  left: 1.2rem;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, #f8f8f8, #dcdcdc);
  border: 2px solid #999;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}

/* Botón azul más pequeño centrado dentro del gris */
.boton-cookies-config .abrir-config-cookies {
  all: unset;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0a2d47; /* azul marino */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  transition: transform 0.3s ease, background-color 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Efecto al pasar el ratón */
.boton-cookies-config .abrir-config-cookies:hover {
  transform: scale(1.1) rotate(20deg);
  background-color: #06304d;
}



/* ---------- BOTÓN ARRIBA ---------- */
#btn-top {
  position: fixed;
  bottom: 1.5rem;
  right: 2.5rem;
  background: #1f1f1f;
  color: white;
  border: 2px solid #666;
  font-size: 1.3rem;
  border-radius: 50%;
  padding: 0.8rem 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
  z-index: 1000;
}

#btn-top:hover {
  background-color: #444;
  transform: rotate(-10deg) scale(1.15);
}

/* ---------- MENÚ HAMBURGUESA ---------- */
.hamburguesa {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  padding: 0.5rem;
}





/* ---------- RESPONSIVE (solo en móvil) ---------- */

/* === BLOQUE RESPONSIVE UNIFICADO === */

@media screen and (max-width: 768px) {

  .hamburguesa {
    display: block;
  }
.banner-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  gap: 0.8rem;
}

.banner-top .logo img {
  height: 55px;
}

.banner-top .frase-banner {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;         /* 💪 más fuerza */
  text-align: center;       /* 🧭 centrado horizontal */
  line-height: 1.2;
  letter-spacing: 0.3px;
  color: #fdfdfd;
}

  .menu-principal {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ccc;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
  }

  .menu-principal.abierto {
    max-height: 500px;
    padding: 1rem 0;
  }

  .menu-principal ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.5rem;
    gap: 1rem;
  }

  .menu-principal a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  .redes-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0 auto;   /* 🡸 esto las empuja a la derecha */
  padding: 0;
}
.contenedor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
}

.hamburguesa {
  order: 1;
}

.redes-header {
  order: 2;
}

.bloque-bienvenida .bloque-texto h2 {
  text-align: center;
  margin: 0 auto 1rem auto;
  font-size: 1.2rem;
  line-height: 1.3;
}


  .contenedor-footer {
    padding: 0.8rem 1rem 1rem !important;
    margin-bottom: 2rem;
  }

  .footer-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-info p,
  .footer-enlaces li,
  .footer-copy {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
  }

  .footer-info p:last-of-type {
    margin-bottom: 0.3rem !important;
  }

  .footer-enlaces {
    margin-top: 0.5rem !important;
  }

  .footer-enlaces ul {
    padding: 0 !important;
  }

  .footer-enlaces li {
    margin: 0.1rem 0 !important;
  }

  .footer-enlaces a {
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-copy {
    margin-top: 0.8rem !important;
    margin-bottom: 0.3rem !important;
    font-size: 0.8rem;
  }

  .footer-redes {
    display: flex;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.3rem !important;
  }

  .footer-redes a {
    font-size: 1.4rem;
  }

  .boton-cookies-config {
    bottom: 1rem !important;
    left: 1rem;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .boton-cookies-config a {
    display: flex;
    color: #0066cc;
    font-size: 1.5rem;
  }

  .boton-cookies-config a span {
    display: none;
  }

  #btn-top {
    position: fixed;
    bottom: 1rem !important;
    right: 1rem;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.5rem;
    border-radius: 50%;
    background: #1f1f1f;
    color: white;
    border: 2px solid #666;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1500;
  }

  #btn-top:hover {
    background-color: #444;
    transform: rotate(-10deg) scale(1.1);
  }
}

main.bienvenida {
  margin-bottom: 2rem;
}

.introduccion-bjm {
  text-align: center;
  padding: 1rem 1.2rem;
}

.introduccion-bjm h2 {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.introduccion-bjm p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}


/* === CORRECCIÓN: FLEX MOBILE - FOOTER BLOQUES === */
@media screen and (max-width: 768px) {
  .footer-info,
  .footer-enlaces {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}
@media screen and (max-width: 768px) {
  .banner-top .frase-banner i {
    display: none;
  }
}


@media (max-width: 768px) {
  .barra-cta-personalizada {
    width: 100vw;
    max-width: 100vw;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0;
  }

  .btn-solicita,
  .btn-experto {
    flex: 1;
    min-width: 48%;
    margin: 0;
    border-radius: 50px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}



/* ===============================
   ✅ ESTILOS COOKIES
   =============================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0b214a;
  color: white;
  padding: 1rem;
  font-size: 0.95rem;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 100%;
  margin-bottom: 0.8rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-buttons button {
  background: white;
  color: #0b214a;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.cookie-buttons button:hover {
  background-color: #f0f0f0;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookie-modal-contenido {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  font-size: 0.95rem;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
  transition: none !important;
}

.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #0b214a;
}

.cookie-modal label {
  display: block;
  margin: 0.75rem 0;
}

.cookie-modal-botones {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.cookie-modal-botones button {
  padding: 0.5rem 1rem;
  background-color: #0b214a;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cookie-modal-botones button:hover {
  background-color: #092036;
}

.oculto {
  display: none !important;
}

.boton-cookies-config button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 1.5rem;
  background-color: #0b214a;
  color: white;
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
  border: none;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* ===============================
   ✅ COOKIES: ESTILO MECÁNICO INDUSTRIAL
   =============================== */
.configuracion-cookies {
  background: repeating-linear-gradient(45deg, #d3d3d3, #d3d3d3 4px, #c4c4c4 4px, #c4c4c4 8px);
  border: 3px solid #2b2b2b;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  max-width: 450px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
  line-height: 1.4;
}

.configuracion-cookies h2 {
  font-size: 1.4rem;
  color: #0b1d38;
  border-bottom: 2px dashed #0b1d38;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.configuracion-cookies label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0;
  padding: 0.4rem 0.6rem;
  border-left: 4px solid #0b1d38;
  background: #f4f4f4;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.configuracion-cookies label:hover {
  background: #e0e0e0;
}

.configuracion-cookies input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: #0b1d38;
}

.cookie-modal-botones {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
}

.cookie-modal-botones button {
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cookie-modal-botones button:first-child {
  background: linear-gradient(to bottom, #0b1d38, #1e2e45);
  color: #fff;
}

.cookie-modal-botones button:first-child:hover {
  background: #1f3c63;
  transform: scale(1.05);
}

.cookie-modal-botones button:last-child {
  background: #ccc;
  color: #222;
}

.cookie-modal-botones button:last-child:hover {
  background: #bbb;
  transform: scale(1.05);
}


/* =========================
   🔧 ESTILOS HERO CARRUSEL
   ========================= */

.hero-carrusel {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  position: relative;
}

.carrusel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carrusel-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 1rem;
}

.carrusel-slide.activo {
  opacity: 1;
  z-index: 1;
}

.texto-carrusel h1 {
  font-size: 2.2rem;
  font-weight: 700;
  background-color: rgba(0,0,0,0.5);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.texto-carrusel p {
  font-size: 1.2rem;
  margin-top: 0.8rem;
  background-color: rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* =========================
   ✨ ANIMACIÓN APARICIÓN
   ========================= */

.animar-aparicion {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.animar-aparicion.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero-carrusel {
    height: 50vh;
  }

  .texto-carrusel h1 {
    font-size: 1.6rem;
  }

  .texto-carrusel p {
    font-size: 1rem;
  }
}



/* 💥 BLOQUE INSTITUCIONAL POTENTE Y VISUAL */
.bloque-institucional {
  width: 100%;
  margin: 0;
  padding: 4rem 0;
  background: linear-gradient(to bottom right, #10141a, #0b214a);
  color: #f4f4f4;
  font-family: 'Rajdhani', sans-serif;
  border-top: 4px solid #00f0ff;
  border-bottom: 4px solid #00f0ff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s ease-out forwards;
}

/* NUEVO: contenedor interior centrado */
.bloque-institucional .contenedor-max {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 2rem;
}


.bloque-institucional h2 {
  font-size: 2rem;
  border-bottom: 2px solid #4ecdc4;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.bloque-institucional p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.bloque-institucional strong {
  color: #4ecdc4;
}

.destacado-frase {
  background: #1c2d3c;
  color: #ffffff;
  font-weight: 600;
  padding: 1.2rem 2rem;
  border-left: 5px solid #00ffff;
  border-right: 5px solid #00ffff;
  border-radius: 10px;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  font-size: 1.2rem;
  line-height: 1.6;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .destacado-frase {
    width: calc(100% - 2rem);
    margin: 1rem auto;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    box-sizing: border-box;
    word-break: break-word;
  }
}





.valores-bjm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.valor-item {
  background-color: #1c2d3c;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.valor-item:hover {
  transform: translateY(-8px);
}

.valor-item i {
  font-size: 2rem;
  color: #4ecdc4;
  margin-bottom: 0.5rem;
}

.valor-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.valor-item p {
  font-size: 1rem;
  color: #ccc;
}

/* Animaciones */
@keyframes aparecer {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .bloque-institucional {
    padding: 2rem 1.5rem;
  }
  .bloque-institucional h2 {
    font-size: 1.6rem;
  }
  
}


/* 🔳 BLOQUE DE ENLACES INTERNOS (TARJETAS) */
.bloque-enlaces-internos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.card-enlace {
  background: #1c2b36;
  color: #f4f4f4;
  text-decoration: none;
  border: 2px solid #00ffff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  font-family: 'Rajdhani', sans-serif;
}

.card-enlace:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.4);
}

.card-enlace i {
  font-size: 2.2rem;
  color: #00ffff;
  margin-bottom: 1rem;
  display: block;
}

.card-enlace h3 {
  font-size: 1.2rem;
  font-weight: 600;
}



/* 💥 EFECTO CLICK POP */
.card-enlace.explosion {
  animation: pulse-pop 0.3s ease;
}

@keyframes pulse-pop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 255, 255, 0.2);
  }
}


@media screen and (max-width: 768px) {
  .bloque-enlaces-internos {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .card-enlace {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
}


/* 🎯 HISTORIA BJM - ESTILO INDUSTRIAL DISTINTIVO */

.historia-contenedor {
  width: 100%;
  margin: 0;
  padding: 4rem 1.5rem;
  background: linear-gradient(to right, #0a1126, #0b214a);
  color: #f5f5f5;
  font-family: 'Rajdhani', sans-serif;
  border-top: 4px solid #00f0ff;
  border-bottom: 4px solid #00f0ff;
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.2);
}
.historia-contenedor h2 {
  color: #00f0ff;
  border-bottom: 2px solid #00f0ff;
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  font-size: 1.7rem;
}
.historia-contenedor p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #dceeff;
}
.historia-contenedor strong {
  font-weight: 600;
  color: #ffffff;
}

.bloque-historia {
  max-width: 1150px;
  margin: 2rem auto 5rem auto; /* Reduces top margin and increases bottom */
  padding: 2.5rem 3rem 3rem 3rem; /* Ajusta el padding si quieres más espacio dentro */
  background: linear-gradient(to right, #0a1126, #0b214a);
  border: 3px solid #00f0ff;
  border-radius: 16px;
  color: #f5f5f5;
  font-family: 'Rajdhani', sans-serif;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Menos espacio arriba del título */
.bloque-historia h2:first-of-type {
  margin-top: 0.5rem;
}

/* Más espacio debajo del bloque frase final */
.bloque-frase {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem; /* Aumentamos margen inferior */
  color: #00f0ff;
}
.bloque-historia h1,
.bloque-historia h2 {
  color: #00f0ff;
  border-bottom: 2px solid #00f0ff;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}
.bloque-historia p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #dceeff;
}
.bloque-historia:hover {
  transform: scale(1.01);
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.4);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .historia-industrial {
    padding: 2rem 1rem;
  }
  .bloque-historia h2 {
    font-size: 1.6rem;
  }
  .bloque-historia p {
    font-size: 1.05rem;
  }
  .bloque-frase {
    font-size: 1.05rem;
    flex-direction: column;
    text-align: center;
  }
}


.animado {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animado.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ Ajustes responsive para QUIENES SOMOS en móviles */
@media screen and (max-width: 768px) {
  .bloque-institucional {
    width: 100%;
    padding: 2rem 1rem;
    margin: 2rem auto;
    box-sizing: border-box;
    border-radius: 12px;
  }

  .introduccion-bjm h2 {
    text-align: center;
    font-size: 1.4rem;
  }

  .introduccion-bjm p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
  }

  .destacado-frase {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    margin: 2rem auto;
    text-align: center;
    font-size: 1.1rem;
  }

  .valores-bjm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .valor-item {
    width: 100%;
    max-width: 320px;
    padding: 1rem;
  }
}
@media screen and (max-width: 768px) {
  .bloque-historia p {
    text-align: center;
  }
}

.bloque-cta {
  text-align: center;
}
.bloque-cta a {
  display: inline-block;
  margin: 0.5rem;
}

@media screen and (max-width: 768px) {
  .bienvenida {
    text-align: center;
  }

  .bienvenida h2,
  .bienvenida p {
    text-align: center;
  }

  .bloque-bienvenida .bloque-texto ul {
    padding-left: 0;
    text-align: left; /* si prefieres dejar la lista alineada a la izquierda */
  }
}

@media screen and (max-width: 768px) {
  .bienvenida h1,
  .bienvenida .intro-destacada {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    max-width: 95%;
  }

  .bienvenida h1 {
    font-size: 1.7rem;
    line-height: 1.4;
  }
}

/* === EQUIPO - SECCIÓN === */
.equipo-bjm {
  background: linear-gradient(to right, #0a1126, #0b214a);
  padding: 6rem 2rem 4rem;
  color: #dceeff;
  font-family: 'Rajdhani', sans-serif;
  text-align: center;
  border-top: 4px solid #00f0ff;
}

/* === INTRO EQUIPO - BLOQUE ANIMADO === */
.equipo-intro {
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  padding: 3rem 2rem;
  background: linear-gradient(to right, #0a1126, #0b214a);
  color: #dceeff;
  border-radius: 16px;
  border-left: 5px solid #00ffff;
  border-right: 5px solid #00ffff;
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.equipo-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.equipo-intro h2 {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #00ffff;
  padding-bottom: 0.5rem;
}

.equipo-intro p {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.equipo-intro strong {
  color: #ffffff;
}

.frase-equipo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00f0ff;
  background-color: #1c2d3c;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,255,255,0.2);
  display: inline-block;
  margin-top: 2rem;
}

.frase-equipo i {
  margin-right: 0.5rem;
  color: #00f0ff;
}

/* ✅ Responsive */
@media screen and (max-width: 768px) {
  .equipo-bjm {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .equipo-intro {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
  }

  .equipo-intro h2 {
    font-size: 1.6rem;
  }

  .equipo-intro p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.2rem;
  }

  .frase-equipo {
    font-size: 1.05rem;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
  }
}

/* === CARRUSEL EQUIPO === */
.carrusel-equipo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 100%;
}

.carrusel-contenido {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem;
  max-width: 95%;
  scrollbar-width: none;
}

.carrusel-contenido::-webkit-scrollbar {
  display: none;
}

.card-persona {
  background: #1c2d3c;
  border-radius: 12px;
  padding: 1rem;
  color: #fff;
  text-align: center;
  min-width: 220px;
  max-width: 220px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

.card-persona:hover {
  transform: translateY(-6px);
}

.card-persona img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card-persona h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.2rem;
  color: #4ecdc4;
}

.carrusel-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #00f0ff;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}

@media screen and (max-width: 768px) {
  .carrusel-contenido {
    padding: 1rem 0.5rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-padding: 1rem;
  }

  .card-persona {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    scroll-snap-align: center;
    border-radius: 14px;
  }

  .card-persona img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }

  .card-persona h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #4ecdc4;
  }

  .card-persona p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    color: #dceeff;
  }

  .carrusel-btn {
    font-size: 1.8rem;
    padding: 0.3rem 0.6rem;
  }
}

.como-trabajamos {
  margin: 4rem auto 2rem;
  max-width: 1100px;
  padding: 3rem 2rem;
  background: linear-gradient(to right, #0a1126, #0b214a);
  color: #dceeff;
  border-top: 4px solid #00f0ff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.como-trabajamos.visible {
  opacity: 1;
  transform: translateY(0);
}

.como-trabajamos h2 {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 2rem;
  border-bottom: 2px solid #00ffff;
  padding-bottom: 0.5rem;
}

.intro-compromiso {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.bloques-trabajo {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.bloque-item {
  background: #1c2d3c;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  flex: 1 1 30%;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  text-align: center;
}

.bloque-item i {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 1rem;
}

.bloque-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #4ecdc4;
}

.bloque-item p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #dceeff;
}

/* ✅ Responsive */
@media screen and (max-width: 768px) {
  .bloques-trabajo {
    flex-direction: column;
    align-items: center;
  }

  .bloque-item {
    width: 100%;
    max-width: 95%;
  }

  .como-trabajamos h2 {
    font-size: 1.6rem;
  }

  .intro-compromiso {
    font-size: 1.05rem;
  }
}


/* mision vison, valores */
/* mision vision valores */
.bloque-con-bordes {
  border-top: 4px solid #00f0ff;
  border-bottom: 4px solid #00f0ff;
}

.mvv-bjm {
  padding: 3rem 1.5rem;
  background: linear-gradient(to right, #0a1126, #0b214a);
  color: #dceeff;
  font-family: 'Rajdhani', sans-serif;
}

.bloque-mvv {
  margin: 3rem auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mvv-bloque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.mvv-bloque.vision-invertida {
  flex-direction: row-reverse;
}

.mvv-texto {
  flex: 1 1 500px;
}

.mvv-imagen {
  flex: 1 1 500px;
}

.mvv-imagen img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0,255,255,0.15);
}

.mvv-titulo {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #00ffff;
  padding-bottom: 0.4rem;
  font-family: 'Pacifico', cursive;
}

.mvv-titulo.mision {
  color: #00cfff;
}
.mvv-titulo.vision {
  color: #ff8c42;
}
.mvv-titulo.valores {
  color: #4ecdc4;
}

.mvv-parrafo {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.valores-lista {
  list-style: none;
  padding-left: 0;
}
.valores-lista li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.valores-lista li::before {
  content: "✔";
  color: #00ffff;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .mvv-bloque {
    flex-direction: column;
    text-align: center;
  }

  .mvv-texto {
    flex: 1 1 100%;
  }

  .mvv-imagen {
    flex: 1 1 100%;
  }

  .mvv-titulo {
    font-size: 1.6rem;
  }

  .mvv-parrafo {
    font-size: 1.05rem;
  }

  .valores-lista li {
    font-size: 1rem;
  }

  .intro-destacada {
   text-align: justify; 
  }
}


/* 📩 CONTACTO */
.contacto-bjm {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  font-family: 'Rajdhani', sans-serif;
  color: #dceeff;
  background: linear-gradient(to right, #0a1126, #0b214a);
  border-top: 4px solid #00f0ff;
  border-bottom: 4px solid #00f0ff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.contacto-bjm h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #00f0ff;
}

.formulario-contacto {
  margin-bottom: 3rem;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f2f2f2;
  color: #222;
}

.formulario-contacto label {
  font-weight: bold;
  color: #ffffff;
}

.boton-enviar {
  background-color: #00f0ff;
  color: #0a1126;
  font-weight: 700;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.boton-enviar:hover {
  background-color: #00cfff;
}

.datos-contacto h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #4ecdc4;
}

.datos-contacto p {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.datos-contacto a {
  color: #00f0ff;
  text-decoration: none;
}

.datos-contacto .mapa {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.datos-contacto .mapa iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.whatsapp-contacto {
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  gap: 0.6rem;
  background-color: #25d366;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-contacto:hover {
  transform: scale(1.05);
}

.consentimiento {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #dceeff;
}

.consentimiento input[type="checkbox"] {
  margin-top: 0.2rem;
  margin-right: 0.5rem;
  transform: scale(1.2);
  accent-color: #00f0ff;
}

.consentimiento label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}
.bloqueo-cookies-form {
  padding: 2rem;
  text-align: center;
  background-color: #1a2a3a;
  border: 2px dashed #00f0ff;
  border-radius: 12px;
  color: #dceeff;
  margin-bottom: 2rem;
}

.bloqueo-cookies-form p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.bloqueo-cookies-form .boton-enviar {
  background-color: #00f0ff;
  color: #0a1126;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* ✅ Responsive */
@media screen and (max-width: 768px) {
  .contacto-bjm {
    padding: 2rem 1rem;
  }

  .formulario-contacto {
    margin-bottom: 2rem;
  }

  .formulario-contacto form {
    gap: 1.2rem;
  }

  .formulario-contacto input,
  .formulario-contacto textarea {
    font-size: 1rem;
    padding: 1rem;
    width: 100%;
  }

  .formulario-contacto label {
    font-size: 1rem;
  }

  .boton-enviar {
    width: 100%;
    font-size: 1rem;
  }

  .datos-contacto h2 {
    text-align: center;
    font-size: 1.4rem;
  }

  .datos-contacto p {
    font-size: 1rem;
    text-align: center;
  }

  .datos-contacto .mapa iframe {
    height: 250px;
  }

  .whatsapp-contacto {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }
}


.gracias-bjm {
  max-width: 600px;
  margin: 6rem auto;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  color: #ffffff;
  background: linear-gradient(to right, #0a1126, #0b214a);
  padding: 4rem 2rem;
  border: 4px solid #00f0ff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

.gracias-bjm h1 {
  color: #00f0ff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.gracias-bjm p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.boton-volver {
  background-color: #00f0ff;
  color: #0a1126;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.boton-volver:hover {
  background-color: #00cfff;
}


/* ===============================
   ✅ ESTILO FONDO CONTACTO IGUAL A "QUIÉNES SOMOS"
   =============================== */
.fondo-contacto {
  background: linear-gradient(to bottom, #0a1a35, #0b214a);
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
  color: white;
}

.fondo-contacto h1 {
  text-align: center;
  font-size: 2.2rem;
  position: relative;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.fondo-contacto h1::before,
.fondo-contacto h1::after {
  content: "";
  display: block;
  height: 3px;
  width: 80%;
  margin: 0 auto;
  background: linear-gradient(to right, #00eaff, #00ffe7, #00eaff);
  box-shadow: 0 0 10px #00fff7;
}


/* Fondo azul oscuro solo al main institucional */
.bloque-institucional {
  background: linear-gradient(to bottom, #0a1a35, #0b214a);
  color: white;
  padding: 5rem 2rem;
}

.contenedor-max {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
