/* VARIABLES EMANUEL */

:root {
  --azul-emanuel: #2e9ed7;
  --dorado-emanuel: #c59217;
  --granate-emanuel: #822323;
  --blanco-puro: #ffffff;
  --negro-texto: #1a1a1a;
}

body { font-family: 'Georgia', serif; color: var(--negro-texto); line-height: 1.8; margin: 0; }
.container-narrow { max-width: 850px; margin: 0 auto; padding: 80px 20px; }
.container-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 50px; padding: 80px 20px; }

/* Títulos y Colores */
.title-granate { color: var(--granate-emanuel); }
.title-azul { color: var(--azul-emanuel); }
.azul { color: var(--azul-emanuel); }
.dorado { color: var(--dorado-emanuel); }
.text-white { color: var(--blanco-puro); }

h2 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 30px; }

/* Intro Hero */
.page-intro { 
    height: 50vh; 
    /* background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/historia_eskurtze.jpg') center/cover;  */
    background: linear-gradient(135deg, var(--azul-emanuel) 0%, var(--granate-emanuel) 100%);
    display: flex; align-items: center; justify-content: center; text-align: center; 
}
.intro-overlay h1 { font-size: 3.5rem; color: var(--blanco-puro); margin-bottom: 10px; }
.divider-gold { width: 80px; height: 4px; background: var(--dorado-emanuel); margin: 0 auto 20px; }
.intro-overlay p { color: var(--blanco-puro); font-size: 1.3rem; max-width: 700px; margin: 0 auto; }

/* Tags */
.section-tag { font-family: sans-serif; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; color: var(--dorado-emanuel); font-weight: bold; display: block; margin-bottom: 15px; }

/* Fondos */
.bg-white { background-color: var(--blanco-puro); }
.bg-light { background-color: #f9f9f9; }
.bg-granate-emanuel { background-color: var(--granate-emanuel); padding: 100px 0; }

/* Misión Side Box */
.side-box { display: flex; align-items: center; border-left: 3px solid var(--dorado-emanuel); padding-left: 30px; }
.quote-granate { font-size: 1.5rem; font-style: italic; color: var(--granate-emanuel); font-weight: bold; }

/* Valores */
.value-row { border-bottom: 1px solid #eee; padding: 30px 0; }
.value-row h3 { font-family: sans-serif; font-size: 1.3rem; margin-bottom: 10px; }
.value-row:last-child { border-bottom: none; }

.large-text { font-size: 1.4rem; font-style: italic; margin-bottom: 30px; }

/* Móviles */
@media (max-width: 768px) {
    .container-grid { grid-template-columns: 1fr; }
    h2 { font-size: 2.2rem; }
    .page-intro h1 { font-size: 2.5rem; }
}












/* ============================================
   ANIMACIONES Y MEJORAS VISUALES
   QUIÉNES SOMOS - IGLESIA EMANUEL
   ============================================ */

/* ANIMACIONES GENERALES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(197, 146, 23, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(197, 146, 23, 0.6);
  }
}

/* HERO INTRO - ANIMACIONES */
.page-intro {
  position: relative;
  overflow: hidden;
  animation: scaleIn 1s ease-out;
}

.page-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
}

.intro-overlay h1 {
  animation: slideDown 0.8s ease-out;
  text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.7);
}

.divider-gold {
  animation: scaleIn 1s ease-out 0.3s both;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
   
}

.divider-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 2s infinite;
}

.intro-overlay p {
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* SECTION TAG - ANIMACIÓN */
.section-tag {
  position: relative;
  display: inline-block;
  animation: fadeInLeft 0.6s ease-out;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dorado-emanuel);
  transition: width 0.6s ease;
}

.concept-section:hover .section-tag::after {
  width: 100%;
}

/* TÍTULOS - ANIMACIÓN */
h2 {
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  display: inline-block;
}

h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--dorado-emanuel), transparent);
  border-radius: 2px;
}

