/* =========================================================
   SOCIEDAD Y ENTORNO
   Estilos específicos de sociedad.html.
   No modifica otras páginas.
========================================================= */

/* =====================================================
   HERO
   Figma: 1440×374px, portada.jpg, overlay
   h1: 900, 27px, letter-spacing 4%, blanco, mayúsculas
====================================================== */

.sociedad-hero {
  position: relative;
  height: 803px;
  min-height: 803px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 65px 212px;
  background-color: #006CA6;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: #ffffff;
}

.sociedad-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(141,205,237,0.82) 100%);
  z-index: 1;
}

.sociedad-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1047px;
  text-align: center;
}

.sociedad-hero-title {
  font-size: 27px;
  font-weight: 600;
  line-height: 35.2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

/* =====================================================
   SECCIÓN PARTICIPACIÓN EN LA COMUNIDAD
   Figma: #BBE1F4, padding 60px 200px, gap 55px
   Layout: vertical centrado
====================================================== */

.sociedad-section-bbe {
  background: #BBE1F4;
  padding: 60px 200px;
}

.sociedad-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* h2: 700/900, 30px, centrado, #006CA6 */
.sociedad-h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: #006CA6;
  text-align: center;
  margin: 0;
}

/* Texto: 300/300, 15px, 20px, centrado, #545353 */
.sociedad-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  color: #545353;
  text-align: center;
  max-width: 800px;
  margin: 0;
}

/* =====================================================
   TARJETAS — 4 en fila
   Figma: fill × 108px fill, radio 10px, padding 15px, gap 10px, blanco
====================================================== */

.sociedad-cards {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.sociedad-card {
  flex: 1;
  min-height: 108px;
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

/* Icono: 22×22px, color #006CA6 */
.sociedad-card-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(31%) sepia(98%) saturate(1080%) hue-rotate(172deg) brightness(86%) contrast(101%);
}

/* h5 tarjeta: Museo Sans 400/500, 18px, centrado, #006CA6 */
.sociedad-card-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  color: #006CA6;
  text-align: center;
  margin: 0;
}

/* =====================================================
   MEDIA — vídeo centrado + audio
====================================================== */

.sociedad-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.sociedad-video-frame {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16/9;
  background: #006CA6;
  border-radius: 10px;
  overflow: hidden;
}

.sociedad-video-frame .maz-video,
.sociedad-video-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Label podcast: 600/700, 13px, 18px, #006CA6 */
.sociedad-audio .label {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  color: #006CA6;
}

/* =====================================================
   NUESTRA GESTIÓN AMBIENTAL — fondo blanco
   Figma: padding 60px 200px, gap 55px
   Layout: vídeo+audio izq, texto der
====================================================== */

.sociedad-section-white {
  background: #ffffff;
  padding: 60px 200px;
}

.sociedad-container-row {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 55px;
  min-height: 335px;
}

/* Columna media izq */
.sociedad-media-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sociedad-video-frame-sm {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16/9;
  background: #006CA6;
  border-radius: 10px;
  overflow: hidden;
}

.sociedad-video-frame-sm .maz-video,
.sociedad-video-frame-sm iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Columna texto der — 550px */
.sociedad-copy {
  flex: 0 0 550px;
  max-width: 550px;
}

/* h2 alineado izq */
.sociedad-h2-left {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: #006CA6;
  text-align: left;
  margin: 0 0 20px;
}

/* p normal: 300, 15px, 20px, #545353 */
.sociedad-p {
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  color: #545353;
  margin-bottom: 14px;
}

/* p negrita: 700/900, 15px, 20px, #545353 */
.sociedad-p-bold {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #545353;
  margin-bottom: 14px;
}

/* h5 énfasis: 400/500, 18px, #006CA6 */
.sociedad-h5-emphasis {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #006CA6;
  margin: 0;
}

@media (max-width: 1200px) {
  .sociedad-section-white { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 991px) {
  .sociedad-section-white { padding: 50px 32px; }
  .sociedad-container-row { flex-direction: column; min-height: auto; gap: 36px; }
  .sociedad-copy { flex: 0 0 auto; max-width: 100%; }
}

@media (max-width: 575px) {
  .sociedad-section-white { padding: 42px 20px; }
  .sociedad-h2-left { font-size: 24px; }
  .sociedad-h5-emphasis { font-size: 16px; }
}


/* =====================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1200px) {
  .sociedad-hero { height: 720px; min-height: 720px; padding: 65px 80px; }
  .sociedad-section-bbe { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 991px) {
  .sociedad-hero { height: 620px; min-height: 620px; padding: 50px 32px; }
  .sociedad-section-bbe { padding: 50px 32px; }
  .sociedad-cards { flex-wrap: wrap; }
  .sociedad-card { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); }
}

@media (max-width: 575px) {
  .sociedad-hero { height: 520px; min-height: 520px; padding: 42px 20px; }
  .sociedad-hero-title { font-size: 22px; }
  .sociedad-section-bbe { padding: 42px 20px; }
  .sociedad-h2 { font-size: 24px; }
  .sociedad-card { flex: 0 0 calc(50% - 5px); max-width: calc(50% - 5px); }
  .sociedad-card-label { font-size: 16px; }
}

/* AJUSTE VÍDEOS YOUTUBE: sin marco azul, ocupando todo el bloque */
.sociedad-video-frame,
.sociedad-video-frame-sm {
  background: transparent !important;
}

.sociedad-video-frame iframe,
.sociedad-video-frame .maz-video,
.sociedad-video-frame-sm iframe,
.sociedad-video-frame-sm .maz-video {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border: 0 !important;
}
