/* =========================================
            RESET & BASE
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #333;
  background-color: #f9fafb;
}

/* Logo pequeñito tipo favicon fijo arriba a la izquierda */
.top-logo {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
}
.top-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Enlaces dentro de párrafos: subrayado suave al pasar */
p a {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2px;
}

p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #5bb5d6; /* azul suave, como el menú */
  transition: width 0.25s ease;
}

p a:hover::after {
  width: 100%;
}

/* =========================================
          HEADER, HERO & NAVEGACIÓN
========================================= */

/* Hero genérico (portada) */
.hero {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
  padding-top: 110px; /* hueco para el menú más alto al principio */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Capa oscura sobre la foto */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 1;
}

/* NAV FIJO CON TRANSICIÓN */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
   /* blanco con baja opacidad */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease,
    transform 0.25s ease;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: center; /* CLAVE: centra el menú */
  align-items: center;
}

/* Logo principal del menú */
.nav-logo img {
  width: 88px; /* más grande arriba del todo */
  height: 88px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #8bc7e8;
  transition:
    width 0.35s ease,
    height 0.35s ease,
    transform 0.35s ease;
}

/* Menú principal */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 400;
}

/* Cada elemento del menú puede tener submenú */
.nav-menu li {
  position: relative;
}

.nav-menu li a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 4px;
  transition: color 0.35s ease;
}

/* Subrayado animado en el menú */
.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #ffffff;
  transition: width 0.25s ease, background-color 0.35s ease;
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
  width: 100%;
}

/* ---------- Submenú COMUNIONES ---------- */

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0;
  min-width: 210px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 200;
}

.submenu li {
  padding: 0;
}

.submenu li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  text-transform: none;
  color: #333333;
  text-decoration: none;
  border-bottom: none;
}

.submenu li a::after {
  display: none; /* sin línea animada aquí */
}

.submenu li a:hover {
  background: rgba(91, 181, 214, 0.12);
}

/* Mostrar submenú al pasar por Comuniones */
.has-sub:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Texto del submenú siempre oscuro */
.main-nav .submenu a {
  color: #333333;
}

.main-nav .nav-menu a{
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}

/* ---------- Estado al hacer scroll ---------- */

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.7); /* blanco semitransparente */
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.nav-menu{
  font-weight: 500;
  letter-spacing: 0.6px;
}
.nav-menu a{
  font-size: 13.5px;
}

.main-nav.scrolled .nav-menu li a {
  color: #333333;
}

.main-nav.scrolled .nav-menu li a::after {
  background: #5bb5d6; /* subrayado azulito */
}

.main-nav.scrolled .nav-logo img {
  width: 60px;
  height: 60px;
  transform: translateY(0);
}

/* Logo central del hero */
.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-logo {
  max-width: 840px;
  width: 75%;
}


/* =========================================
            INTRO / PRESENTACIÓN
========================================= */
.intro {
  background-color: #f4f4f6;
  padding: 32px 16px 48px;
  text-align: center;
  margin-top: -10px; /* ligeramente solapado con el hero */
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
}

.intro h1 {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 24px;
}

.intro p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}

.btn-primary {
  border: none;
  background-color: #8bc7e8;
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =========================================
          CATEGORÍAS (BLOQUES REDONDOS)
========================================= */
.categories {
  padding: 40px 16px 80px;
}

.categories-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 60px;
  justify-items: center;
}

/* Ajustes responsive BLOQUES REDONDOS */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 40px;
  }

  .category-circle {
    width: 190px;
    height: 190px;
  }
}

@media (max-width: 600px) {
  .categories {
    padding: 30px 16px 60px;
  }

  .categories-grid {
    grid-template-columns: 1fr;      /* aquí se ven de UNA EN UNA */
    max-width: 320px;                /* para que no ocupen todo el ancho enorme */
  }

  .category-circle {
    width: 180px;
    height: 180px;
  }

  .category-item h2 {
    font-size: 15px;
    margin-bottom: 12px;
  }
}

.category-item {
  text-align: center;
}

/* Enlace que envuelve título + círculo */
.category-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.category-item h2 {
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #6ac0e8; /* azul suave */
}

