/* =========================================================
   ORATORIO LAURA VICUÑA - SALTA
   Colores tomados del logo: azul (predomina), celeste y rojo
   ========================================================= */
:root {
  --azul: #1f4f96;          /* color principal */
  --azul-oscuro: #163a70;
  --azul-noche: #10294f;
  --celeste: #86c3f5;
  --celeste-suave: #e6f2fd;
  --rojo: #e2483d;
  --amarillo: #f7c948;
  --fondo: #f6f9fd;
  --blanco: #ffffff;
  --texto: #1e2b3c;
  --texto-suave: #55657a;
  --sombra: 0 10px 30px rgba(16, 41, 79, .14);
  --radio: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.contenedor { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s;
}
.boton:hover { transform: translateY(-2px); }
.boton svg { width: 20px; height: 20px; fill: currentColor; }
.boton--claro { background: var(--blanco); color: var(--azul); box-shadow: var(--sombra); }
.boton--borde { border: 2px solid var(--blanco); color: var(--blanco); }
.boton--borde:hover { background: rgba(255,255,255,.15); }
.boton--ig {
  background: linear-gradient(45deg, #f9a03f, #e2483d 40%, #c13584 70%, #5b51d8);
  color: #fff; box-shadow: 0 6px 18px rgba(193, 53, 132, .3);
}
.boton--grande { font-size: 1.1rem; padding: .9rem 1.8rem; }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--azul);
  transition: box-shadow .3s;
}
.admin-bar .encabezado { top: 32px; }
@media (max-width: 782px) { .admin-bar .encabezado { top: 46px; } }
@media (max-width: 600px) { .admin-bar .encabezado { top: 0; } }
.encabezado.con-sombra { box-shadow: 0 6px 20px rgba(16,41,79,.12); }
.encabezado__fila { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.marca { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.marca__logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--azul), 0 4px 10px rgba(0,0,0,.15); }
.marca__texto { line-height: 1.1; color: var(--azul); font-weight: 700; }
.marca__texto strong { font-family: "Lobster", cursive; font-weight: 400; font-size: 1.35rem; display: block; }
.marca__texto small { color: var(--rojo); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; }

