/*
Theme Name: Hermandad Señor de los Milagros de Guayaquil
Description: Tema replicado de la web original de la Hermandad
Version: 1.0
Author: Hermandad
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cormorant Garamond', 'Georgia', serif; background: #0a0a0a; color: #f0e6e6; min-height: 100vh; }
#particulas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background: radial-gradient(ellipse at center, #1a0a0a, #0a0a0a); overflow: hidden; }
.particula { position: absolute; width: 4px; height: 4px; background: radial-gradient(circle, #c9a0c0, #7a4a7a); border-radius: 50%; box-shadow: 0 0 12px #b88ab8, 0 0 24px #6a3a6a; animation: flotar linear infinite; opacity: 0.5; }
@keyframes flotar { 0% { transform: translateY(100vh) scale(0); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translateY(-10vh) scale(1); opacity: 0; } }
#contenido { position: relative; z-index: 1; width: 100%; max-width: 100%; margin: 0; padding: 0; animation: fadeIn 1.5s ease; }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
nav.menu-hermandad { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(12px); padding: 15px 10px; border-bottom: 1px solid rgba(180, 120, 180, 0.1); position: sticky; top: 0; z-index: 50; width: 100%; }
nav.menu-hermandad a { flex: 0 0 auto; min-width: 85px; background: transparent; border: none; color: #d4b8d4; padding: 10px 8px; border-radius: 8px; font-size: 1.3em; font-family: 'Cormorant Garamond', 'Georgia', serif; font-weight: 700; cursor: pointer; transition: all 0.3s ease; letter-spacing: 1px; text-decoration: none; text-align: center; white-space: nowrap; }
nav.menu-hermandad a:hover { background: rgba(180, 120, 180, 0.15); color: #fff; }
nav.menu-hermandad a.activo, nav.menu-hermandad .current-menu-item > a { background: rgba(180, 120, 180, 0.2); color: #fff; }
.header-imagen { position: relative; width: 100%; height: 60vh; min-height: 450px; max-height: 750px; overflow: hidden; margin: 0; }
.header-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seccion { display: block; padding: 40px 20px; width: 100%; max-width: 100%; margin: 0; }
.seccion h2 { font-family: 'Cormorant Garamond', 'Georgia', serif; font-weight: 700; color: #d4b0d4; font-size: 2.8em; text-align: center; border-bottom: 2px solid rgba(180, 120, 180, 0.12); padding-bottom: 20px; margin-bottom: 30px; letter-spacing: 4px; line-height: 1.2; }
.cuadro-bienvenida, .cuadro-historia, .cuadro-unete, .cuadro-donaciones, .cuadro-contacto { background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(8px); border: 2px solid rgba(180, 120, 180, 0.15); border-radius: 20px; padding: 50px 60px; margin: 0 auto; box-shadow: 0 0 60px rgba(180, 120, 180, 0.1); max-width: 1000px; }
.cuadro-donaciones { max-width: 800px; }
.cuadro-contacto { max-width: 900px; }
.cuadro-bienvenida h2, .seccion h2.titulo-pagina { color: #d4b0d4; font-size: 2.4em; text-align: center; letter-spacing: 4px; margin-bottom: 25px; border-bottom: 2px solid rgba(180,120,180,0.15); padding-bottom: 15px; }
.cuadro-bienvenida .frase { font-size: 1.8em; color: #d4b8d4; font-style: italic; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(180, 120, 180, 0.1); text-align: center; }
.cuadro-bienvenida .texto, .texto-bienvenida { font-size: 1.6em; line-height: 1.8; color: #e8ddd0; text-align: center; }
.cuadro-bienvenida .texto p { margin-bottom: 10px; }
.cuadro-historia { padding: 40px 50px; margin-bottom: 35px; display: flex; align-items: center; gap: 40px; max-width: 1100px; }
.cuadro-historia.invertido { flex-direction: row-reverse; }
.cuadro-historia .imagen { flex: 0 0 300px; height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(180, 120, 180, 0.1); }
.cuadro-historia .imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cuadro-historia .texto { flex: 1; font-size: 1.4em; line-height: 1.8; color: #e8ddd0; }
.cuadro-historia .texto .titulo-item { color: #d4b0d4; font-size: 1.8em; margin-bottom: 15px; letter-spacing: 2px; }
.cuadro-historia .texto p { margin-bottom: 10px; }
.cuadro-unete .texto-bienvenida { margin-bottom: 35px; }
.texto-bienvenida .destacado { color: #d4b0d4; font-weight: 700; }
.cuadro-unete form { display: flex; flex-direction: column; gap: 20px; max-width: 700px; margin: 0 auto; }
.cuadro-unete form label { color: #d4b8d4; font-weight: 700; font-size: 1.4em; }
.cuadro-unete form input { padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(180, 120, 180, 0.2); background: rgba(0, 0, 0, 0.5); color: #f0e6e6; font-size: 1.2em; font-family: 'Cormorant Garamond', 'Georgia', serif; }
.cuadro-unete .checkbox-group { display: flex; gap: 15px; padding: 20px; background: rgba(180, 120, 180, 0.08); border-radius: 10px; align-items: flex-start; }
.cuadro-unete .checkbox-group input[type="checkbox"] { width: 22px; height: 22px; accent-color: #b88ab8; }
.cuadro-unete .checkbox-group label { font-size: 1.1em; line-height: 1.6; font-weight: 400; }
.cuadro-unete form button { padding: 16px; border-radius: 10px; border: none; background: linear-gradient(135deg, #5a2a4a, #7a4a6a); color: #fff; font-size: 1.5em; font-weight: 700; cursor: pointer; font-family: 'Cormorant Garamond', 'Georgia', serif; letter-spacing: 3px; }
.cuadro-unete #mensaje { display: none; background: rgba(80, 30, 70, 0.2); border: 1px solid #7a4a6a; color: #d4b8d4; padding: 20px; border-radius: 10px; text-align: center; margin-top: 20px; font-size: 1.4em; }
.cuadro-unete #mensaje.mostrar { display: block; }
.cuadro-unete input:disabled, .cuadro-unete .checkbox-group.disabled { opacity: 0.35; cursor: not-allowed; }
.cuadro-unete #btnEnviar:disabled { opacity: 0.35; cursor: not-allowed; }
.cuadro-donaciones .texto-intro { font-size: 1.6em; color: #e8ddd0; text-align: center; margin-bottom: 30px; }
.cuadro-donaciones .banco-info { background: rgba(180, 120, 180, 0.05); border: 1px solid rgba(180, 120, 180, 0.08); border-radius: 12px; padding: 25px 30px; margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.cuadro-donaciones .banco-logo { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.95); border-radius: 12px; overflow: hidden; }
.cuadro-donaciones .banco-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.cuadro-donaciones .banco-titulo { color: #d4b0d4; font-size: 1.8em; margin-bottom: 10px; letter-spacing: 2px; }
.cuadro-donaciones .banco-dato { font-size: 1.4em; color: #d4b8d4; font-family: monospace; padding: 4px 0; }
.cuadro-donaciones .banco-dato span { color: #e8ddd0; font-family: 'Cormorant Garamond', 'Georgia', serif; }
.cuadro-donaciones .fundacion-imagen { text-align: center; margin: 30px 0; }
.cuadro-donaciones .fundacion-imagen img { max-width: 500px; width: 100%; border-radius: 8px; }
.cuadro-donaciones .correo-donaciones { background: rgba(180, 120, 180, 0.08); border: 1px solid rgba(180, 120, 180, 0.15); padding: 20px; margin-top: 25px; text-align: center; border-radius: 12px; }
.cuadro-donaciones .correo-titulo { color: #d4d0d4; font-size: 1.5em; margin-bottom: 8px; color: #d4b0d4; }
.cuadro-donaciones .correo-direccion { color: #b88ab8; font-family: monospace; font-size: 1.3em; word-break: break-all; }
.cuadro-donaciones .mensaje-agradecimiento { text-align: center; font-size: 1.4em; color: #d4b8d4; font-style: italic; padding: 30px 20px 10px; border-top: 1px solid rgba(180, 120, 180, 0.08); margin-top: 25px; }
.cuadro-contacto .texto-intro { font-size: 1.6em; color: #e8ddd0; text-align: center; margin-bottom: 30px; }
.cuadro-contacto .contacto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-width: 600px; margin: 0 auto; }
.cuadro-contacto .contacto-item { background: rgba(180, 120, 180, 0.05); border: 1px solid rgba(180, 120, 180, 0.08); border-radius: 10px; padding: 20px; text-align: center; }
.cuadro-contacto .contacto-icono { font-size: 2em; margin-bottom: 5px; }
.cuadro-contacto .contacto-titulo { color: #d4b0d4; font-size: 1.5em; margin-bottom: 5px; }
.cuadro-contacto .contacto-texto { font-size: 1.3em; color: #d4b8d4; }
.cuadro-contacto .contacto-texto a { color: #b88ab8; text-decoration: none; }
.cuadro-contacto .contacto-sub { font-size: 1.1em; color: #e8ddd0; margin-top: 5px; font-style: italic; }
.cuadro-contacto .correos-contacto { margin-top: 30px; padding-top: 25px; border-top: 1px solid rgba(180, 120, 180, 0.08); }
.cuadro-contacto .correos-titulo { color: #d4b0d4; font-size: 1.6em; text-align: center; margin-bottom: 20px; }
.cuadro-contacto .correo-item { display: flex; flex-direction: column; gap: 3px; font-size: 1.2em; padding: 10px 15px; margin-bottom: 10px; background: rgba(180, 120, 180, 0.05); border-radius: 8px; text-align: center; word-break: break-word; }
.cuadro-contacto .correo-rol { color: #e8ddd0; font-weight: 700; }
.cuadro-contacto .correo-direccion { color: #b88ab8; font-family: monospace; font-size: 1em; }
.tabs-multimedia { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.tabs-multimedia a { padding: 12px 30px; border-radius: 10px; font-size: 1.4em; font-family: 'Cormorant Garamond', 'Georgia', serif; font-weight: 700; cursor: pointer; text-decoration: none; background: transparent; border: 1px solid rgba(180, 120, 180, 0.15); color: #d4b8d4; transition: all 0.3s ease; letter-spacing: 2px; }
.tabs-multimedia a:hover { background: rgba(180, 120, 180, 0.15); color: #fff; }
.tabs-multimedia a.activo { background: rgba(180, 120, 180, 0.2); border-color: #b88ab8; color: #fff; }
.panel { display: none; }
.panel.activo { display: block; }
.galeria-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.video-item { border: 1px solid rgba(180, 120, 180, 0.1); border-radius: 12px; padding: 10px; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.video-item video { width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 12px; border: none; background: #000; }
.galeria-fotos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.foto-item img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 10px; cursor: pointer; }
.lista-marchas { display:flex; flex-direction:column; gap:14px; max-width:800px; margin:0 auto; }
.marcha-item { display:flex; align-items:center; gap:14px; background:rgba(10,10,10,0.7); border:1px solid rgba(180,120,180,0.15); border-radius:12px; padding:14px 18px; flex-wrap:wrap; }
.marcha-nombre { color:#d4b0d4; font-weight:700; font-size:1.4em; flex:1; min-width:140px; }
.marcha-item audio { flex:2; min-width:220px; height:40px; }
.marcha-desc { display:block; text-align:center; margin-top:8px; color:#d4b0d4; text-decoration:none; font-weight:700; padding:8px; background:rgba(180,120,180,0.15); border:1px solid rgba(180,120,180,0.3); border-radius:8px; }
.marcha-desc:hover { background:rgba(180,120,180,0.35); }
.marchas-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:20px; }
.marchas-grid video { width:100%; border-radius:10px; display:block; }
.marcha-fila { display:flex; align-items:center; justify-content:center; gap:12px; }
.modal-lupa { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 1000; justify-content: center; align-items: center; cursor: zoom-out; }
.modal-lupa img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 10px; }
.titulo-webmail { text-align: center; color: #d4b0d4; font-size: 2em; letter-spacing: 4px; padding: 25px 15px 10px; text-shadow: 0 0 30px rgba(180, 120, 180, 0.5); }
.subtitulo-webmail { text-align: center; color: #b8a0b8; font-size: 1.1em; font-style: italic; padding-bottom: 15px; }
.contenedor-correo { width: 96%; max-width: 1400px; height: calc(100vh - 260px); min-height: 500px; margin: 0 auto 30px; border-radius: 20px; overflow: hidden; border: 2px solid rgba(180, 120, 180, 0.15); box-shadow: 0 0 60px rgba(180, 120, 180, 0.1); background: #fff; }
.contenedor-correo iframe { width: 100%; height: 100%; border: none; display: block; }
.enlace-directo { text-align: center; padding: 10px 0 40px; }
.enlace-directo a { color: #d4b8d4; font-size: 1.1em; text-decoration: none; border-bottom: 1px dotted #b88ab8; }
.enlace-directo a:hover { color: #fff; }
.solo-movil { display: none; }
.boton-correo-movil { display: inline-block; background: rgba(180, 120, 180, 0.2); border: 2px solid rgba(180, 120, 180, 0.3); color: #e8d0e8; font-size: 1.4em; font-weight: 700; letter-spacing: 2px; padding: 18px 40px; border-radius: 15px; text-decoration: none; box-shadow: 0 0 40px rgba(180, 120, 180, 0.2); }
footer.pie-hermandad { text-align: center; padding: 40px 20px; margin-top: 40px; border-top: 1px solid rgba(180, 120, 180, 0.08); color: rgba(255, 255, 255, 0.5); font-size: 1.8em; letter-spacing: 4px; background: rgba(10, 10, 10, 0.5); width: 100%; line-height: 1.5; }
footer.pie-hermandad .footer-secundario { color: rgba(255, 255, 255, 0.4); font-size: 0.7em; margin-top: 8px; }
@media (max-width: 768px) {
    .header-imagen { height: 35vh; min-height: 220px; }
    .seccion h2 { font-size: 2.0em; letter-spacing: 2px; }
    .cuadro-bienvenida, .cuadro-unete, .cuadro-donaciones, .cuadro-contacto { padding: 20px 15px; }
    .cuadro-bienvenida h2 { font-size: 1.8em; letter-spacing: 3px; }
    .cuadro-bienvenida .frase { font-size: 1.4em; }
    .cuadro-bienvenida .texto { font-size: 1.4em; }
    .cuadro-historia { flex-direction: column !important; padding: 20px 15px; }
    .cuadro-historia .imagen { flex: 0 0 auto; width: 100%; max-width: 400px; height: 180px; margin: 0 auto; }
    .cuadro-historia .texto { font-size: 1.2em; }
    .galeria-videos, .marchas-grid { grid-template-columns: 1fr; }
    .marcha-item { display:flex; flex-direction:column; gap:10px; padding:12px; }
    .marcha-nombre { text-align: center; }
    .contacto-grid { gap: 10px; max-width: 100%; }
    footer.pie-hermandad { font-size: 1.3em; padding: 25px 15px; letter-spacing: 2px; }
    .solo-movil { display: block; text-align: center; padding: 40px 20px; }
    .titulo-webmail { font-size: 1.4em !important; }
    nav.menu-hermandad { flex-wrap: wrap; gap: 6px; padding: 10px 5px; }
    nav.menu-hermandad a { flex: 1 1 calc(25% - 6px); min-width: 0; font-size: 1.0em; padding: 12px 4px; letter-spacing: 0px; }
}
/* ============ SPLASH ============ */
body.splash { overflow: hidden; }
#splash { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0a0a0a; transition: opacity 1.8s ease; cursor: pointer; }
#splash.oculto { opacity: 0; pointer-events: none; }
#splash img { width: 100%; height: 115%; object-fit: cover; object-position: 20% top; position: absolute; top: -10%; left: 0; }
#splash .capa { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 10, 0.35); z-index: 1; }
#splash .texto-splash { position: relative; z-index: 2; text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: 12vh; }
#splash .texto-splash h1 { font-family: 'Pirata One', 'Georgia', serif; font-size: clamp(4rem, 12vw, 7rem); color: #d4b0d4; text-shadow: 0 0 30px rgba(180, 120, 180, 0.6); animation: brillo 2.5s ease-in-out infinite alternate; letter-spacing: 4px; }
#splash .texto-splash .sub { font-family: 'Pirata One', 'Georgia', serif; font-size: clamp(2.4rem, 6vw, 4.4rem); color: #e8d0e8; font-style: italic; letter-spacing: 6px; }
.contenedor-barra { width: 80%; max-width: 500px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.barra-progreso { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 50px; overflow: hidden; }
.barra-relleno { height: 100%; width: 0%; background: linear-gradient(90deg, #7a4a7a, #c9a0c0, #e8d0e8); border-radius: 50px; box-shadow: 0 0 15px #b88ab8; transition: width 0.1s linear; }
.texto-carga { font-size: 1.4rem; color: rgba(200, 180, 200, 0.9); letter-spacing: 4px; margin-top: 60px; position: relative; display: inline-block; padding-bottom: 8px; font-family: 'Pirata One', 'Georgia', serif; }
.texto-carga::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent 0%, #e8d0e8 50%, transparent 100%); background-size: 200% 100%; animation: luzLinea 2.5s linear infinite; box-shadow: 0 0 8px #b88ab8; }
@keyframes luzLinea { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes brillo { 0% { text-shadow: 0 0 30px rgba(180, 120, 180, 0.4); } 100% { text-shadow: 0 0 50px rgba(200, 150, 200, 0.8); } }
#activarInteraccion { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 20; opacity: 0; cursor: pointer; background: transparent; border: none; }
/* AJUSTE-TAMANOS-SPLASH */
#splash .texto-splash h1 { font-size: clamp(2.8rem, 9vw, 5rem); }
#splash .texto-splash .sub { font-size: clamp(1.8rem, 5vw, 3rem); }
/* AJUSTE-SPLASH-FOOTER-PC: -2px solo PC, movil intacto */
@media (min-width: 769px) {
  #splash .texto-splash h1 { font-size: calc(clamp(2.8rem, 9vw, 5rem) - 2px); }
  #splash .texto-splash .sub { font-size: calc(clamp(1.8rem, 5vw, 3rem) - 2px); }
  .texto-carga { font-size: calc(1.4rem - 2px); }
}
/* TITULOS-MOVIL-1PX: -1px titulos generales en movil */
@media (max-width: 768px) {
  .seccion h2 { font-size: calc(2.0em - 1px); }
  .cuadro-bienvenida h2 { font-size: calc(1.8em - 1px); }
  .titulo-webmail { font-size: calc(1.4em - 1px) !important; }
}
}
/* FOOTER-V5: PC=1 linea grande | MOVIL=3 lineas centradas 0.7em */
footer.pie-hermandad .fp-l1 { color: rgba(255,255,255,0.7); font-weight: 600; font-size: calc(1em - 2px); text-align: center; }
footer.pie-hermandad .fp-l2 { display: none; }
footer.pie-hermandad .fp-inline { display: inline; }
footer.pie-hermandad .fp-l3 { color: rgba(255,255,255,0.4); font-size: 0.7em; margin-top: 8px; text-align: center; }
@media (max-width: 768px) {
  footer.pie-hermandad .fp-inline { display: none; }
  footer.pie-hermandad .fp-l2 { display: block; }
  footer.pie-hermandad .fp-l1,
  footer.pie-hermandad .fp-l2,
  footer.pie-hermandad .fp-l3 {
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    text-align: center;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
  }
}
/* FOOTER-V6: PC=1 linea | MOVIL=junto 1 linea + mundo */
footer.pie-hermandad .fp-pc { display: block; color: rgba(255,255,255,0.7); font-weight: 600; font-size: calc(1em - 2px); text-align: center; margin: 0; }
footer.pie-hermandad .fp-movil { display: none; }
footer.pie-hermandad .fp-mundo { color: rgba(255,255,255,0.4); font-size: 0.7em; margin-top: 8px; text-align: center; }
@media (max-width: 768px) {
  footer.pie-hermandad .fp-pc { display: none; }
  footer.pie-hermandad .fp-movil { display: block; font-size: 0.7em; font-weight: 400; text-align: center; color: rgba(255,255,255,0.5); margin: 0; }
}
/* FOOTER-V7: misma linea en PC y movil, solo cambia tamano */
footer.pie-hermandad .fp-linea { display: block; color: rgba(255,255,255,0.7); font-weight: 600; font-size: calc(1em - 2px); text-align: center; margin: 0; }
footer.pie-hermandad .fp-mundo { color: rgba(255,255,255,0.4); font-size: 0.7em; margin-top: 8px; text-align: center; }
@media (max-width: 768px) {
  footer.pie-hermandad .fp-linea { font-size: 0.7em; font-weight: 400; color: rgba(255,255,255,0.5); }
}
/* HEADER-MOVIL-RECTANGULAR: imagen completa sin recortes, solo movil */
@media (max-width: 768px) {
  .header-imagen { height: auto; min-height: 0; }
  .header-imagen img { height: auto; object-fit: contain; width: 100%; display: block; }
}
/* TABS-MOVIL-UNALINEA: 3 botones en una sola fila en movil */
@media (max-width: 768px) {
  .tabs-multimedia { flex-wrap: nowrap; justify-content: center; gap: 6px; }
  .tabs-multimedia a { flex: 0 1 auto; padding: 8px 10px; font-size: 1.0em; letter-spacing: 1px; white-space: nowrap; }
}
/* TITULOS-MARCOS-MOVIL-V2: marco del titulo SOLO en paginas que NO son Bienvenidos */
@media (max-width: 768px) {
  .seccion:not(:has(.cuadro-bienvenida)) h2 {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(180, 120, 180, 0.15);
    border-radius: 20px;
    padding: 25px 15px;
    margin-bottom: 25px;
    box-shadow: 0 0 60px rgba(180, 120, 180, 0.1);
  }
}
/* TITULOS-MARCOS-PC: marco del titulo en PC (todas menos Bienvenidos) */
@media (min-width: 769px) {
  .seccion:not(:has(.cuadro-bienvenida)) h2 {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(180, 120, 180, 0.15);
    border-radius: 20px;
    padding: 40px 50px;
    margin-bottom: 35px;
    box-shadow: 0 0 60px rgba(180, 120, 180, 0.1);
  }
}
/* REDES-SOCIALES-ESTILO: contenedor de portadas clicables */
.redes-seccion .redes-grid { display: flex; flex-direction: column; gap: 25px; max-width: 900px; margin: 0 auto; }
.redes-seccion .red-item { display: block; background: rgba(10,10,10,0.7); backdrop-filter: blur(8px); border: 2px solid rgba(180,120,180,0.15); border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: 0 0 60px rgba(180,120,180,0.1); transition: all 0.3s ease; }
.redes-seccion .red-item:hover { border-color: rgba(180,120,180,0.45); box-shadow: 0 0 60px rgba(180,120,180,0.25); }
.redes-seccion .red-item img { width: 100%; height: auto; display: block; object-fit: contain; }
.redes-seccion .red-nombre { text-align: center; color: #d4b0d4; font-size: 1.5em; font-weight: 700; padding: 15px; letter-spacing: 2px; }
@media (max-width: 768px) { .redes-seccion .red-nombre { font-size: 1.2em; padding: 12px; } }
/* WEBMAIL-UNIFICADO: el marco del correo se ve igual en PC y movil */
@media (max-width: 768px) {
  .contenedor-correo { height: calc(100vh - 200px); min-height: 500px; }
}
/* WEBMAIL-ESTILO-ORIGINAL: mismo look que el webmail de la web Flask */
body.page-template-page-webmail-php {
  background: radial-gradient(ellipse at center, #1a0a0a, #0a0a0a) fixed !important;
}
body.page-template-page-webmail-php .titulo-webmail {
  color: #d4b0d4;
  text-shadow: 0 0 30px rgba(180, 120, 180, 0.5);
}
body.page-template-page-webmail-php .subtitulo-webmail {
  color: #b8a0b8;
  font-style: italic;
}
body.page-template-page-webmail-php .contenedor-correo {
  background: rgba(10, 10, 10, 0.7);
  border: 2px solid rgba(180, 120, 180, 0.15);
  box-shadow: 0 0 60px rgba(180, 120, 180, 0.1);
}
/* MENU-MOVIL-TAP: al tocar un enlace del menu, morado inmediato (nunca verde del sistema) */
@media (max-width: 768px) {
  nav.menu-hermandad a {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
  }
  nav.menu-hermandad a:active,
  nav.menu-hermandad a:focus,
  nav.menu-hermandad a:visited {
    background: #8a63b8 !important;
    color: #ffffff !important;
  }
  nav.menu-hermandad a:hover {
    background: rgba(180,120,180,0.15) !important;
    color: #fff !important;
  }
}
/* TAP-NATIVO-FUERA: eliminar el verde/celeste nativo de android al tocar */
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}
@media (max-width: 768px) {
  nav.menu-hermandad a {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
  }
  nav.menu-hermandad a:active {
    background-color: #8a63b8 !important;
    color: #ffffff !important;
    transition: none !important;
  }
}
/* HISTORIA-IMG-TOP: en movil mostrar la parte superior de las imagenes de historia */
@media (max-width: 768px) {
  .cuadro-historia .imagen,
  .cuadro-historia .imagen img {
    object-position: center top !important;
    background-position: center top !important;
  }
  .cuadro-historia .imagen img {
    height: auto !important;
    max-height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
}
/* HISTORIA-IMG-TOP-TODOS: enfoque superior en PC y movil */
.cuadro-historia .imagen img {
  object-position: center top !important;
}
@media (max-width: 768px) {
  .cuadro-historia .imagen,
  .cuadro-historia .imagen img {
    object-position: center top !important;
    background-position: center top !important;
  }
  .cuadro-historia .imagen img {
    height: auto !important;
    max-height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
}

@media (max-width: 768px) {
  .cuadro-historia .imagen,
  .cuadro-historia .imagen img {
    object-position: center top !important;
    background-position: center top !important;
  }
  .cuadro-historia .imagen img {
    height: auto !important;
    max-height: 260px !important;
    width: 100% !important;
    object-fit: cover !important;
  }
}/* REDES-FINAL: zoom del logo instagram (unico, definitivo) */
.redes-seccion .red-item img[src*="logo-instagram"] {
  transform: scale(1.15) !important;
  object-position: center !important;
}
/* INSTA-RED: imagen en su proporcion natural (956x343), sin deformar */
.redes-seccion .red-item img[src*="logo-instagram"] {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
/* INSTA-RED: imagen en su proporcion natural (956x343), sin deformar */
.redes-seccion .red-item img[src*="logo-instagram"] {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}
