@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");
/* Main Styles for Chess Club Website */

html {
  width: 100vw;
}
:root {
  --dark-blue: #0c4a99;
  --light-blue: #6ca7ff;
  --white: #ffffff;
  --gray: #f8f9fa;
  --dark-gray: #343a40;
  --text-color: #212529;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100vw;
}
.whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 1200;
}

.whatsapp-icon {
  margin-top: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--dark-blue);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--light-blue);
}

.text-justify {
  text-align: justify;
}

.btn {
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.btn-primary:hover {
  background-color: var(--light-blue);
  border-color: var(--light-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(12, 74, 153, 0.2);
}

.btn-outline-primary {
  color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.btn-outline-primary:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 650px;
  background-image: url("../img/FONDO-NAJDORF.jpeg");
  background-size: cover;
  background-position: center;
  position: relative;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 4rem;
}
.hero-text {
  color: white;
  font-size: 18px;
  font-weight: 200;
  margin: 0;
  font-family: "Oswald";
  font-size: 2rem;
}

/* Membership Section */
.membership-section {
  background-color: var(--gray);
}

.membership-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  filter: grayscale(100%);
  transition: var(--transition);
}

.membership-image:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.membership-content {
  padding: 30px;
}

.membership-form {
  margin-top: 30px;
}

/* About Section */
.about-section {
  /* background-image: url('https://plus.unsplash.com/premium_photo-1679483475629-d9b8c40092df?q=80&w=1632&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); 
    background-size: cover;
    position: relative;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 0;
    */
  background-color: var(--white);
}
/* .overlay-section-qsomos {
    background: #d6d6d6;
    z-index: 1;
    background: linear-gradient(278deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 50%, rgb(255, 255, 255) 100%);
    opacity: 85%;
    width: 100%;
    height: 100%;
    position: absolute;
} */
.about-section .container,
.course-section .container,
.school-section .container,
.activities-section .container,
.news-section .container {
  position: relative;
  z-index: 100;
  padding: 80px 0px;
}
.about-content {
  padding: 30px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  filter: grayscale(100%);
  transition: var(--transition);
}

.about-image:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* School Section */
.school-section {
  background-color: var(--gray);
}

.school-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.school-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.school-features {
  list-style-type: none;
  padding-left: 0;
  margin: 20px 0;
}

.school-features li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.school-features li:before {
  content: "♟";
  position: absolute;
  left: 0;
  color: var(--light-blue);
}

/* Activities Section */
.activities-section {
  background-color: var(--white);
}

.activity-card {
  display: flex;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  transition: var(--transition);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.activity-date {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.month {
  font-size: 1rem;
  font-weight: 600;
}

.activity-content {
  padding: 20px;
  flex: 1;
}

.activity-details {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.activity-time,
.activity-location {
  font-weight: 600;
}

/* News Section */
.news-section {
  background-color: var(--gray);
}

.news-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card .encabezado {
  height: 200px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}

.news-card:hover .encabezado {
  filter: grayscale(0%);
}

.news-card-body {
  padding: 20px;
}

.news-date {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Footer Section */
.footer-section {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.social-links {
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  transition: var(--transition);
}
.social-link i {
  color: white;
  font-size: 1.2rem;
}

.social-link:hover {
  background-color: var(--light-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Flecha de scroll animada */
/* En el archivo css/main.css, modifica la clase .scroll-arrow: */

.scroll-arrow {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px; /* Aumentamos el tamaño */
  color: #6ca7ff;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 1000;
  text-shadow: 0 0 10px rgba(108, 167, 255, 0.5); /* Añadimos sombra para más brillo */
  filter: drop-shadow(
    0 0 5px rgba(108, 167, 255, 0.3)
  ); /* Efecto de brillo alrededor */
  background: rgba(255, 255, 255, 0); /* Fondo transparente */
  border-radius: 10px; /* Bordes redondeados */
  padding: 10px; /* Espacio alrededor de la flecha */
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-40px); /* Mayor altura en el salto */
  }
  60% {
    transform: translateY(-20px); /* Rebote más suave */
  }
}
/* Imagenes responsive */
.img-fluid {
  width: 100%;
  height: auto;
}

/* Hero Image */
.hero-image {
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .hero-image {
    max-width: 500px;
  }
}

@media (max-width: 767.98px) {
  .hero-image {
    max-width: 400px;
  }
}

/* Image Gallery */
.image-gallery img {
  max-width: 300px;
  margin: 10px auto;
}

@media (max-width: 991.98px) {
  .image-gallery img {
    max-width: 250px;
  }
}

@media (max-width: 767.98px) {
  .image-gallery img {
    max-width: 200px;
  }
}

/* Activity Images */
.activity-image {
  max-width: 400px;
}

@media (max-width: 991.98px) {
  .activity-image {
    max-width: 350px;
  }
}

@media (max-width: 767.98px) {
  .activity-image {
    max-width: 300px;
  }
}

/* Course Images */
.teacher-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .teacher-image {
    width: 80px;
    height: 80px;
  }
}
/* Botón de Aula Virtual */
.virtual-class-btn {
  margin-left: 20px;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.virtual-class-btn:hover {
  background-color: #6ca7ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ajustes para móvil */
@media (max-width: 767.98px) {
  .virtual-class-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
/* Ajustar el margen superior para el contenido principal */
.page-noticia-detalle {
  margin-top: 80px;
}
/* === Ver más / Ver menos (ajustado a 6 líneas y botón abajo) === */
.truncate-activity-content {
  max-height: 13em; /* ~6 líneas si line-height ≈ 1.5em */
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.expanded-activity-content {
  max-height: 1000px;
}

.activity-toggle-btn {
  margin-top: 15px;
  background-color: #0c4a99;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.activity-toggle-btn:hover {
  background-color: #6ca7ff;
}

.bg-text-container {
  transform: translateX(-50%) skewY(-3.5deg);
  left: 50%;
  position: absolute;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) skewY(-3.5deg);
}
@keyframes text-scrolling {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(0%, 0, 0);
  }
}
.animate-text {
  animation: text-scrolling 60s linear infinite;
  will-change: transform;
  display: block;
  position: relative;
  white-space: nowrap;
}
.animate-text.left {
  animation-direction: reverse;
}
.bg-text-container span {
  font-size: 280px;
  color: transparent;
  -webkit-text-stroke: 2px #6ca7ff5b;
  text-transform: uppercase;
  display: inline-block;
  line-height: 0.75;
  min-width: auto;
  font-weight: 800;
  font-family: "Oswald", sans-serif;
}
.hero-content {
  position: relative;
  z-index: 4;
}
.container {
  padding: 30px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}
.hero-title {
  font-size: 90px;
  margin: 0;
  font-family: "Oswald", sans-serif;
  color: white;
  font-weight: 700;
}
.posicion {
  z-index: 4;
}