/* colores de títulos (aprox. al diseño) */
.category-item h2.pink {
  color: #f082ac;
}
.category-item h2.yellow {
  color: #f5c94c;
}
.category-item h2.teal {
  color: #47b6b0;
}
.category-item h2.orange {
  color: #f4a53c;
}
.category-item h2.green {
  color: #7bbf4b;
}

/* Círculo con imagen */
.category-circle {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e6ec;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 9px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* efecto hover (enlace) */
.category-link:hover .category-circle {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.category-link:hover h2 {
  text-decoration: underline;
}

/* Puntos bajo los círculos (por si se usan) */
.category-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.category-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d6db;
}

/* =========================================
            PRELOADER
========================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* fondo semitransparente */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-inner img {
  width: 90px;
  height: 90px;
  animation: spinLogo 1.2s linear infinite;
}

/* Animación de giro del logo */
@keyframes spinLogo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Ocultar preloader cuando el body tiene .loaded */
body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}

/* =========================================
        ANIMACIONES DE ENTRADA / SCROLL
========================================= */

/* Fade + desplazamiento al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
            RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .comuniones-panels-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Si estás usando el menú como PANEL (como en tu bloque de "MÓVIL: panel desplegable"),
     no uses flex-wrap + pastilla negra aquí. Déjalo como panel blanco sólido. */
  .nav-menu{
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Opcional: cuando el menú está abierto, la barra superior también blanco sólido */
  .main-nav.menu-open{
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav.scrolled .nav-menu {
    background: #ffffff; /* o transparent si quieres, pero si buscas blanco sólido, déjalo blanco */
  }

  .hero {
    height: 300px;
  }
}

/* =========================================
   ANIMACIÓN HOVER GLOBAL PARA IMÁGENES
========================================= */

/* Solo imágenes reales de contenido (no SVG, no iconos) */
img:not(svg){
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

/* Hover elegante */
img:not(svg):hover{
  transform: scale(1.035);
}

/* Excepciones: NO animar logos, iconos, navegación */
.nav-img-link img,
.hero-logo,
.top-logo img,
.footer-social img{
  transform: none !important;
  filter: none !important;
}

.portfolio-image-wrap:hover .portfolio-image{
  transform: scale(1.03);
}


/* =========================
   LOGO FLOTANTE CONTACTO
   ========================= */

.floating-logo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  opacity: 0;
  transform: translateY(16px) scale(0.9) rotate(-4deg);
  pointer-events: auto;
}

.floating-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  border-radius: 50%;              /* que quede redondito */
  backdrop-filter: blur(4px);      /* opcional, efecto glass */
}


/* Animación de entrada cuando la página ha "cargado" (body.loaded ya existe por el preloader) */
body.loaded .floating-logo {
  animation: floatingLogoIn 0.7s ease-out forwards 0.1s;
}

.floating-logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.9s ease, box-shadow 0.25s ease;
  transform-origin: center center;
}

.floating-logo:hover img {
  transform: rotate(360deg) scale(1.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

@keyframes floatingLogoIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9) rotate(-8deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* En pantallas muy pequeñas puedes hacerlo algo más pequeño si quieres */
@media (max-width: 480px) {
  .floating-logo {
    right: 14px;
    bottom: 14px;
  }

  .floating-logo img {
    width: 60px;
    height: 60px;
  }
}

.hero{
  position: relative;
  height: 750px;
  padding-top: 110px;
  overflow: hidden;
}

/* Imagen única de cabecero */
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* cubre todo el hero */
  object-position: center;   /* ajusta si quieres: center top / center bottom */
  z-index: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #f2f2f4;
  color: #6b7280;
  font-size: 13px;
  padding: 26px 16px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-info {
  line-height: 1.6;
}

.footer-copy {
  margin: 0;
}

.footer-credit {
  margin: 4px 0 0;
}

.footer-credit a {
  color: #5bb5d6;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #c7c7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.footer-social a svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.footer-social a:hover {
  background: #8bc7e8;
  border-color: #8bc7e8;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 540px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================
   SOBRE MÍ – HOME
   ========================================= */
.about-home {
  background: #ffffff;
  padding: 70px 16px;
}

.about-home-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-home-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}

.about-home-text p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 22px;
  color: #444;
}

.about-home-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: inline-block;
  text-align: left;
}

