/* Estilos base - Mobile first */
:root {
  --amarillo: #f2c94c;
  --azul: #004c97;
  --rojo: #d62828;
  --gris-oscuro: #111;
  --blanco: #ffffff;
  --font-primary: 'Montserrat', sans-serif;
}

html {
  scroll-padding-top: 250px; /* Ajusta este valor según la altura de tu header */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
}

h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--azul);
}

section {
  padding: 0 1rem; /* Remove default section padding */
}

/* Header styles - Mobile first */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.header-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.logo-header {
  height: 100px;
  width: auto;
}

.title-menu-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-family: var(--font-primary);
  color: var(--amarillo);
  font-size: 1.5rem;
  text-align: center;
  margin: 0.5rem 0;
  padding: 0 1rem;
}

.navbar-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--blanco);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1002;
}

/* Update mobile menu styles */
.navbar-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30vh; /* Full height */
  background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
  padding-top: 6rem;
  z-index: 1001;
}
.navbar-menu li {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: none;
  fotn-size: 1.2rem;
}
.navbar-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.navbar-menu a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  width: 100%;
  text-align: center;
}

/* Eliminar todos los outlines y efectos de tap */
* {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.navbar-menu a:focus,
.navbar-toggle:focus,
button:focus {
  outline: none;
}

.navbar-menu a,
.navbar-toggle,
button {
  -webkit-tap-highlight-color: transparent;
}

/* Update mobile styles */
@media (max-width: 768px) {
  .header-container {
    padding: 0.5rem;
    position: relative;
  }

  .site-title {
    margin-top: 70px; /* Add space for logo */
    font-size: 0.9rem;
    padding: 0 1rem;
  }

   .navbar-toggle {
    right: 5rem;
    left: auto;
    }
  html {
    scroll-padding-top: 150px; /* Ajusta para móviles si el header es más alto */
  }
}

/* Update menu items for mobile/tablet */
@media (max-width: 991px) {
  .navbar-menu a {
    background-color: none;
    font-size: 1.5rem;
    width: 90%;
    max-width: 300px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

/* Tablet styles (769px to 991px) */
@media (min-width: 769px) and (max-width: 991px) {
  .logo-area {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .logo-header {
    height: 120px;
  }

  .navbar-toggle {
    right: 5rem;
    left: auto;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 1rem 2rem;
    gap: 2rem;
    background: none;
  }

  .logo-area {
    position: absolute;
    top: 30px;
    left: 20px;
    width: auto;
    z-index: 1003;
  }

  .logo-header {
    height: 180px;
  }

  .title-menu-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Remove any absolute positioning that might interfere */
  .navbar-toggle {
    display: none;
  }

  .navbar-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    height: auto;
  }

  .navbar-menu a,
  .navbar-menu a:focus {
    width: auto;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
    border: none;
  }

  .navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
    border: none;
  }

  #quienes-somos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem; /* Remove top padding */
  }
}

/* Reset carousel styles */
.carousel {
  position: relative;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.carousel-container {
  position: relative;
  width: 300%; /* Width = 100% * number of images */
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 33.333%; /* 100% divided by number of images */
  height: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Carousel navigation buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--blanco);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items:center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.carousel-button.prev {
  left: 2%;
  margin-top: 5%;
  z-index: 3000;
}

.carousel-button.next {
  right: 2%;
  margin-top: 5%;
  z-index: 3000;

}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

/* Remove any previous responsive adjustments for carousel */
@media (max-width: 768px) {
  .carousel {
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .carousel-button.prev {
    left: 10px;
  }
  
  .carousel-button.next {
    right: 10px;
  }
}

.section-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card-grid a,
.card-grid div {
  background: var(--blanco);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: var(--azul);
  transition: border 0.3s, background-color 0.3s;
}

.card-grid a:hover,
.card-grid div:hover {
  border-color: var(--amarillo);
  background-color: #eef6ff;
}

.card-grid.tutoriales a,
.card-grid.tutoriales div {
  background: #fef8f6;
  color: var(--rojo);
  border-color: var(--rojo);
}

.card-grid.tutoriales a:hover,
.card-grid.tutoriales div:hover {
  background: #ffe8e5;
}

.card-grid.beneficios a,
.card-grid.beneficios div {
  background: #fffce6;
  color: var(--amarillo);
  border-color: var(--amarillo);
}

.card-grid.beneficios a:hover,
.card-grid.beneficios div:hover {
  background: #fff7c2;
}

.card-grid.clubes a,
.card-grid.clubes div {
  background: #e6f0ff;
  color: var(--azul);
  border-color: var(--azul);
}

.card-grid.clubes a:hover,
.card-grid.clubes div:hover {
  background: #d0e3ff;
}

input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  text-align: center;
  justify-content: center;
}

.btn:hover {
  background: #a61e1e;
}

footer {
  background-color: var(--gris-oscuro);
  color: var(--blanco);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 100px;
  width: auto;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info p {
  margin: 0;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-logo img {
    height: 120px;
  }
}

.mapa {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto 0;
}

.mapa iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px;
}

.parallax {
  position: relative;
  height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-content {
  text-align: center;
  color: white;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.parallax-content h2 {
  font-family: var(--font-primary);
  font-weight: 600;
  color: white;
}

/* Ajuste para dispositivos móviles */
@media screen and (max-width: 412px) {
  .parallax {
    height: 300px;
    background-attachment: fixed !important;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
  }

  .parallax-content h2 {
    font-size: 1.2em;
    padding: 10px;
    color: white;
  }
}

/* Elimina las media queries anteriores del parallax y reemplázalas con esta */
@media screen and (min-width: 413px) and (max-width: 915px) {
  .parallax {
    height: 350px;
    background-attachment: fixed !important;
    background-position: center center;
  }
}

/* Update Quienes Somos section */
#quienes-somos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 2rem; /* Remove top padding */
  margin: 0; /* Remove all margins */
}

#quienes-somos .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align:justify;
  margin-top: 0;
}

#quienes-somos img {
  width: 300px;
  height: 300px;
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image fills the circular space */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: adds subtle shadow */
  border: 3px solid var(--azul); /* Optional: adds border */
}

.content-wrapper .quote {
  font-style: italic;
  color: #666;
  margin-top: 1rem;
  font-family: var(--font-primary);
}

/* Tablet */
@media (min-width: 600px) {
  .carousel img,
  .section-gallery img {
    height: 300px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 992px) {
  #quienes-somos {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem; /* Reduced padding for desktop */
  }

  #quienes-somos h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
  }

  .content-wrapper {
    width: 100%;
    display: flex;
    justify-content: between;
    align-items: flex-start;
    gap: 4rem;
  }

  #quienes-somos img {
    width: 300px;
    height: 300px;
    margin: 0;
    flex-shrink: 0;
  }

  #quienes-somos p {
    flex: 1;
    text-align: left;
    margin: 0;
  }

  #quienes-somos .quote {
    width: 100%;
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
  }

  .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .navbar-menu {
    display: flex !important;
    flex-direction: row;
    margin-top: 0;
    gap: 8px;
    justify-content: center;
    padding-top: 5px; /* Additional top padding */
  }

  .navbar-menu li {
    margin: 0;
  }

  .navbar-menu a {
    padding: 8px 15px;
    height: 42px;
    width: 100px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--blanco);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15),
                0 3px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .navbar-toggle {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel img,
  .section-gallery img {
    height: 400px;
  }
}

.masTrabajos 
{
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 1rem 2rem;
  background-color: var(--azul);
  color: white;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease; /* Añade transición suave */

}
.masTrabajos:hover {
  background-color: var(--amarillo);
  color: var(--gris-oscuro);
}

#vehiculos {
  text-align: center;
}

#vehiculos .btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--azul);
  color: var(--blanco);
  text-decoration: none;
  border-radius: 4px;
  margin: 1rem 0;
  transition: background-color 0.3s ease;
}

#vehiculos .btn:hover {
  background-color: var(--amarillo);
  color: var(--gris-oscuro);
}

#vehiculos p {
  margin: 1rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  margin: 50px auto;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Social Icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

.instagram-icon {
  fill: #E4405F;
}

.facebook-icon {
  fill: #1877F2;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-float svg {
  width: 70%;
  height: 70%;
  fill: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

#contacto h2 {
  margin-bottom: 2rem;
}

#contacto p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}
