/* ========================================
   HEADER - CrossFit VNG
   ======================================== */

/* Import tipografía */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

* {
  font-family: 'Montserrat', sans-serif;
  /* font-weight: 500; */
}

/* Variables del header */
:root {
  --he-bg: #ffffff;
  --he-text: #1a1a1a;
  --he-accent: #8b0000;
  --he-radius: 12px;
  --he-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --he-height: 80px;
  --he-padding-x: 2.5rem;
  --he-transition: all 0.3s ease-in-out;
}

/* Header fijo */
.he-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--he-height);
  background: var(--he-bg);
  box-shadow: var(--he-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* Contenedor interno centrado */
.he-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--he-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Logo */
.he-logo img {
  height: 62px;
  display: block;
  object-fit: contain;
}

/* Menú navegación */
.he-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.he-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.he-links a {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--he-text);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  line-height: 1;
}

/* Subrayado animado elegante */
.he-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0; /* sustituye left/right */
  bottom: -6px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #8b0000 0%, #000000 100%);
  transition: width 0.35s ease;
  border-radius: 2px;
}

.he-links a:hover::after,
.he-links a:focus::after {
  width: 100%;
}

/* Botón de dropdown clases */
.he-dropbtn-clases {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

/* Submenú clases */
.he-subclases {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 2px solid #b30000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 1.2rem 3rem;
  z-index: 999;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-align: justify;
  box-sizing: border-box;
}

.he-subclases.visible {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  gap: 1.5rem 3.5rem;
  text-align: center;
}

.he-subclases a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
}

.he-subclases a {
  pointer-events: auto;
}

.he-subclases:not(.visible) a {
  pointer-events: none;
}

.he-subclase-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.he-subclases a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  inset-inline: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #8b0000 0%, #000000 100%);
  transition: width 0.35s ease-in-out;
  border-radius: 2px;
}

.he-subclases a:hover::after {
  width: 100%;
}

/* .he-subclases a:hover::after {
  width: 100%;
} */

/* Botón hamburguesa */
.he-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Accesibilidad */
.he-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ========================
   RESPONSIVE - Mobile
   ======================== */

@media (max-width: 992px) {
  .he-toggle {
    display: block;
  }

  .he-links {
    position: absolute;
    top: var(--he-height);
    right: 0;
    flex-direction: column;
    background: var(--he-bg);
    width: 260px;
    padding: 1rem 1.5rem;
    display: none;
    box-shadow: var(--he-shadow);
    border-bottom-left-radius: var(--he-radius);
    border-bottom-right-radius: var(--he-radius);
    z-index: 999;
  }

  .he-links.menu-visible {
    display: flex;
  }

  .he-subclases {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 1rem;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: var(--he-radius);
    border-bottom-right-radius: var(--he-radius);
    transition: all 0.3s ease;
  }

  .he-subclases.visible {
    display: flex;
  }

  .he-subclases a {
    width: 100%;
    padding: 0.75rem 0;
    display: block;
  }
}

@media (max-width: 1024px) {
  #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    align-items: center;
    text-align: center;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    border-bottom-left-radius: var(--he-radius);
    border-bottom-right-radius: var(--he-radius);
    transition: all 0.3s ease-in-out;
    margin-top: 0;
  }

  #nav-links.menu-visible {
    display: flex;
  }

  .he-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  #nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .he-toggle {
    display: none;
  }

  .he-subclases {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--he-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 998;
  }

  .dropdown-parent:hover + .he-subclases,
  .dropdown-parent:hover .he-subclases {
    display: flex;
  }
}

/* ======================================= */
/* Footer profesional - versión .footer__ */
/* ======================================= */