/* Menú (se arma desde Apariencia → Menús) */
.menu { display: flex; align-items: center; gap: 1.6rem; font-weight: 700; color: var(--azul-oscuro); }
.menu__lista { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.menu__lista li { position: relative; }
.menu__lista a { position: relative; display: block; padding: 6px 0; }
.menu__lista > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px;
  background: var(--rojo); border-radius: 3px; transition: width .25s;
}
.menu__lista > li > a:hover::after,
.menu__lista > li.current-menu-item > a::after { width: 100%; }
/* Submenús (secciones dentro de secciones) */
.menu__lista .sub-menu {
  list-style: none; position: absolute; top: 100%; left: -14px; min-width: 210px;
  background: #fff; border-radius: 12px; padding: 8px 0; box-shadow: var(--sombra);
  border-top: 3px solid var(--azul); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.menu__lista li:hover > .sub-menu, .menu__lista li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu__lista .sub-menu a { padding: 8px 18px; font-weight: 600; }
.menu__lista .sub-menu a:hover { background: var(--celeste-suave); color: var(--azul); }
.menu__lista .menu-item-has-children > a { padding-right: 16px; }
.menu__lista .menu-item-has-children > a::before {
  content: ""; position: absolute; right: 0; top: 50%; margin-top: -5px; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.menu .boton { padding: .5rem 1.1rem; }

.menu-boton { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-boton span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--azul); border-radius: 3px; transition: .3s; }
.menu-boton.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-boton.abierto span:nth-child(2) { opacity: 0; }
.menu-boton.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Portada ---------- */
.portada {
  position: relative; min-height: 88vh; display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, var(--azul) 0%, #2b67b8 55%, #4a8fd6 100%);
}
.portada__fondo { position: absolute; inset: 0; }
.portada__fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.portada::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(134,195,245,.35), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(226,72,61,.25), transparent 40%);
}
.portada__contenido { position: relative; padding: 60px 0 120px; }
.portada__logo {
  width: 170px; height: 170px; margin: 0 auto 1.2rem; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 18px 40px rgba(0,0,0,.3);
  animation: flotar 5s ease-in-out infinite;
}
.portada__titulo { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.portada__titulo span { font-family: "Lobster", cursive; font-weight: 400; color: var(--celeste); display: inline-block; }
.portada__titulo em {
  display: block; font-style: normal; font-size: .38em; letter-spacing: .35em;
  text-transform: uppercase; margin-top: .6rem; color: #fff;
}
.portada__titulo em::before, .portada__titulo em::after { content: "—"; color: var(--rojo); margin: 0 .6em; }
.portada__lema { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 1.2rem auto 2rem; max-width: 600px; opacity: .95; font-style: italic; }
.portada__botones { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.portada__ola { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: var(--fondo); }

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

/* ---------- Secciones ---------- */
.seccion { padding: 90px 0; }
.etiqueta { color: var(--rojo); font-weight: 800; text-transform: uppercase; letter-spacing: .15em; font-size: .85rem; }
.etiqueta--centro, .titulo--centro { text-align: center; }
.titulo { font-family: "Lobster", cursive; font-weight: 400; color: var(--azul); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: .6rem; }

/* ---------- Nosotros ---------- */
.nosotros__grilla { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.nosotros__texto p { margin-bottom: 1rem; color: var(--texto-suave); font-size: 1.05rem; }
.nosotros__texto em { color: var(--azul); font-weight: 700; }
.nosotros__texto .frase { font-size: 1.25rem; color: var(--azul-oscuro); }
.nosotros__texto .invitacion {
  display: inline-block; margin-top: .5rem; padding: .8rem 1.4rem; border-radius: 14px;
  background: var(--celeste-suave); border-left: 5px solid var(--rojo); font-size: 1.15rem;
}
.nosotros__fotos { position: relative; height: 480px; }
.foto-apilada {
  position: absolute; background: #fff; padding: 10px 10px 34px; border-radius: 6px;
  box-shadow: var(--sombra); transition: transform .4s;
}
.foto-apilada img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.foto-apilada.f1 { width: 70%; height: 230px; top: 0; left: 0; transform: rotate(-5deg); }
.foto-apilada.f2 { width: 66%; height: 220px; top: 150px; right: 0; transform: rotate(4deg); z-index: 2; }
.foto-apilada.f3 { width: 62%; height: 200px; bottom: 0; left: 8%; transform: rotate(-2deg); z-index: 3; }
.foto-apilada:hover { transform: rotate(0) scale(1.05); z-index: 5; }

.valores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.valor {
  background: #fff; border-radius: var(--radio); padding: 26px 22px; text-align: center;
  box-shadow: var(--sombra); border-top: 5px solid var(--azul); transition: transform .3s;
}
.valor:nth-child(2) { border-color: var(--celeste); }
.valor:nth-child(3) { border-color: var(--rojo); }
.valor:nth-child(4) { border-color: var(--amarillo); }
.valor:hover { transform: translateY(-6px); }
.valor__icono { font-size: 2.2rem; }
.valor h3 { color: var(--azul); margin: .4rem 0 .2rem; }
.valor p { color: var(--texto-suave); font-size: .95rem; line-height: 1.5; }

/* ---------- Galería ---------- */
.galeria { background: linear-gradient(180deg, var(--fondo) 0%, var(--celeste-suave) 100%); overflow: hidden; }
.galeria .titulo--centro { margin-bottom: 30px; }
.galeria__escenario { min-height: 420px; }
.galeria__ayuda { text-align: center; color: var(--texto-suave); font-size: .9rem; margin-top: 24px; }

/* Mural de polaroids colgadas */
.mural { width: min(1160px, 100% - 32px); margin: 0 auto; }
.mural__cuerda { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 26px 30px; padding-top: 30px; margin-bottom: 40px; }
.mural__cuerda::before {
  content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 32px;
  border-bottom: 3px solid #a57d55; border-radius: 0 0 50% 50% / 0 0 22px 22px;
}
.polaroid {
  position: relative; width: 200px; background: #fff; padding: 10px 10px 12px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(16,41,79,.18); border-radius: 3px;
  transform-origin: top center; transform: rotate(var(--giro));
  animation: hamaca 4s ease-in-out infinite; animation-delay: var(--retraso);
  transition: box-shadow .3s;
}
.polaroid::before { /* broche */
  content: ""; position: absolute; top: -18px; left: 50%; width: 14px; height: 30px; margin-left: -7px;
  background: linear-gradient(90deg, #d9a066, #f0c38e 50%, #c98c52); border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.polaroid img { width: 100%; height: 170px; object-fit: cover; }
.polaroid span { display: block; text-align: center; font-family: "Lobster", cursive; color: var(--azul); margin-top: 8px; font-size: 1.05rem; }
.polaroid:hover { animation-play-state: paused; box-shadow: 0 18px 36px rgba(16,41,79,.3); z-index: 3; }
@keyframes hamaca {
  0%,100% { transform: rotate(var(--giro)); }
  50% { transform: rotate(calc(var(--giro) * -1)); }
}

/* ---------- Contacto ---------- */
.contacto__caja {
  display: flex; align-items: center; gap: 40px; padding: 50px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, var(--azul) 0%, #2f6fc0 100%); box-shadow: var(--sombra);
  position: relative; overflow: hidden;
}
.contacto__caja::after {
  content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -80px;
  border-radius: 50%; background: rgba(134,195,245,.25);
}
.contacto__logo { width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 6px rgba(255,255,255,.3); }
.contacto__caja h2 { font-family: "Lobster", cursive; font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.contacto__caja p { margin: .5rem 0 1.4rem; opacity: .95; max-width: 520px; }
.contacto__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.boton--wa { background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.contacto__caja > div { position: relative; z-index: 1; }

/* ---------- Pie (datos editables desde Apariencia → Personalizar) ---------- */
.pie { background: var(--azul-noche); color: #cfe2f7; padding: 50px 0 22px; border-top: 4px solid var(--celeste); }
.pie__grilla { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.pie h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; letter-spacing: .03em; }
.pie__marca { display: flex; align-items: center; gap: 14px; }
.pie__marca img { width: 72px; height: 72px; background: #fff; border-radius: 50%; padding: 4px; flex-shrink: 0; }
.pie__marca strong { display: block; color: #fff; font-size: 1.1rem; }
.pie__marca span { font-size: .92rem; }
.pie__datos { list-style: none; display: grid; gap: 10px; }
.pie__datos li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.pie__datos svg { width: 18px; height: 18px; fill: var(--celeste); flex-shrink: 0; margin-top: 2px; }
.pie__datos a:hover { color: #fff; text-decoration: underline; }
.redes { display: flex; flex-wrap: wrap; gap: 10px; }
.redes a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: transform .2s, background .2s;
}
.redes a:hover { transform: translateY(-3px); }
.redes svg { width: 21px; height: 21px; fill: currentColor; }
.redes .red--instagram:hover { background: linear-gradient(45deg, #f9a03f, #e2483d 40%, #c13584 70%, #5b51d8); }
.redes .red--facebook:hover { background: #1877f2; }
.redes .red--whatsapp:hover { background: #25d366; }
.redes .red--tiktok:hover { background: #000; }
.redes .red--youtube:hover { background: #ff0000; }
.pie__copy { text-align: center; font-size: .85rem; opacity: .7; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Páginas internas y entradas (contenido de WordPress) ---------- */
.cabecera-interna { background: linear-gradient(135deg, var(--azul) 0%, #2f6fc0 100%); color: #fff; padding: 56px 0 46px; text-align: center; }
.cabecera-interna h1 { font-family: "Lobster", cursive; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
.contenido-wp { min-height: 40vh; background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: clamp(24px, 4vw, 50px); margin: -26px auto 70px; max-width: 900px; position: relative; }
.contenido-wp p, .contenido-wp ul, .contenido-wp ol { margin-bottom: 1rem; }
.contenido-wp ul, .contenido-wp ol { padding-left: 1.4rem; }
.contenido-wp h2, .contenido-wp h3 { color: var(--azul); margin: 1.6rem 0 .6rem; line-height: 1.3; }
.contenido-wp a { color: var(--azul); text-decoration: underline; }
.contenido-wp img { height: auto; border-radius: 10px; }
.contenido-wp figure { margin: 1.4rem 0; }
.contenido-wp .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.contenido-wp .aligncenter { margin-inline: auto; }
.lista-entradas { display: grid; gap: 24px; }
.entrada-resumen { border-bottom: 1px solid #e3ebf5; padding-bottom: 22px; }
.entrada-resumen:last-child { border-bottom: 0; }
.entrada-resumen h2 { margin-top: 0; }
.entrada-resumen h2 a { text-decoration: none; }
.entrada-fecha { color: var(--texto-suave); font-size: .9rem; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.nav-links .page-numbers { padding: 6px 14px; border-radius: 999px; background: var(--celeste-suave); text-decoration: none; }
.nav-links .current { background: var(--azul); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Visor (lightbox) ---------- */
.visor {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 25, 48, .92);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.visor.abierto { opacity: 1; pointer-events: auto; }
.visor__figura { max-width: 88vw; max-height: 86vh; text-align: center; }
.visor__figura img { max-width: 88vw; max-height: 78vh; border-radius: 10px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.94); transition: transform .3s; }
.visor.abierto .visor__figura img { transform: scale(1); }
.visor__figura figcaption { color: #fff; font-family: "Lobster", cursive; font-size: 1.5rem; margin-top: 12px; }
.visor__cerrar, .visor__flecha { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; transition: background .2s; }
.visor__cerrar:hover, .visor__flecha:hover { background: var(--rojo); }
.visor__cerrar { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.3rem; }
.visor__flecha { width: 54px; height: 54px; font-size: 2.2rem; line-height: 1; flex-shrink: 0; }

/* ---------- Animación al aparecer ---------- */
.revelar { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.revelar.visible { opacity: 1; transform: none; }

/* ---------- Celulares y tablets ---------- */
@media (max-width: 900px) {
  .nosotros__grilla { grid-template-columns: 1fr; gap: 40px; }
  .nosotros__fotos { height: 420px; }
  .valores { grid-template-columns: repeat(2, 1fr); }
  .contacto__caja { flex-direction: column; text-align: center; padding: 40px 24px; }
  .contacto__botones { justify-content: center; }
  .pie__grilla { grid-template-columns: 1fr 1fr; }
  .pie__col--marca { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-boton { display: block; }
  .menu {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: 20px 24px 26px; border-bottom: 3px solid var(--azul); box-shadow: 0 14px 24px rgba(16,41,79,.12);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .3s;
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .menu.abierto { transform: none; opacity: 1; pointer-events: auto; }
  .menu__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__lista a { padding: 10px 0; border-bottom: 1px solid #edf2f8; }
  .menu__lista > li > a::after { display: none; }
  .menu__lista .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .menu__lista .menu-item-has-children > a::before { display: none; }
  .menu .boton { align-self: center; }
}
@media (max-width: 760px) {
  .marca__logo { width: 48px; height: 48px; }
  .seccion { padding: 70px 0; }
  .polaroid { width: 150px; }
  .polaroid img { height: 130px; }
  .visor__flecha { position: absolute; bottom: 20px; }
  .visor__flecha--izq { left: 30%; }
  .visor__flecha--der { right: 30%; }
}
@media (max-width: 560px) {
  .valores { grid-template-columns: 1fr; }
  .polaroid { width: 135px; }
  .pie__grilla { grid-template-columns: 1fr; text-align: center; }
  .pie__marca { flex-direction: column; }
  .pie__datos li { justify-content: center; }
  .redes { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