.about-home-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 14px;
}

.about-home-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #8bc7e8;
  font-size: 18px;
  line-height: 1;
}

/* Ajustes responsive */
@media (max-width: 540px) {
  .about-home {
    padding: 48px 20px;
  }

  .about-home-text h2 {
    font-size: 20px;
  }
}

/* =========================================
   BLOQUES HOME: CÓMO TRABAJO + CTA FINAL
   ========================================= */

.section-head {
  text-align: center;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.section-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

/* --- CÓMO TRABAJO --- */
.how-work {
  background: #ffffff;
  padding: 60px 16px;
}

.how-work-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-work-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(139, 199, 232, 0.25);
  color: #1f2a37;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

/* --- CTA FINAL --- */
.final-cta {
  padding: 60px 16px;
  background: linear-gradient(180deg, rgba(139, 199, 232, 0.18), rgba(244, 244, 246, 0.9));
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.final-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 650;
}

.final-cta p {
  margin: 0 auto 18px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Botón secundario */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2a37;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(91, 181, 214, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  background: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .how-work-steps {
    grid-template-columns: 1fr;
  }
}

.intro{
  padding: 38px 16px 54px;
}

.intro-inner{
  max-width: 820px;
}

.intro h1{
  font-size: 26px;
  font-weight: 600;
}

.intro p{
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
}

.btn-primary{
  font-weight: 600;
}

.category-item{
  transition: transform 0.25s ease;
}

.category-link:hover .category-circle{
  transform: translateY(-4px) scale(1.03);
}

.category-link:hover h2{
  transform: translateY(-2px);
}

.category-item h2{
  transition: transform 0.25s ease;
}

.how-work{
  padding: 70px 16px;
  background: #ffffff;
}

.step-card{
  border: 1px solid rgba(0,0,0,0.04);
}

.step-badge{
  background: rgba(139, 199, 232, 0.35);
}

.final-cta{
  padding: 70px 16px;
}

.final-cta-inner{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 22px;
  padding: 34px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.08);
}

/* =========================================
   NAVBAR CON TÍTULOS COMO IMÁGENES
   ========================================= */

.nav-img-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
}