.footer {
  background: linear-gradient(to top, #f2f4f8, #ffffff);
  padding: 4rem 2rem 2rem;
  margin-left: 20px;
  border-top: 1px solid #ddd;
  color: #1a1a1a;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
}

.footer__contenido {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  margin-left: 30px;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  list-style: none;
  margin-left: 60px;
}

.footer__contacto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer__titulo {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #cd212a, #000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.footer__subtitulo {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #1a1a1a;
}

.footer__texto {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.footer__lista {
  padding: 0;
  margin: 0;
}

.footer__link {
  color: #444;
  display: inline-block;
  margin-bottom: 0.2rem;
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.footer__link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, #cd212a, #000);
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: #1a1a1a;
}

.footer__link:hover::after {
  width: 100%;
}

.footer__copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
  width: 100%;          
  display: block; 
}

.footer__legal {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.footer__legal-lista {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer__nav li,
.footer__info li,
.footer__contacto li,
.footer__lista li {
  list-style: none;
}

/* @media (max-width: 960px) {
  .footer__contenido {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__nav,
  .footer__contacto {
    align-items: center;
  }

  .footer__link::after {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .footer__contenido {
    padding: 0 1rem;
  }

  .footer__legal-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    gap: 0.8rem;
  }

  .footer__legal-lista li {
    width: 100%;
  }

  .footer__legal-lista li a {
    display: inline-block;
    width: 100%;
    padding: 0.4rem 0;
  }
} */

.footer__redes {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer__redes a {
  display: inline-flex;
  justify-content: left;
  align-items: flex-start;
  font-size: 2rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background-color: transparent;
  transition: transform 0.3s ease;
  text-decoration: none;
}

/* Instagram con degradado */
.footer__redes a[aria-label='Instagram'] i {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* WhatsApp en verde oficial */
.footer__redes a[aria-label='WhatsApp'] i {
  color: #25d366;
}

/* Hover */
.footer__redes a:hover {
  transform: scale(1.1);
}

/* Botón flotante de WhatsApp */
.btn-whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
}

.btn-whatsapp img {
  width: 55px;
  height: 55px;
  display: block;
}

.btn-whatsapp:hover {
  transform: scale(1.3);
  /*box-shadow: 0 6px 15px rgba(0,0,0,0.4);*/
}

/* Si usas Font Awesome */
.btn-whatsapp i {
  font-size: 28px;
  color: white;
}

/* Responsive: más pequeños en móvil */
@media (max-width: 600px) {
  .footer__redes a {
    font-size: 1.6rem;
    width: 2.2rem;
    height: 2.2rem;
    margin-top: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 1.5rem 1rem;
    margin-left: 0;
    text-align: left;
  }

  .footer__contenido {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 0 auto;
    padding: 2rem;
  }

  .footer__nav {
    margin-left: 0;
    gap: 0.6rem;
  }

  .footer__contacto {
    align-items: flex-start;
  }

  .footer__titulo,
  .footer__subtitulo {
    text-align: left;
  }

  .footer__legal {
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
  }

  .footer__legal-lista {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
  }

  .footer__legal-lista li {
    list-style: none;
    font-size: 0.9rem;
  }

  .footer__copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
  }
}

/* =============================
   FOOTER – Ajustes finales
   (pegar al final del CSS)
============================= */

/* 1) Lista legal perfectamente centrada */
.footer__legal-lista{
  display: flex;                /* override del inline-flex */
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  list-style: none;
}

/* 2) Copyright 100% centrado y estable */
.footer__copyright{
  width: 100%;
  display: block;
  text-align: center;
  margin: 1rem auto 2rem;
  font-size: 0.8rem;
  color: #888;
}

/* 3) Enlace “Adrián Morín” con degradado rojo → rojo oscuro */
.footer__copyright a{
  /* fallback sólido si el navegador no soporta clip de fondo */
  color: #b31217;

  background: linear-gradient(90deg, #e60000, #800000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 600;
  text-decoration: none;
  transition: opacity .25s ease;
}
.footer__copyright a:visited{
  color: #b31217;               /* evita morado por defecto en fallback */
  -webkit-text-fill-color: transparent;
}
.footer__copyright a:hover{
  opacity: .85;                 /* efecto sutil */
}

@media (max-width: 600px) {
  .footer__copyright {
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem; /* separación suave entre líneas */
  }

  /* Forzar salto de línea en "Web desarrollada por" y "Todos los derechos reservados" */
  .footer__copyright span {
    display: block;
  }
}



