/* ══ VARIABLES ═══════════════════════════════════════════ */
:root {
  --oro:        #c9a052;
  --oro-claro:  #f0d080;
  --oro-suave:  rgba(201,160,82,0.18);
  --oscuro:     #0f1520;
  --azul:       #1b2a47;
  --crema:      #fdf8ef;
  --marfil:     #f5f0e8;
  --texto:      #2c2416;
  --gris:       #8a7f6e;
}

/* ══ RESET ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--crema);
  color: var(--texto);
  min-height: 100vh;
}

/* ══ HERO ═════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  max-height: 780px;

  /* ← FOTO DE FONDO: cambiá "iglesia.png" por tu archivo */
  background-image: url('IMG-20260316-WA0004.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;   /* efecto parallax suave */
  background-position: center 60%; 
}

/* Capa de oscurecimiento degradada */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 30, 0.45) 0%,
    rgba(10, 15, 30, 0.25) 40%,
    rgba(10, 15, 30, 0.75) 100%
  );
}

/* Borde dorado inferior del hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--oro), transparent);
}

.hero-contenido {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 60px;
  text-align: center;
  animation: fadeUp 1.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}



.cruz {
  font-size: 1.6rem;
  color: var(--oro);
  margin-bottom: 10px;
  letter-spacing: 6px;
  opacity: 0.9;
}

.titulo-principal {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--oro-claro);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.titulo-nombre {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  line-height: 1.2;
  margin-bottom: 12px;
}

.titulo-lugar {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
}

/* ══ SECCIÓN PRINCIPAL ════════════════════════════════════ */
.seccion-principal {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ══ Botones Barra ═════════════════════════════════════════════════ */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  margin-top: -1px;           /* se apoya sobre la línea del hero */
  position: relative;
  z-index: 10;
}

.tab {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid rgba(201,160,82,0.3);
  background: rgba(15, 21, 32, 0.92);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.tab:first-child { border-radius: 0 0 0 0; }
.tab:last-child  { border-radius: 0 0 0 0; }

.tab-icono {
  font-size: 1rem;
  opacity: 0.8;
}

.tab:hover {
  background: rgba(201,160,82,0.15);
  color: var(--oro-claro);
  border-color: rgba(201,160,82,0.6);
}

.tab.activo {
  background: var(--crema);
  color: var(--azul);
  border-color: var(--oro);
  font-weight: 600;
  border-radius: 0 0 0 10px
}

.tab.activo .tab-icono {
  opacity: 1;
}

/* Tab YouTube — color rojo */
.tab-yt { color: rgba(255,120,120,0.8); border-color: rgba(255,80,80,0.3); border-radius: 0 0 10px 0}
.tab-yt:hover { background: rgba(255,60,60,0.15); color: #ff8888; border-color: rgba(255,80,80,0.7); }
.tab-yt.activo { background: var(--crema); color: #cc2222; }

/* ══ PANEL DE CONTENIDO ═══════════════════════════════════ */
.panel-contenido {
  background: var(--crema);
  border: 1px solid var(--oro);
  border-top: none;
  border-radius: 8x;
  padding: 44px 52px;
  min-height: 220px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
}

/* Línea decorativa dorada arriba del panel */
.panel-contenido::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--oro), transparent);
}

/* Animación al cambiar contenido */
#contenido {
  animation: aparecer 0.4s ease both;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tipografía dentro del panel ── */
#contenido h2 {
  font-family: 'Cinzel', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--azul);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,160,82,0.35);
  display: flex;
  align-items: center;
  gap: 10px;
}

#contenido h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: var(--oro);
  border-radius: 2px;
}

#contenido p {
  color: #3a3228;
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: 0.98rem;
}

#contenido ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

#contenido li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--marfil);
  font-size: 0.97rem;
  line-height: 1.6;
  position: relative;
  color: #3a3228;
}

#contenido li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--oro);
  font-size: 0.65rem;
  top: 13px;
}

#contenido strong { color: var(--azul); font-weight: 600; }

/* Bloque de novedad / tarjeta interna */
.novedad {
  background: var(--marfil);
  border-left: 3px solid var(--oro);
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}

.novedad-fecha {
  font-size: 0.78rem;
  color: var(--gris);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

/* ══ PIE ══════════════════════════════════════════════════ */
.pie {
  text-align: center;
  padding: 28px 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--gris);
  border-top: 1px solid rgba(201,160,82,0.25);
}

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .tabs {
    overflow-x: auto;       /* ← permite deslizar horizontalmente */
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .tab {
    font-size: 0.72rem;
    padding: 12px 16px;
    flex-shrink: 0;         /* ← cada tab mantiene su tamaño */
  }

  .tab-label { display: block; }
}

@media (max-width: 480px) {

  /* El panel de contenido — menos padding en celu */
  .panel-contenido {
    padding: 20px 16px;
  }

  /* Texto de las novedades más chico */
  #contenido p {
    font-size: 0.88rem;
  }

  /* Título del acordeón más chico */
  .acordeon-titulo {
    font-size: 0.85rem;
    padding: 12px 4px;
  }

  /* Las tarjetitas de novedad */
  .novedad {
    padding: 10px 12px;
  }

  /* El título h2 principal */
  #contenido h2 {
    font-size: 1rem;
  }

}

/* ── Acordeón ── */
.acordeon {
  border-bottom: 1px solid rgba(201,160,82,0.3);
  margin-bottom: 4px;
}

.acordeon-titulo {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--azul);
  padding: 16px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.acordeon-titulo:hover { color: var(--oro); }

.acordeon-flecha {
  font-size: 0.75rem;
  color: var(--oro);
  transition: transform 0.3s ease;
}

/* El contenido empieza oculto y se expande con JS */
.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 4px;
}

.galeria {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.galeria img {
  width: 100%;
  height: auto;
  object-fit: cover;  /* recorta sin deformar */
  border-radius: 6px;
  cursor: pointer;
  border-color: black;
}

.informacion{
  padding-top: 20px;
}

.link-ig {
  color: #e1306c;          /* color rosa de Instagram */
  font-weight: 600;
  text-decoration: none;   /* saca el subrayado */
}

.link-ig:hover {
  color: #c13584;          /* más oscuro al pasar el mouse */
  text-decoration: underline;
}