/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #4b5563;
  background-color: #ffffff;
}

/* Colores principales */
:root {
  --primary: #3492be;
  --secondary: #77b4c6;
  --white: #ffffff;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-100: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}
/* Header */
/* ============================= */
/* Ajustes generales de la página */
/* ============================= */

/* Header fijo con "Club del Arenal" */
header {
  background: linear-gradient(135deg, #87CEEB 0%, #ffffff 100%);
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  --header-height: 10px; /* ajustá según lo que mida tu header */
}

/* Todas las secciones principales */
section {
  scroll-margin-top: var(--header-height); /* que no se tape al navegar */
  margin-top: 20px;       /* poca separación entre secciones */
  padding-top: 40px;      /* aire reducido arriba */
  padding-bottom: 30px;   /* aire reducido abajo */
}

/* Quitar espacio sobrante de los últimos elementos */
section > *:last-child {
  margin-bottom: 0;
}

/* Ajustes específicos para que no se vean tan "inflados" */
.historia,
.comodatos,
.valores,
.testimonios,
.cuerpo-tecnico,
.contacto {
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 40px;  /* todavía más compacto */
}

/* Grillas más ajustadas */
.comodatos-grid,
.valores-grid,
.testimonios-grid {
  gap: 24px; /* antes mucho más grande */
}
.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    background-color: rgba(135, 206, 235, 0.3);
    color: #1a252f;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Historia Section */
.historia {
   margin-bottom: 40px;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.line {
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  color: var(--gray-600);
  line-height: 1.2;
  margin-bottom: 24px;
}

.historia-text {
  font-size: 18px;
  line-height: 1.8;
  color:rgb(54, 53, 53);
  margin-bottom: 16px;
}

.historia-description {
  font-size: 18px;
  line-height: 1.8;
  color:var(--gray-400);
  margin-bottom: 16px;
}

.historia-text p {
  margin-bottom: 16px;
  
}
/* comodatos */

.comodatos {
  margin-top: 40px;
}

.comodatos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 0;
}

.comodatos-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  color: var(--gray-600);
  line-height: 1.2;
  padding: 0px 170px;
}

.comodatos-text {
  font-size: 18px;
  line-height: 1.8;
  color:rgb(54, 53, 53);
  margin-bottom: 32px;
}

.comodatos-text p {
  margin-bottom: 16px;
}

.comodatos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* imagen y texto lado a lado */
  gap: 20px;
}

.comodatos-full {
  grid-column: 1 / -1; /* hace que este bloque ocupe las 2 columnas */
  margin-top: 5px;
  margin-bottom: 0px;
  font-size: 18px;
 color:rgb(54, 53, 53);
  line-height: 1.6;
  text-align: left;
}
.stats {
  display: flex;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
}

.historia-image {
  position: relative;
}
.image-container {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
  overflow: hidden;
}

.image-container::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(137, 207, 240, 0.2), rgba(161, 215, 232, 0.2));
  border-radius: 24px;
  z-index: -1;
  filter: blur(20px);
}

.carousel {
  position: relative;
  width: 100%;
  height: 320px;
}

.carousel img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel img.active {
  opacity: 1;
  position: relative;
}

/* Botones */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.image-caption {
  text-align: center;
  margin-top: 20px;
}

.image-caption h3 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--gray-600);
}

.image-caption p {
  color: var(--gray-400);
}
/* Valores Section */
.valores {
  padding: 80px 0;
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.valor-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(137, 207, 240, 0.1);
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.valor-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.3s ease;
}

.valor-card:hover .valor-icon {
  transform: scale(1.1);
}

.valor-icon i {
  color: var(--white);
  font-size: 32px;
}

