* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial;
  color: var(--tinta, #072a31);
  background: var(--fondo, #ffffff);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.contenedor {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Offset para anclas, para que la barra amarilla no tape los títulos */
#inicio,
#nosotros,
#servicios,
#bolsa-trabajo,
#contacto {
  scroll-margin-top: 80px;
}


/* NAV base */
.barra-superior {
  background: #fede58;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navegacion {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marca {
  display: flex;
  gap: 10px;
  align-items: center;
}

.marca img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

/* =========================
   BOTÓN MENÚ (HAMBURGUESA)
========================= */

.btn-menu {
  display: none;               /* se activa solo en móvil */
  background: #fede58;
  border: 2px solid #072a31;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  justify-content: center;
  align-items: center;
}

/* Las 3 líneas */
.btn-menu span {
  position: absolute;
  left: 50%;
  width: 24px;                 /* largo de las líneas */
  height: 3px;
  background: #072a31;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Posiciones: arriba, centro y abajo (centradas en el botón) */
.btn-menu span:nth-child(1) {
  top: 16px;
}
.btn-menu span:nth-child(2) {
  top: 22px;
}
.btn-menu span:nth-child(3) {
  top: 28px;
}

/* Estado X (menú abierto) – centrado exacto */
.btn-menu.abierto span:nth-child(1) {
  top: 22px;
  transform: translateX(-50%) rotate(45deg);
}

.btn-menu.abierto span:nth-child(2) {
  opacity: 0;
}

.btn-menu.abierto span:nth-child(3) {
  top: 22px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Menú desktop */
.menu {
  display: flex;
  gap: 22px;
}

.menu a {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: lowercase;
  opacity: 0.95;
}

.menu a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* PORTADA + CARRUSEL */
.portada {
  position: relative;
}

.portada .carousel-item {
  position: relative;
}

.portada .imagen-fondo {
  width: 100%;
  height: 80vh;
  min-height: 420px;
  max-height: 900px;
  object-fit: cover;
  filter: contrast(1) saturate(1.05) brightness(0.9);
}

.portada .velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  z-index: 0;
}

.portada-caption {
  z-index: 1;
  left: 8%;
  right: auto;
  bottom: 18%;
  text-align: left;
}

.titulo-animada {
  margin: 0;
  color: #fff;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 9vw, 110px);
  line-height: 0.85;
  letter-spacing: 0.06em;
}

.titulo-animada span {
  display: block;
  transform: translateY(40px);
  opacity: 0;
  animation: subir-letras 0.7s ease-out forwards;
}

.titulo-animada span:nth-child(2) {
  animation-delay: 0.12s;
}
.titulo-animada span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes subir-letras {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  70% {
    transform: translateY(-4px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animación de entrada para cards en móvil */
@keyframes card-mobile-in {
  0% {
    transform: translateY(18px) scale(0.97);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.portada-caption .lead {
  color: #f5f5f5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 420px;
  font-weight: 400;
}

/* EFECTO ZOOM (KEN BURNS) */
.portada .carousel-item .imagen-fondo {
  transform: scale(1);
  transition: transform 8s ease-out;
}

.portada .carousel-item.active .imagen-fondo {
  transform: scale(1.15);
}

.portada .carousel-item .imagen-fondo {
  will-change: transform;
}

/* FRANJA AMARILLA */
.cinta {
  height: 40px;
  background: #fede58;
}

/* SECCIONES GENERALES */
.seccion {
  padding: 38px 0;
}

.seccion h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 22px;
  font-weight: 800;
}

/* NOSOTROS */
.nosotros {
  background: #0cc0df;
  padding: 60px 0;
}

#titulo_nosotros {
  color: #000;
  margin: 0 0 36px;
}

.rejilla {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.tarjeta {
  background: #e7fbff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.nosotros p {
  margin: 0;
  line-height: 2.1;
  background: #e7fbff;
  padding: 14px 16px;
  text-align: justify;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* SERVICIOS */
.servicios {
  background: #0cc0df;
}

.servicios h2 {
  color: #072a31;
}

.iconos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  place-items: center;
}

.servicio {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: #072a31;
  position: relative;
  cursor: pointer;
}

.servicio .icono-badge {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: #e7fbff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio:hover .icono-badge {
  transform: scale(1.07);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

@media (max-width: 900px) {
  .servicio:active .icono-badge {
    transform: scale(0.96);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  }
}

.servicio .icono {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.servicio b {
  font-size: 1.3rem;
}

.servicio small {
  opacity: 0.8;
}

/* CARDS SERVICIOS */
.servicio-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  max-width: 90vw;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  padding: 1rem 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
  z-index: 10;
  border: 3px solid #0cc0df;
}

.servicio-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.75rem;
}

.servicio-card h3 {
  font-size: 1.05rem;
  color: #072a31;
  margin-bottom: 0.3rem;
}

.servicio-card p {
  font-size: 0.85rem;
  color: #072a31;
  margin-bottom: 0.4rem;
}

.servicio-card ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: #072a31;
}

.servicio-card li {
  margin-bottom: 0.2rem;
}

.servicio:hover .servicio-card {
  opacity: 1;
  visibility: visible;
}

/* SERVICIOS – VERSIÓN MÓVIL */
@media (max-width: 900px) {
  .iconos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .servicio {
    position: static;
  }

  .servicio-card {
    position: relative;
    top: auto;
    left: auto;
    width: 350px;
    max-width: 480px;
    margin-top: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.97);
  }

  .servicio-card.card-visible {
    animation: card-mobile-in 0.45s ease-out forwards;
  }

  .servicio-card-img {
    height: 110px;
  }

  .servicio:active .servicio-card.card-visible {
    transform: translateY(4px) scale(0.97);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  }
}

/* BOLSA DE TRABAJO */
#bolsa-trabajo {
  scroll-margin-top: 80px;
  background-color: #00C5E0 !important; /* Turquesa JOMAPER */
}

.section-title {
  font-weight: 700;
  text-transform: uppercase;
}

.job-docs-card,
.job-form-card {
  border-radius: 1rem;
  border: none;
}

.job-docs-card .card-body,
.job-form-card .card-body {
  padding: 1.75rem;
}

.job-docs-list li {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

#bolsa-trabajo .form-label {
  font-weight: 500;
}

#bolsa-trabajo .form-control {
  border-radius: 0.6rem;
}

#bolsa-trabajo .btn-primary {
  border-radius: 999px;
  font-weight: 500;
}

/* CONTACTO */
.contacto {
  background: #0cc0df;
}

.rejilla-contacto {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.pila {
  display: grid;
  gap: 14px;
}

.fila {
  display: flex;
  align-items: center;
  gap: 10px;
}

.redes {
  display: flex;
  gap: 12px;
}

.redes a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.telefono {
  font-size: 1.2rem;
  font-weight: 800;
}

/* PIE */
.pie {
  background: #fede58;
  text-align: center;
  padding: 14px 10px;
  color: #666;
  border-top: 4px solid var(--amarillo, #fede58);
}

/* BOTÓN STICKY WHATSAPP */
.btn-whatsapp-sticky {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-whatsapp-sticky:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  background: #1ebe5d;
}

.btn-whatsapp-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.btn-whatsapp-texto {
  line-height: 1.1;
}

@media (max-width: 480px) {
  .btn-whatsapp-sticky {
    padding: 8px 10px;
    font-size: 0.8rem;
    right: 12px;
    bottom: 12px;
  }

  .btn-whatsapp-texto strong {
    display: block;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 80px;
  }
}

/* RESPONSIVE GENERAL */
@media (max-width: 900px) {
  .portada .imagen-fondo {
    height: 320px;
  }

  .rejilla,
  .rejilla-contacto {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .portada-caption {
    left: 10%;
    bottom: 14%;
  }

  .titulo-animada {
    font-size: clamp(34px, 12vw, 58px);
  }

  .portada-caption .lead {
    font-size: 0.9rem;
  }
}

/* NAV MÓVIL: overlay */
@media (max-width: 768px) {
  .marca img {
    height: 30px;
  }

  .btn-menu {
    display: inline-flex;   /* aquí se muestra el botón */
  }

  .menu {
    position: fixed;
    top: 60px;              /* debajo de la barra amarilla */
    left: 0;
    right: 0;
    background: #fede58;
    flex-direction: column;
    padding: 16px 24px 32px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.25s ease-out;
    z-index: 900;
  }

  .menu a {
    font-size: 1.1rem;
  }

  .menu.menu-abierto {
    transform: translateY(0);
  }
}
