/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Sep 02 2025 | 03:10:37 */
/* ===== Especialidad 2 – Scrolling Gap Background Effect (scoped) ===== */

/* Scope everything to the wrapper to avoid site-wide effects */
#especialidad2-exclusive,
#especialidad2-exclusive * {
  box-sizing: border-box;
}

/* Optional (page-wide inside wrapper) */
#especialidad2-exclusive {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #1a1a1a; /* dark page background behind sections */
  overflow-x: hidden;
}

/* Content sections — solid backgrounds hide the gap image */
#especialidad2-exclusive .content-section {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

#especialidad2-exclusive .content-section:nth-of-type(even) {
  background: #2c2c2c;
}

#especialidad2-exclusive .content-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

#especialidad2-exclusive .content-section h6 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: justify; /* 👈 now justified */
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* Paragraphs justified (your request) */
#especialidad2-exclusive .content-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;   /* 👈 justified */
  opacity: 0.9;
  line-height: 1.7;
}

/* Gap section — reveals fixed background image between solid sections (desktop) */
#especialidad2-exclusive .gap-section {
  height: 50vh; /* Half page height */
  position: relative;
  z-index: 0;
  background-image: url('https://myeicu.org/wp-content/uploads/2025/08/TEOLOGIA-NIVEL-4-Licenciatura-TP204-Teologia-pastoral-THE104-Eclesiologia-HGB504-Etica-Ministerial-THC104-Cristologia-AP504-Apologetica-THE104-Escatologia-HC-504-Historia-del-Cristianismo-DAAT40-2-e1756483646349.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Desktop parallax-like pin */
}

/* Overlay to improve text readability */
#especialidad2-exclusive .gap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 61, 0.6); /* dark blue overlay */
  z-index: 1;
}

/* Floating "windows" (visual frames) */
#especialidad2-exclusive .gap-window {
  position: absolute;
  background: transparent;
  border-radius: 15px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
  /* If you want subtle floating without JS conflicts, leave transform to JS only.
     To re-enable CSS-only float, uncomment the animation lines below and note it will
     compete with JS transforms.
  */
  /* animation: e2-float 8s ease-in-out infinite; */
}

/* Positions for the windows */
#especialidad2-exclusive .gap-window:nth-child(1) {
  width: 200px;
  height: 150px;
  top: 20%;
  left: 10%;
  /* animation-delay: 0s; */
}
#especialidad2-exclusive .gap-window:nth-child(2) {
  width: 180px;
  height: 130px;
  top: 50%;
  right: 15%;
  /* animation-delay: 2s; */
}
#especialidad2-exclusive .gap-window:nth-child(3) {
  width: 150px;
  height: 110px;
  top: 10%;
  right: 35%;
  /* animation-delay: 1s; */
}

/* (Optional) CSS float keyframes — disabled by default
@keyframes e2-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}
*/

/* Overlay content inside the gap */
#especialidad2-exclusive .gap-overlay {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-40%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  background: rgba(9,0,0,0);
  padding: 0 24px;
  border-radius: 0;
  backdrop-filter: blur(0);
}

#especialidad2-exclusive .gap-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



/* Scroll indicator */
#especialidad2-exclusive .scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: e2-bounce 2s infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes e2-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40%                      { transform: translateX(-50%) translateY(-10px); }
  60%                      { transform: translateX(-50%) translateY(-5px); }
}

/* ---- Visibility rule for Maestría block ---- */
/* Desktop: hide it */
@media (min-width: 769px) {
  #especialidad2-exclusive .content-section.maestria-section {
    display: none !important;
  }
}

/* Mobile-first tweaks */
@media (max-width: 768px) {
  #especialidad2-exclusive .content-section {
    padding: 40px 0;
    width: 100%;
  }
  #especialidad2-exclusive .content-section h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  #especialidad2-exclusive .content-section p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Mobile: fixed backgrounds are unreliable; use scroll, ensure the image shows */
  #especialidad2-exclusive .gap-section {
    height: 50vh;
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
    background-image: url('https://myeicu.org/wp-content/uploads/2025/09/TEOLOGIA-ESPECIALIDAD-2-e1756758328431.webp') !important;
  }

  /* Ensure Maestría shows on mobile */
  #especialidad2-exclusive .maestria-section {
    display: block !important;
  }

  #especialidad2-exclusive .gap-window:nth-child(1) { width: 140px; height: 100px; top: 25%; left: 10%; }
  #especialidad2-exclusive .gap-window:nth-child(2) { width: 120px; height: 85px;  top: 55%; right: 15%; }
  #especialidad2-exclusive .gap-window:nth-child(3) { width: 100px; height: 70px;  top: 15%; right: 35%; }

  #especialidad2-exclusive .gap-overlay {
    padding: 25px 20px;
    width: 90%;
    max-width: 300px;
    left: 50%;
    transform: translate(-50%, -50%); /* center on mobile */
  }
  #especialidad2-exclusive .gap-overlay h2 { font-size: 1.4rem; margin-bottom: 15px; }
  #especialidad2-exclusive .gap-overlay p { font-size: 0.9rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
  #especialidad2-exclusive .content-section { padding: 30px 0; }
  #especialidad2-exclusive .content-section h2 { font-size: 1.4rem; }
  #especialidad2-exclusive .content-section p { font-size: 0.9rem; }

  #especialidad2-exclusive .gap-window { border-radius: 10px; }
  #especialidad2-exclusive .gap-window:nth-child(1) { width: 110px; height: 80px; }
  #especialidad2-exclusive .gap-window:nth-child(2) { width: 95px;  height: 70px; }
  #especialidad2-exclusive .gap-window:nth-child(3) { width: 80px;  height: 60px; }
}

/* Modern viewport height fix for mobile address bars */
@supports (height: 100dvh) {
  #especialidad2-exclusive .gap-section { height: 50dvh; }
}
