:root {
  --celeste: #049dbf;
  --amarillo: #f2b950;
  --naranja: #c46c00;
  --crema: #d9ac84;
  --rosa: #f28585;
  --blanco: #fafafa;
  --cafe: #48372f;

  /* FAQ / Accordion colors */
  --color-text-primary: var(--cafe);
  --color-text-secondary: rgba(72, 55, 47, 0.8);
  --color-text-tertiary: rgba(72, 55, 47, 0.5);
  --color-border-tertiary: rgba(72, 55, 47, 0.15);
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: "Google Sans", sans-serif;
  color: var(--cafe);
  background-image: url();
  background-size: contain;
  background-repeat: repeat-y;
  background-position: center;
}



h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
  font-family: "Google Sans", sans-serif;
  font-weight: 700;

}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--crema);
}

::-webkit-scrollbar-thumb {
  background: var(--celeste);
  border-radius: 3px;
}


.navbar {
  background: #fafafa !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-family: "pt narrow sans", sans-serif;
  font-size: 1.1rem;
  color: var() !important;
  letter-spacing: 0.05em;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Ocultar logo al inicio solo en páginas con Hero (ej. index.html) */
body:has(#hero) .navbar:not(.scrolled) .navbar-brand {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.navbar.scrolled .navbar-brand {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.nav-link {
  font-family: "Google Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem !important;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--naranja);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--celeste) !important;
}

.navbar-toggler {
  border-color: transparent;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  color: var(--rosa);
  font-weight: 700;


}

#hero {
  position: relative;
  min-height: 100vh;
  top: 49px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*padding-top: 60px;*/
  background-size: cover;
  background-position: center;
  /* Se añadió el punto y coma */
  background-image: url('img/fondo_solo-04.webp');
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* grain overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

#uncuyo-pan {
  position: relative;
  background-image: url("img/uncu-panor.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  padding: 6rem 0;
  overflow: hidden;
}

#uncuyo-pan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#uncuyo-pan .container-fluid {
  position: relative;
  z-index: 2;
}

#uncuyo-pan h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.3;
}

.hero-logo-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeDown 1s ease both;
  width: 100%;
}

.hero-logo-wrap .hero-img {
  /* ensure absolute positioning even inside the wrap if needed, 
          but it's better to keep it consistent */
}

.hero-logo-wrap img {
  max-width: min(1280px, 100vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(251, 175, 53, 0.25));
}

/* fallback si no hay imagen */
.hero-logo-fallback {
  font-family: "PT Sans Narrow", sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--crema);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.1;
}

.hero-logo-fallback span {
  display: block;
  font-size: 0.45em;
  color: var(--amarillo);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.3em;
}

.hero-accent-line {
  width: 60px;
  height: 3px;
  background: var(--lima);
  margin: 1.2rem auto 0;
  animation: fadeDown 1s 0.2s ease both;
}

.scroll-down-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--crema);
  opacity: 0.6;
  animation: fadeIn 2s 1.2s ease both;
}

.scroll-down-info span {
  font-family: "Google Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-down-info i {
  font-size: 1.1rem;
  animation: bounce 1.6s infinite;
}





/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.8rem;
  right: 2.2rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
  animation: fadeIn 2s 1.2s ease both;
}

.scroll-hint span {
  font-family: "Google Sans", sans-serif;
  font-size: 0.65rem;
  color: var(--crema);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-hint i {
  color: var(--crema);
  font-size: 0.9rem;
  animation: bounce 1.6s infinite;
}

header {
  padding: 6rem 3rem 0;
  ;
}

section {
  padding: 4rem 0;
}

.section-tag {
  font-family: "Google Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.divider-lima {
  width: 48px;
  height: 3px;
  background: var(--naranja);
  margin-bottom: 2rem;
}

#participar,
#presentacion,
#participar,
#comision,
#estructura,
#inscripcion,
#simposios {
  background: var(--celeste);
  color: #fafafa;
}

#circular {
  background-color: var(--amarillo) !important;
}


.about-card {
  background: var(--);
  /* border: solid 2px, var(--celeste); */
  color: var(--celeste);
  border-radius: 2px;
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--lima);
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card .icon {
  font-size: 2rem;
  color: var(--celeste);
  margin-bottom: 1rem;
}


