/* Estilos para el banner de El Barrio de Leganitos */
.hermandad-banner {
  width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
}

.hermandad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}

.hermandad-banner .white-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 120px;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  z-index: 1;
}

.hermandad-banner .text-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 760px; /* 40px menos que la caja para padding */
  padding: 10px 20px;
}

.hermandad-banner h1 {
  color: #0F4C81;
  font-family: 'Great Vibes', cursive;
  font-size: 4.5rem;
  font-weight: 400;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 1px;
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 900px) {
  .hermandad-banner {
    height: 300px;
  }
  .white-box, .text-container {
    width: 90% !important;
    max-width: 600px;
  }
  .white-box {
    height: 100px !important;
  }
  .text-container {
    width: calc(90% - 40px) !important; /* Mismo ancho que la caja menos padding */
  }
  .hermandad-banner h1 {
    font-size: 2.8rem !important;
  }
}

@media (max-width: 480px) {
  .white-box {
    height: 150px !important;
  }
  .text-container {
    width: calc(90% - 30px) !important;
    padding: 5px 15px !important;
  }
  .hermandad-banner h1 {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
  }
}

/* Estilos para el contenido de El Barrio de Leganitos */
.barrio-leganitos {
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: 'Georgia', serif;
    color: #222;
}

.contenido-amplio {
    max-width: 1400px;
    margin: 0 auto;
}

.barrio-container {
    display: flex;
    gap: 40px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
}

.barrio-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.barrio-imagen img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.barrio-texto {
    flex: 1;
    min-width: 300px;
}

.barrio-texto h2 {
    font-size: 2rem;
    color: #0F4C81;
    margin-bottom: 20px;
    border-left: 6px solid #D4AF37;
    padding-left: 12px;
    font-weight: normal;
}

.barrio-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.barrio-texto strong {
    color: #0F4C81;
    font-weight: bold;
}

.barrio-texto em {
    color: #0F4C81;
    font-style: italic;
}

/* Responsivo */
@media (max-width: 900px) {
    .barrio-container {
        flex-direction: column;
        text-align: center;
    }

    .barrio-texto h2 {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .barrio-texto {
        text-align: left;
    }

    .barrio-imagen img {
        max-width: 80%;
        margin: 0 auto 20px;
    }
}