.valor-card h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.valor-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* Testimonios Section */
.testimonios {
  padding: 80px 0;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.testimonio-card {
  background: var(--white);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.stars i {
  color: var(--primary);
  font-size: 16px;
}

.quote {
  font-size: 18px;
  font-style: italic;
  color: var(--gray-400);
  margin-bottom: 24px;
  line-height: 1.6;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
}

.author-name {
  font-weight: bold;
  color: var(--gray-600);
}

.author-role {
  font-size: 14px;
  color: var(--gray-400);
}

/* Cuerpo Técnico Section */
.cuerpo-tecnico {
  padding: 80px 0;
  background: var(--gray-100);
}

.subsection-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--gray-600);
  margin-bottom: 32px;
  text-align: center;
}

/* Directivos */
.directivos-section {
  margin-bottom: 64px;
}

.directivos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.directivo-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

.directivo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.directivo-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.directivo-avatar i {
  color: var(--white);
  font-size: 24px;
}

.directivo-info h4 {
  font-size: 18px;
  font-weight: bold;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.cargo {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.descripcion {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.4;
}

/* Técnicos */
.tecnicos-section {
  margin-bottom: 32px;
}

.tecnicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.tecnico-card {
  background:#b6dff1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(137, 207, 240, 0.1);
}

.tecnico-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tecnico-image {
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.tecnico-content {
  padding: 24px;
}

.tecnico-content h4 {
  font-size: 20px;
  font-weight: bold;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.tecnico-content .cargo {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.tecnico-content .descripcion {
  font-size: 14px;
  color:rgb(75, 75, 75);
  line-height: 1.6;
  margin-bottom: 16px;
}



/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 64px 0;
}

.footer-header {
  text-align: center;
  margin-bottom: 48px;
}

.footer-header h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-header p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer a {
  background: var(--white);
  color: var(--primary);
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon i {
  font-size: 24px;
}

.info-content h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.info-content p {
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.75;
}
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001; /* que quede arriba del menú */
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #2c3e50;
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* ============================= */
/* RESPONSIVE COMPLETO           */
/* ============================= */

/* TABLET: hasta 992px */
@media (max-width: 992px) {
  .historia-grid,
  .comodatos-grid {
    grid-template-columns: 1fr; /* de dos columnas a una */
    text-align: center;
  }

  .comodatos-title {
    padding: 0 20px; /* menos espacio */
  }

  .stats {
    flex-direction: column;
    gap: 16px;
  }

  .valor-card {
    padding: 24px 16px;
  }
}

/* CELULARES: hasta 768px */
@media (max-width: 768px) {
  /* NAVBAR */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    width: 100%;
    background: #fff;
    text-align: center;
    padding: 2rem 0;
    gap: 1.5rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
  }

  /* Grillas y secciones */
  .historia-grid,
  .comodatos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comodatos-title {
    font-size: 1.8rem;
    padding: 0;
    text-align: center;
  }

  .comodatos-full {
    text-align: center;
    font-size: 16px;
  }

  .valores {
    padding: 40px 0;
  }

  .valores-grid {
    gap: 20px;
  }

  .valor-card {
    padding: 20px;
  }

  .testimonios {
    padding: 40px 0;
  }

  .testimonios-grid {
    grid-template-columns: 1fr;
  }

  .cuerpo-tecnico {
    padding: 40px 0;
  }

  .directivos-grid,
  .tecnicos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tecnico-card {
    margin: 0 10px;
  }

  .footer {
    padding: 40px 0;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-header h3 {
    font-size: 1.8rem;
  }

  .footer-header p {
    font-size: 16px;
  }

  .footer a {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* CELULARES PEQUEÑOS: hasta 480px */
@media (max-width: 480px) {
  .logo {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .section-title,
  .comodatos-title {
    font-size: 1.5rem;
  }

  .historia-text,
  .comodatos-text,
  .comodatos-full,
  .valor-card p,
  .testimonio-card,
  .descripcion {
    font-size: 14px;
    line-height: 1.6;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }

  .valor-card h3,
  .tecnico-content h4 {
    font-size: 18px;
  }

  .footer-header h3 {
    font-size: 1.5rem;
  }

  .footer-header p {
    font-size: 14px;
  }
}