.title-granate {
  background: linear-gradient(135deg, var(--granate-emanuel), #6b2a2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-azul {
  background: linear-gradient(135deg, var(--azul-emanuel), #1e8bc3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CONTENIDO - ANIMACIÓN DE ENTRADA */
.story-content p {
  animation: fadeInUp 0.8s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

.story-content p:nth-child(1) { animation-delay: 0.2s; }
.story-content p:nth-child(2) { animation-delay: 0.4s; }
.story-content p:nth-child(3) { animation-delay: 0.6s; }

.story-content p strong {
  color: var(--granate-emanuel);
  position: relative;
  transition: color 0.3s ease;
}

.story-content p strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dorado-emanuel);
  transition: width 0.3s ease;
}

.story-content p:hover strong::after {
  width: 100%;
}

/* SIDE BOX - ANIMACIÓN */
.side-box {
  animation: fadeInRight 0.8s ease-out;
  position: relative;
  transition: all 0.4s ease;
}

.side-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--dorado-emanuel);
  transition: height 0.6s ease;
  animation: pulse-glow 2s infinite;
}

.side-box:hover::before {
  height: 100%;
}

.quote-granate {
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.quote-granate::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: -20px;
  font-size: 6rem;
  color: rgba(197, 146, 23, 0.2);
  font-family: Georgia, serif;
}

/* BACKGROUND ANIMADO GRANATE */
.bg-granate-emanuel {
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out;
}

.bg-granate-emanuel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 146, 23, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.bg-granate-emanuel .container-narrow {
  position: relative;
  z-index: 1;
}

.large-text {
  animation: fadeInUp 0.8s ease-out 0.3s both;
  position: relative;
}

/* VALORES - ANIMACIÓN */
.value-row {
  animation: fadeInLeft 0.6s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
  transition: all 0.4s ease;
  position: relative;
  padding-left: 20px;
}

.value-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--azul-emanuel), var(--dorado-emanuel));
  transition: height 0.4s ease;
  border-radius: 2px;
}

.value-row:hover::before {
  height: 80%;
}

.value-row:nth-child(1) { animation-delay: 0.1s; }
.value-row:nth-child(2) { animation-delay: 0.2s; }
.value-row:nth-child(3) { animation-delay: 0.3s; }
.value-row:nth-child(4) { animation-delay: 0.4s; }

.value-row:hover {
  transform: translateX(10px);
  background: linear-gradient(90deg, rgba(46, 158, 215, 0.03), transparent);
  padding-left: 25px;
}

.value-row h3 {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.value-row h3::after {
  content: '→';
  position: absolute;
  right: -30px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--dorado-emanuel);
}

.value-row:hover h3::after {
  opacity: 1;
  right: -25px;
}

/* NÚMEROS DE VALORES */
.value-row h3 {
  background: linear-gradient(135deg, var(--azul-emanuel), #1e8bc3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* SECCIONES - TRANSICIONES */
.concept-section {
  transition: background-color 0.5s ease;
}

/* SCROLL REVEAL - para elementos que aparecen al hacer scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* EFECTO HOVER EN PÁRRAFOS */
.story-content p,
.text-block p {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 20px;
  margin-left: -20px;
}

.story-content p:hover,
.text-block p:hover {
  border-left-color: var(--dorado-emanuel);
  padding-left: 25px;
  background: linear-gradient(90deg, rgba(197, 146, 23, 0.03), transparent);
}

/* CONTAINERS - SOMBRAS Y PROFUNDIDAD */
.container-narrow,
.container-grid {
  animation: fadeInUp 0.8s ease-out;
}

/* EFECTO PARALLAX SUAVE EN HERO */
@media (prefers-reduced-motion: no-preference) {
  .page-intro {
    background-attachment: fixed;
  }
}

/* DECORACIÓN DORADA EN SECCIONES */
.bg-white::before,
.bg-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--dorado-emanuel), transparent);
  border-radius: 2px;
}

.bg-white,
.bg-light {
  position: relative;
  padding-top: 20px;
}

/* RESPONSIVE - MANTENER ANIMACIONES EN MÓVIL */
@media (max-width: 768px) {
  .value-row:hover {
    transform: translateX(5px);
  }

  .quote-granate::before {
    font-size: 4rem;
    top: -20px;
    left: -10px;
  }
}

/* REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* EFECTO DE BRILLO EN TEXTO BLANCO */
.text-white {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* EFECTO DE PROFUNDIDAD EN BACKGROUNDS */
.bg-granate-emanuel {
  box-shadow: inset 0 10px 50px rgba(0, 0, 0, 0.2);
}

.bg-light {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
/* Scroll suave a las secciones */
html {
  scroll-behavior: smooth;
}

/* Ajustar scroll para compensar header fijo */
section[id] {
  scroll-margin-top: 100px;
}