/* Hero Section */
.creacion-hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: 0;
  padding-left: 5%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../Imagenes de alta resolucion/creacion-portada.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}

.creacion-page-title {
  font-family: 'Switzer', sans-serif !important;
  font-size: 96px !important;
  font-weight: 400 !important;
  color: #000000 !important;
  margin: 0 !important;
  text-align: left !important;
  width: 100% !important;
  padding-left: 28px !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Sección de contenido */
.creacion-content {
  background: #EBEBF0;
  padding: 80px 0;
}


/* Reglas específicas para la página Creación: prioridad sobre estilos globales */

/* Tipografía específica para la página Creación */
body .creacion-content h2.section-title,
body .creacion-content .section-title {
  font-family: 'Switzer', Arial, sans-serif !important;
  font-size: 48px !important;
  font-weight: 600 !important;
  color: #072A40 !important;
  margin: 64px 0 64px 0 !important;
  text-align: left !important;
}

body .creacion-content p.content-paragraph,
body .creacion-content .content-paragraph {
  font-family: 'Switzer', Arial, sans-serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #2D3139 !important;
  line-height: 44.8px !important;
  margin-bottom: 24px !important;
  text-align: left!important;
  max-width: 1244px !important;
}

.creacion-content .content-separator {
  border: none !important;
  height: 4px !important;
  background: #072A40 !important;
  margin: 48px auto !important;
  max-width: 920px !important;
  width: 92% !important;
  box-shadow: 0 2px 6px rgba(7,42,64,0.18) inset !important;
}

/* Más especificidad para garantizar que no sea sobrescrito */
body .creacion-content hr.content-separator {
  border: none !important;
  height: 4px !important;
  background: #2D3139 !important;
  margin: 80px 0 !important;
  border-radius: 4px !important;
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Force bold styling for emphasized phrases on this page */
body .creacion-content strong,
body .creacion-content b {
  font-weight: 700 !important;
  color: #142139 !important;
}

.content-paragraph {
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
}

.section-title {
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #072A40;
  margin: 50px 0 30px 0;
  text-align: left;
}

.content-separator {
  border: none;
  height: 4px;
  background: #072A40;
  margin: 50px 0;
}

/* Sección de video */
.video-section {
  background: #EBEBF0;
  padding: 60px 0;
}

.video-container {
  max-width: 1000px;
  width: 800px;
  margin: 0 auto;
}

/* Estilos para el iframe embebido del video */
.video-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
  position: relative;
  background: url('../Imagenes de alta resolucion/creacion_video.jpg') center/cover no-repeat;
  background-color: #f0f0f0;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(7, 42, 64, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(7, 42, 64, 0.3);
}

.play-button:hover {
  background: rgba(7, 42, 64, 1);
  transform: scale(1.15);
  box-shadow: 0 12px 32px rgba(7, 42, 64, 0.4);
}

.play-button i {
  color: #FFFFFF;
  font-size: 32px;
  margin-left: 6px;
}

/* Responsive */

@media (min-width: 1920px) {
  body .section-title {
    font-size: 40px !important;
  }
  body .content-paragraph {
    font-size: 32px !important;
  }
}
@media (max-width: 1400px) {
  body .section-title {
    font-size: 32px !important;
  }
  body .content-paragraph {
    font-size: 20px !important;
  }
}

@media (max-width: 1200px) {
  body .section-title {
    font-size: 28px !important;
  }
  body .content-paragraph {
    font-size: 18px !important;
  }
}

@media (max-width: 992px) {
  .creacion-hero {
    height: 350px;
    margin-top: 100px;
  }
  .hero-title-overlay { transform: none; }
  .creacion-page-title {
    font-size: 38px;
  }
  .hero-title-overlay {
    padding: 20px 50px;
  }
  .creacion-content {
    padding: 60px 20px;
  }
  body .content-paragraph {
    font-size: 16px !important;
    margin-bottom: 20px;
  }
  body .section-title {
    font-size: 24px !important;
    margin: 40px 0 25px 0;
  }
  .video-section {
    padding: 50px 20px;
  }
  .video-placeholder {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .creacion-hero {
    height: 300px;
    margin-top: 80px;
  }
  
  .creacion-page-title {
    font-size: 32px;
  }
  
  .hero-title-overlay {
    padding: 15px 40px;
  }
  
  .creacion-content {
    padding: 50px 15px;
  }
  
  .content-paragraph {
    font-size: 14px;
    text-align: left;
    margin-bottom: 18px;
  }
  
  .section-title {
    font-size: 24px;
    margin: 35px 0 20px 0;
  }
  
  .video-section {
    padding: 40px 15px;
  }
  
  .video-placeholder {
    height: 250px;
  }
  
  .play-button {
    width: 70px;
    height: 70px;
  }
  
  .play-button i {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .creacion-hero {
    height: 250px;
  }
  
  .creacion-page-title {
    font-size: 26px;
  }
  
  .hero-title-overlay {
    padding: 12px 30px;
  }
  
  .content-paragraph {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .section-title {
    font-size: 22px;
    margin: 30px 0 18px 0;
  }
  
  .video-placeholder {
    height: 200px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button i {
    font-size: 24px;
  }
}

/* Print rules: control page breaks, spacing and bold text for printing */
@media print {
  :root { --print-page-gap: 14mm; }
  @page { size: A4 portrait; margin: 18mm; }
  /* Add WebKit prefixed and standardized property for print color adjustment */
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Ensure headings and paragraphs are readable in print */
  body .creacion-content h2.section-title {
    font-size: 18pt !important;
    margin: 8mm 0 6mm 0 !important;
    page-break-inside: avoid !important;
  }

  body .creacion-content p.content-paragraph {
    font-size: 11pt !important;
    line-height: 1.5 !important;
    /* Avoid forcing orphans/widows to maintain broader browser support */
    page-break-inside: avoid !important;
    margin-bottom: 6mm !important;
  }

  /* Make separators act as explicit page-break anchors and control their gap */
  body .creacion-content hr.content-separator {
    display: block !important;
    height: 3px !important;
    background: #072A40 !important;
    margin: var(--print-page-gap) auto !important;
    border: none !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
  }

  /* Avoid splitting images/video across pages */
  .video-container, .video-placeholder, .footer-section, .hero-background {
    page-break-inside: avoid !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
  }

  /* Force bold for semantic elements in print */
  strong, b { font-weight: 700 !important; }

  /* Hide elements not needed in print (nav, play button shadows, etc.) */
  .custom-navbar, .play-button, .footer-social-section { display: none !important; }
}