/* ===============================
   BASE GENERAL
=============================== */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  background-color: #fdfdfd;
  color: #1e1e1e;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}
.container-btn1{
  margin: 6%;
}

/* ===============================
   TIPOGRAFÍA GLOBAL
=============================== */
h1 {
  font-size: 2.2rem;
  color: #c0c0c0;
  /* plateado */
  text-shadow: 0 0 8px #d3d3d3;
  /* sombra gris suave y brillante */
  margin-bottom: 20px;
}


h2 {
  font-size: 2rem;
  color: #004aab;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.6rem;
  color: #3366cc;
  margin-bottom: 10px;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3b3b3b;
  font-family: 'Arial', sans-serif;
}

/*padding para que no se vea apretado el header con las sections*/
.main-principal {
  padding-top: 8rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 4rem;
}


/* ===============================
   HEADER
=============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  margin-bottom: 1rem;
  /* menor separación */
  background-color: #0b0f2b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 15px;
  /* menos altura lateral */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  /* más discreto */
  border-bottom: 1px solid #00ffc3;
  /* más fino */
  width: 100%;
  box-sizing: border-box;
  z-index: 99;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/*transform scroll*/
.header--hidden {
  transform: translateY(-100%);
}

/*header transparente*/
.header-transparente {
  background-color: rgba(11, 15, 43, 0.6);
  /* tono oscuro semi-transparente */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  /* efecto de desenfoque elegante */
}
.title-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #00ffc3;
  box-shadow: 0 0 10px #0d6dfd;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffc3, 0 0 5px #fff;
}

  
/*secciones principales*/
section {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  border-left: 6px solid #0074e4;
}

/* ===============================
   HISTORIA
   */
   .historia {
  background-color: #ffffff;
  padding: 30px;
  border-left: 6px solid #0074e4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  text-align: center;
}

.imagen-historia img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.texto-historia p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3b3b3b;
  text-align: justify;
}

   /*
=============================== */
.historia p {
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 20px;
  color: #191818;
  position: relative;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.historia::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  z-index: -1;
}

/* ===============================
   CURSO
=============================== */
.curso {
  background-color: #f0f5ff;
  box-shadow: 0 4px 12px rgba(0, 64, 255, 0.15);
  border-left: 6px solid #0074e4;
  padding: 40px;
}

/*estilos de la img caballo del curso 1200-  1600*/
.img-curso {
  width: 220px;
  height: auto;
  border-radius: 50%;
  /* imagen circular */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  display: block;
  object-fit: cover;
}


/* ===============================
   FORMULARIO
=============================== */
.formulario {
  background-color: #f8faff;
  border-top: 3px solid #00ffc3;
  box-shadow: 0 4px 14px rgba(0, 255, 195, 0.15);
  border-radius: 8px;
}

/* ===============================
   BOTONES
=============================== */
.botonformu,
.registro-link {
  background-color: #102d73;
  color: #f8f8ff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  margin: 15px auto;
  transition: all 0.3s ease-in-out;
  border: 1px solid green;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.botonformu:hover,
.registro-link:hover {
  background-color: #4a91f2;
  color: #ffffff;
  transform: scale(1.05);
}

/* ===============================
   REDES SOCIALES
=============================== */
#contact a[href*="instagram.com"] {
  color: #d6249f;
}

#contact a[href*="instagram.com"]:hover {
  color: #feda75;
}

#contact a[href*="wa.me"] {
  color: #25D366;
}

#contact a[href*="wa.me"]:hover {
  color: #1ebe5f;
}

#contact img {
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
  border-radius: 4px;
}

/* ===============================
   FOOTER
=============================== */
.footer-contacto {
  background-color: #1c1c2e;
  color: #e1e1e1;
  text-align: center;
  padding: 30px 20px;
  border-top: 4px solid #00ffc3;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.footer-contacto h3 {
  font-size: 1.8rem;
  color: #dcdcdc;
  margin-bottom: 10px;
}

.footer-enlaces a {
  color: #4ac4ff;
  margin: 0 8px;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-enlaces a:hover {
  color: #ffffff;
}

.frase-ajedrez {
  font-style: italic;
  color: #faf0b8;
  margin: 10px 0;
}

.footer-creditos {
  font-size: 0.9rem;
  color: #d5d0d0;
  margin-top: 15px;
}

.footer-contacto p {
  color: white;
}

/*section resenas*/
.reseñas {
  background-color: #f2f2f9;
  padding: 40px 20px;
  border-top: 4px solid #0074e4;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.reseñas input,
.reseñas textarea {
  width: 90%;
  max-width: 500px;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.reseñas button {
  background-color: #0074e4;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reseñas button:hover {
  background-color: #005ac0;
}

#lista-reseñas {
  margin-top: 30px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/*mobil pantallas pequenas*/
@media (max-width: 768px) {
  .header {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;         /* Menor grosor */
  height: auto;
  gap: 6px;                  /* Espacio entre logo/título/hamburguesa */
}

.title-logo {
  display: flex;   /* ✅ Uno debajo del otro */
  align-items: center;
  margin-bottom: 0px;
}
.site-title {
  font-size: 1.4rem;
  text-align: center;
  margin: 0;                /* ✅ Elimina espacio vertical extra */
}
.logo {
  width: 48px;
  height: 48px;
}
.hamburger {
  align-self: center;       /* ✅ Centrado debajo del título */
  margin-top: 4px;
}
/*section main para tener todo el ancho de la pantalla del mobil*/
.main-principal{
  padding: .2rem;
}
  section {
    margin: center;
    padding: 1rem;
  }
  h1,
  h2,
  h3 {
    font-size: 1.6rem;
    text-align: center;
  }
  p {
    font-size: 1rem;
  }
  .img-curso {
    width: 160px;
  }
  .botonformu,
  .registro-link {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 10px;
    margin: 10px 0;
  }
  #contact {
    text-align: center;
  }
  #contact img {
    height: 20px;
  }
  footer p {
    font-size: 0.9rem;
    padding: 8px;
  }
  /*HISTORIA DE AJEDREZ*/
 .historia {
  background-color: #ffffff;
  padding: 30px;
  border-left: 6px solid #0074e4;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  text-align: center;
}

.imagen-historia img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.texto-historia p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3b3b3b;
  text-align: justify;
}

}