html, body {
  font-family: 'Poppins', sans-serif !important;
}

html, body {
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/pattern-lego.png");
  background-repeat: repeat;
  background-size: 512px 512px; /* tamaño REAL del patrón */
  opacity: 0.10; /* controla la transparencia */
  pointer-events: none;
  z-index: 0;
}

.cima {
  padding-top: 60px;
  background-color: #ffeb3b !important; /* fondo naranja */
  padding-bottom: 60px;
}

/* Encabezado */
.titulo-box {
    position: relative;
    display: grid;
    border: 2px solid #000;
    padding: 20px 120px;
    border-radius: 5px;
    width: 65%;
}

.titulo-texto {
    font-weight: 800;
    font-size: 2.3rem;
    margin: 0;
    color: #fff;
}

.titulo-icon {
    width: 59px;
    position: absolute;
    left: -35px;
    top: 11px;
}

.azul-marino {
  background-color: #2b388f;
}

/* Grilla */
.cima-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjetas */
.card {
  width: 280px;
  border-radius: 5px;
  border: 2px solid #000;
  position: relative;
  padding: 12px;
  transition: transform 0.2s ease;
  color: #000;
}

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

.bordes {
  border: 2px solid #000;
   width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

.card h3 {
  font-weight: 700;
  margin: 12px 0 4px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
  padding: 0 16px 16px;
  line-height: 1.4;
}

/* Colores alternados */
.card.blue {
  background-color: #60a5fa;
  color: #fff;
  text-align: center;
}

.card.orange {
  background-color: #f97316;
  color: #fff;
  text-align: center;
}

/* Banderas */
.flag {
  position: absolute;
  bottom: -10px;
  right: -12px;
  width: 80px;
  height: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .cima-header {
    font-size: 1.4rem;
    padding: 10px 20px;
  }

  .card {
    width: 100%;
    max-width: 320px;
  }

  .cima-grid {
    gap: 30px;
  }

  .titulo-box {
    position: relative;
    display: grid;
    border: 2px solid #000;
    padding: 16px 30px;
    border-radius: 5px;
    width: 74%;
}
}

