@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-yellow: rgba(212, 165, 7, 1);
  --light-yellow: rgb(245, 188, 5, 1);
  --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:#04d952;
  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-yellow);
}

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-yellow);
}

.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-yellow);
  border-color: var(--dark-yellow);
}

.btn-primary:hover {
  background-color: var(--light-yellow);
  border-color: var(--light-yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(12, 74, 153, 0.2);
}

.btn-outline-primary {
  color: var(--dark-yellow);
  border-color: var(--dark-yellow);
}

.btn-outline-primary:hover {
  background-color: var(--dark-yellow);
  color: var(--white);
}


/* Hero Section */
.hero-section {
    background-color: #2c3e50; /* Un color similar al fondo de tu imagen */
    height: 100vh;
    min-height: 650px;
    background-image: url('../img/Fondo_mobil.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    z-index: 0;
    display: flex;
    align-items: center;
}
@media (min-width: 768px) {
    .hero-section {
        /* Imagen grande para pantallas de PC */
        background-image: url(../img/Fondo.avif);
    }
}
/* Overlay oscuro para mejorar legibilidad del texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Asegurar que el overlay existente no interfiera */
.hero-section .overlay {
    z-index: 1;
    pointer-events: none;
}

.hero-section .overlay canvas {
    pointer-events: auto;
}

/* Contenedor principal del hero */
.hero-container {
    position: relative;
    top: -5%;
    z-index: 3;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Columna de contenido */
.hero-content-col {
    position: relative;
    z-index: 4;
    padding-left: 20px;
}

.hero-content {
    padding: 60px 0;
    animation: fadeInUp 1s ease-out;
}

/* Título principal */
.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.02em;
}

/* Descripción */
.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 600px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Botón CTA */
.hero-cta-btn {
    /*background-color: var(--dark-yellow);*/
    border-color: var(--dark-yellow);
    color: var(--white);
    padding: 18px 45px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 165, 7, 0.5);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.hero-cta-btn:hover {
    /*background-color: var(--light-yellow);*/
    border-color: var(--light-yellow);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(245, 188, 5, 0.6);
    color: var(--white);
}

/* Columna decorativa con SVGs */
.hero-decorative-col {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-svg-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    max-width: 600px;
    margin-left: auto;
}

/* Estilos para los SVGs decorativos */
.hero-svg {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
    opacity: 0.95;
}

.hero-svg-1 {
    z-index: 2;
    max-width: 960px;
    width: 85%;
    right: 0;
    top: 40%;
    transform: translateY(-45%);
    animation: float 6s ease-in-out infinite;
}


/* Animación flotante para los SVGs */
@keyframes float {
    0%, 100% {
        transform: translateY(-55%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-10px);
    }
}

/* --- Mobile: agrandar la imagen decorativa del hero (.hero-svg-1) --- */
@media (max-width: 767.98px) {
  .hero-decorative-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
  }

  /* Hacemos la imagen PNG más grande y centrada en móviles */
  .hero-svg-1 {
    position: relative;
    width: 75% !important;    /* más ancha que el contenedor para mayor impacto */
    max-width: none !important;
    height: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 3;
    opacity: 0.98;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
  }

  /* Asegurar que el container no recorte inesperadamente */
  .hero-svg-container {
    overflow: visible;
  }
}

/* Animación fade-in para el contenido */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevenir conflictos con style.css - asegurar que body permita scroll */
body {
    overflow-x: hidden;
    overflow-y: auto !important; /* Permitir scroll vertical - importante para sobreescribir style.css */
}

/* Prevenir que html tenga overflow hidden que pueda afectar */
html {
    overflow-x: hidden;
    overflow-y: auto !important;
}

/* Prevenir conflictos con style.css - asegurar que canvas del hero funcione */
.hero-section canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Mantener estilos existentes para compatibilidad */
.hero-section h1:not(.hero-title) {
    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-yellow);
}

/* 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-yellow);
  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-yellow);
  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-yellow);
  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.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: 80px;
            margin: 0;
            font-family: "Oswald", sans-serif;
            color: white;
            font-weight: 700;
        }
.posicion {
  z-index: 4;
}
#lichess-board {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

/* Ajuste para que los botones "botonazo" se adapten al texto doble */
.botonazo small {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: none;
    letter-spacing: 0px;
}

  .hero-title {
    margin-top: -15px !important; /* Ajusta el número según cuánto quieras que suba */
    margin-bottom: 8px !important; /* El espacio pequeño que pediste */
  }
  .hero-description {
    margin-top: 0 !important;
  }