/* Tamaño base de las imágenes del menú */
.nav-img-link img{
  height: 50px; /* ajusta según tus títulos */
  width: auto;
  display: block;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

/* Hover elegante */
.nav-img-link:hover img{
  transform: translateY(-1px) scale(1.05);
  filter: brightness(1.15);
}

/* Activo (página actual) */
.nav-menu li.active img{
  filter: brightness(1.25);
}

/* Estado scrolled: que no pierdan contraste */
.main-nav.scrolled .nav-img-link img{
  filter: brightness(0.9);
}

/* Ajustes responsive */
@media (max-width: 900px){
  .nav-img-link img{
    height: 20px;
  }
}

/* ESCRITORIO: el botón NO se ve */
.nav-toggle{
  display: none;
}

/* Tamaño base en escritorio */
.nav-img-link img{
  height: 50px;
  width: auto;
  display: block;
}

/* ====== MÓVIL: panel desplegable ====== */
@media (max-width: 900px){

  .nav-inner{
    justify-content: flex-end;
    gap: 12px;
    flex-direction: row;      /* importante: evita que se apile como “columna” */
    align-items: center;
  }

  /* Botón hamburguesa (solo móvil) */
  .nav-toggle{
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle span{
    display:block;
    width:20px;
    height:2px;
    background:#fff;
    transition: transform .25s ease, opacity .25s ease;
  }

  /* Animación a X */
  .main-nav.menu-open .nav-toggle span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
  }
  .main-nav.menu-open .nav-toggle span:nth-child(2){
    opacity:0;
  }
  .main-nav.menu-open .nav-toggle span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menú como panel */
  .nav-menu{
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    padding: 14px;
    margin: 0;

    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);

    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }

  .main-nav.menu-open .nav-menu{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Links en móvil */
  .nav-menu li a{
    color:#333;
    padding: 10px 10px;
    display:flex;
    align-items:center;
    justify-content: space-between;
  }

  /* Imágenes del menú en móvil */
  .nav-img-link img{
    height: 20px;
  }

  /* Submenú en acordeón */
  .nav-menu .submenu{
    position: static;
    margin: 6px 0 0;
    padding: 0;
    box-shadow: none;
    border-radius: 12px;
    background: rgba(245,245,247,0.95);
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu .has-sub.submenu-open > .submenu{
    display: block;
    animation: fadeInMobile .25s ease;
  }

  .submenu li a{
    padding: 12px 14px;
    font-size: 14px;
  }

  .submenu-arrow{
    font-size: 0.8rem;
    margin-left: 10px;
    color: #6b7280;
    transition: transform .2s ease;
  }

  .has-sub.submenu-open .submenu-arrow{
    transform: rotate(180deg);
  }
}

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

/* =========================================
            COMUNIONES.HTML
========================================= */

/* Si quieres un hero más alto, asegúrate de usar class="hero hero-comuniones" */
.hero.hero-comuniones {
  height: 750px;
}

/* Banda azul con texto explicativo */
.comuniones-intro-band {
  background: #8bc7e8;
  color: #ffffff;
  padding: 18px 16px;
  text-align: center;
}

.comuniones-intro-band p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
}

/* Fila de circulitos */
.comuniones-circles {
  background: #f4f4f6;
  padding: 26px 16px 34px;
}

.comuniones-circles-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.com-circle-item {
  text-align: center;
  max-width: 150px;
}

/* Círculo */
.com-circle-img {
  width: 140px;              /* elige 120 o 140, pero solo una vez */
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 8px;
  background: #e0e6ec;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
}

/* Imágenes apiladas */
.com-circle-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Visible por defecto */
.com-circle-img img.active {
  opacity: 1;
  transform: scale(1);
}

/* Hover: fundido a la segunda */
.com-circle-img:hover img.active,
.com-circle-img:focus-within img.active {
  opacity: 0;
  transform: scale(1.04);
}

.com-circle-img:hover img:not(.active),
.com-circle-img:focus-within img:not(.active) {
  opacity: 1;
  transform: scale(1);
}

.com-circle-link{
  display: inline-block;
  text-decoration: none;
  color: inherit;
}


/* Texto bajo cada círculo (si usas h3) */
.com-circle-item h3 {
  font-size: 12px;
  margin: 0;
}

/* Paneles grandes */
.comuniones-panels {
  padding: 30px 16px 60px;
  background: #ffffff;
}

.comuniones-panels-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.com-panel {
  background: #f9fafb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.com-panel img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.com-panel-dots {
  padding: 8px 0 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.com-panel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d9e6;
}

/* ===============================
   CARRUSEL COMUNIONES – SUAVE
   =============================== */

.com-panel-media{
  position: relative;
  overflow: hidden;
}

/* Slide */
.com-panel .com-slide{
  width: 100%;
  height: auto;
  display: block;

  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.9s cubic-bezier(.4,0,.2,1),
    transform 1.2s cubic-bezier(.4,0,.2,1);
}

/* Slide visible */
.com-panel .com-slide.active{
  opacity: 1;
  transform: scale(1);
}

/* Dots */
.com-panel-dots{
  padding: 12px 0 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.com-panel-dots button{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;

  transition:
    transform .35s cubic-bezier(.4,0,.2,1),
    background .35s cubic-bezier(.4,0,.2,1);
}

.com-panel-dots button:hover{
  transform: scale(1.35);
}

.com-panel-dots button.active{
  background: #8bc7e8;
  transform: scale(1.25);
}

/* =========================================
            SOBRE-MI-COMUNIONES.HTML
   ========================================= */

   .single-page-content{
  padding: 26px 16px 10px;
}

.page-title-block{
  max-width: 980px;
  margin: 0 auto 14px;
  text-align: center;
}

.page-title{
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: .2px;
  color: #1f2a37;
}

.single-image-block{
  max-width: 980px;
  margin: 0 auto 10px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.single-image{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}


/* =========================================
            MARCA.HTML
   ========================================= */

/* === MARCA: grid 3 en 3 centrado === */
.brand-grid{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  justify-items: center;   /* centra cada tarjeta en su celda */
}

/* Tarjeta */
.brand-card{
  width: 100%;
  max-width: 260px;        /* controla el ancho del card */
  aspect-ratio: 1 / 1;     /* cuadrado como en la imagen */
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin: 0;               /* quita márgenes por defecto del figure */
}

/* Imagen dentro del card */
.brand-card img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /* no recorta logos */
  display: block;
}

/* Responsive */
@media (max-width: 900px){
  .brand-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .brand-grid{ grid-template-columns: 1fr; }
  .brand-card{ max-width: 320px; }
}

/* === INTRO (estilo tipo final-cta) === */
.page-intro{
  padding: 26px 0 10px;
}

.page-intro-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  position: relative;
  text-align: center;
}

.page-intro-inner::before{
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: rgba(233, 108, 170, .55); /* tono rosado */
}

.page-intro-inner p{
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(0,0,0,.72);
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px){
  .page-intro{ padding: 18px 0 6px; }
  .page-intro-inner{ padding: 18px 14px; border-radius: 16px; }
  .page-intro-inner p{ font-size: 14.5px; }
}


/* === HOVER cards marca === */
.brand-card{
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  border: 1px solid rgba(0,0,0,.06);
  will-change: transform;
}

.brand-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.brand-card img{
  transition: transform .22s ease;
}

.brand-card:hover img{
  transform: scale(1.04);
}

/* Accesibilidad: misma animación al navegar con teclado */
.brand-card:focus-within{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.brand-card:focus-within img{
  transform: scale(1.04);
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .brand-card,
  .brand-card img{
    transition: none !important;
  }
  .brand-card:hover,
  .brand-card:focus-within{
    transform: none !important;
  }
  .brand-card:hover img,
  .brand-card:focus-within img{
    transform: none !important;
  }
}

/* =========================================
            PUBLICIDAD.HTML
   ========================================= */
.portfolio-block{
  padding: 34px 16px 28px;
  text-align: center;
}

.portfolio-title{
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  color: #1f2a37;
}

.portfolio-divider{
  width: 72%;
  max-width: 820px;
  height: 2px;
  margin: 14px auto 14px;
  background: rgba(0,0,0,.10);
  border-radius: 999px;
}

.portfolio-desc{
  max-width: 780px;
  margin: 0 auto 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #6b7280;
}

.portfolio-image-wrap{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* ===== SOLO PARA BLOQUES CON 3 IMÁGENES ===== */

.portfolio-image-wrap.portfolio-image-triple{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

/* Ajuste visual de las imágenes */
.portfolio-image-wrap.portfolio-image-triple .portfolio-image{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;        /* tamaño contenido, no gigantes */
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.7s ease;
}

/* Hover individual elegante */
.portfolio-image-wrap.portfolio-image-triple .portfolio-image:hover{
  transform: scale(1.04);
}

/* Tablet */
@media (max-width: 900px){
  .portfolio-image-wrap.portfolio-image-triple{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móvil */
@media (max-width: 520px){
  .portfolio-image-wrap.portfolio-image-triple{
    grid-template-columns: 1fr;
  }

  .portfolio-image-wrap.portfolio-image-triple .portfolio-image{
    aspect-ratio: 16 / 10;
  }
}


.portfolio-image{
  width: min(980px, 100%);
  height: auto;
  display: block;
}

/* === Variación: dos imágenes ajustadas === */
.portfolio-image-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
}

/* Ajuste de tamaño para que no se vean gigantes */
.portfolio-image-grid .portfolio-image{
  width: 100%;
  max-height: 360px;     /* controla el tamaño visual */
  object-fit: contain;  /* no recorta señalética */
}

/* Responsive para móvil */
@media (max-width: 900px){
  .portfolio-image-grid{
    grid-template-columns: 1fr;
  }

  .portfolio-image-grid .portfolio-image{
    max-height: 300px;
  }
}