.about-card h3 {
  color: var(--celeste);
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

.about-card h5 {
  font-size: 1rem;
  color: var(--celeste);
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

#circular {
  background: var(--verde);
  color: var(--crema);
  position: relative;
  /* Para el gato lateral */
  overflow: hidden;
}



#circular .section-tag {
  color: var(--blanco);
}

#circular .section-title {
  color: var(--celeste);
}

.book-cover {
  background: var(--cafe);
  border-radius: 2px;
  aspect-ratio: 2/3;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 0 var(--burdeo), 16px 16px 0 rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.book-cover:hover {
  transform: rotate(-1deg) scale(1.03);
}

.book-cover-inner {
  width: 100%;
  height: 100%;

  background-image: url(img/portada.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.book-cover-inner .book-title {
  font-family: "Google Sans", sans-serif;
  font-size: 1.05rem;
  color: var(--crema);
  line-height: 1.2;
}

.book-cover-inner .book-author {
  font-size: 0.8rem;
  color: var(--amarillo);
  margin-top: 0.7rem;
  letter-spacing: 0.1em;
}

.book-cover-inner .book-deco {
  width: 30px;
  height: 2px;
  background: var(--lima);
  margin: 1rem auto 0;
}

.badge-mes {
  display: inline-block;
  background: var(--amarillo);
  color: var(--blanco);
  font-family: "Google Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 1px;
  margin-bottom: 1rem;
}


#circular .badge-mes {

  display: inline-block;
  background: var(--crema);
  color: var(--blanco);
  font-family: "Google Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 1px;
  margin-bottom: 1rem;
}

#reuniones {
  background: var(--crema);
}

.meeting-card {
  border: none;
  border-radius: 2px;
  background: white;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 0 var(--celeste);
}

.meeting-card:hover {
  box-shadow: 0 6px 0 var(--naranja);
  transform: translateY(-3px);
}

/* Resaltado para el dÃ­a actual */
.meeting-card.today {
  border: 2px solid var(--rosa);
  box-shadow: 0 0 15px rgba(174, 247, 64, 0.4);
  transform: scale(1.02);
  z-index: 10;
}

.meeting-card.today .meeting-date {
  background: var(--rosa);

}

.meeting-card.today .meeting-date .month {}

#actas {
  scroll-margin-top: 90px;
}

.meeting-date {
  background: var(--celeste);
  color: #fafafa;
  width: 70px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  flex-shrink: 0;
}

.meeting-date .day {
  font-family: "Google Sans", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.meeting-date .month {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  color: #fafafa;
}

.meeting-body {
  padding: 1.1rem 1.3rem;
  flex: 1;

}

.meeting-body h6 {
  font-size: 0.95rem;
  color: ;
  margin-bottom: 0.3rem;
}

.meeting-body p {
  font-size: 0.85rem;
  color: var(--celeste);
  margin: 0;
}


#lecturas {
  color: var(--celeste);
}

#lecturas .section-tag {
  color: var(----celeste);
}

#lecturas .section-title {
  color: var(--celeste);
}

.past-book {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(31, 30, 30, 0.1);
  border-radius: 2px;
  padding: 1.4rem 1.2rem;
  transition: background 0.3s, border-color 0.3s;
  height: 100%;
}

.past-book:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--celeste);
}

.past-book .num {
  font-family: "Google Sans", sans-serif;
  font-size: 2rem;
  color: var (--celeste);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.past-book h6 {
  font-size: 0.95rem;
  color: var(--crema);
  margin-bottom: 0.2rem;
}

.past-book .author {
  font-size: ;
  color: black;
  font-weight: 600;
}

.past-book .rating {
  color: var(--lima);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

#sumate {
  background: var(--burdeo);
  color: var(--crema);
  position: relative;
  overflow: visible;
  /* Permitir que el gato asome por arriba */
}

#sumate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(251, 175, 53, 0.12) 0%, transparent 60%);
  pointer-events: none;
}



#sumate .section-tag {
  color: var(--amarillo);
}

#sumate .section-title {
  color: var(--crema);
}

.form-control-club {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 201, 186, 0.25);
  border-radius: 2px;
  color: var(--crema);
  font-family: "PT Sans Narrow", sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.form-control-club:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--lima);
  outline: none;
  box-shadow: 0 0 0 3px rgba(174, 247, 64, 0.15);
  color: var(--crema);
}

.form-control-club::placeholder {
  color: rgba(212, 201, 186, 0.5);
}

.btn-ama {
  background: var(--naranja);
  color: var(--blanco);
  font-family: "Google Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  padding: 0.75rem 2rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-ama:hover {
  background: var(--amarillo);
  transform: translateY(-2px);
}

.btn-outline-crema {
  border: 1.5px solid var(--naranja);
  color: var(--naranja);
  background: transparent;
  font-family: "Google Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-crema:hover {
  background: var(--crema);
  color: var(--cafe);
}

footer {
  /*background: #e2e2e2;*/
  color: var(--cafe);
  padding: 3rem 0 1rem;
}

footer .footer-brand {
  font-family: "Google Sans", sans-serif;
  font-size: 1.1rem;
  color: var(--cafe);
  margin-bottom: 0.5rem;
}

footer p {
  font-size: 0.85rem;
  color: var(--cafe);
}

footer a {
  color: var(--cafe);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--naranja);
}

footer .footer-nav li {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 201, 186, 0.2);
  border-radius: 2px;
  color: var(--cafe);
  font-size: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

footer .social-icon:hover {
  background: var(--burdeo);
  border-color: var(--burdeo);
  color: var(--crema);
}

.footer-divider {
  border-color: rgba(212, 201, 186, 0.1);
  margin: 1.5rem 0 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(212, 201, 186, 0.35);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.6;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* AnimaciÃ³n secuencial de tÃ­tulos */
.title-animation-container {
  position: relative;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.title-slide {
  position: absolute;
  opacity: 0;
  animation: titleLoop 9s infinite;
  max-width: min(350px, 80vw);
}

.title-slide:nth-child(1) {
  animation-delay: 0s;
}

.title-slide:nth-child(2) {
  animation-delay: 3s;
}

.title-slide:nth-child(3) {
  animation-delay: 6s;
}

@keyframes titleLoop {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  5% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(0);
  }

  35% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 0;
  }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}


.hover-brand:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}




@media (max-width: 768px) {
  #hero {
    height: auto !important;
    min-height: auto !important;
  }

  .hero-img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    height: 581px;
    top: -44px;
  }

  .hero-logo-wrap img {
    max-width: min(300px, 80vw);
  }

  .scroll-hint {
    display: none;
    /* Ocultar scroll hint en móviles para ganar espacio */
  }

  .navbar-brand {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

.join-a {
  text-decoration: none;
  color: black;

}


strong {
  color: var(--café);
  font-weight: 900 !important;

}

/* Navbar Dropdowns */
.dropdown-menu {
  background-color: var(--blanco);
  border: none;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0;
}

.dropdown-item {
  font-family: "Google Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cafe);
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background-color: var(--celeste);
  color: white;
}

@media (min-width: 992px) {

  /* Muestra el menú al pasar el mouse por el nav-item */
  .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
  }

  /* Opcional: Rotación suave de la flechita */
  .dropdown-toggle::after {
    transition: transform 0.2s ease;
  }

  .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

.nav-item.dropdown:hover .nav-link::after {
  transform: scaleX(1);
}

/*colapsable*/

.acc-c {}

.acc-c .item {
  border-bottom: 0.5px solid var(--color-border-tertiary);
}

.acc-c .trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "google Sans ", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--celeste);
  text-align: left;
  gap: 8px;
}

.acc-c .num {
  font-size: 11px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.1em;
  min-width: 22px;
  font-weight: 400;
}

.acc-c .trigger .bar {
  width: 18px;
  height: 2px;
  background: var(--color-text-tertiary);
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s;
}

.acc-c .trigger .bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 18px;
  background: inherit;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s;
}

.acc-c .trigger.open .bar::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.acc-c .trigger:hover .bar {
  background: var(--color-text-primary);
}

.acc-c .panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.acc-c .panel-inner {
  padding: 0 0 1rem 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.wrap {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cafe);
  margin-bottom: 0.7rem;
  font-weight: 500;
}


.label-simpo {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--naranja) !important;
  margin-bottom: 0.7rem;
  font-weight: 500;
}