/* VARIABLES DE DISEÑO */
:root {
  --primary: #0f5132;       /* Verde pista */
  --primary-hover: #0b3d26;
  --accent: #d4e157;        /* Amarillo/Verde bola de tenis */
  --dark: #1e293b;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER & NAVBAR */
header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem; 
}

/* LOGOS LADO A LADO */
.logos-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem; 
}

.logo-item {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 65px; 
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-item:hover .logo-img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem; 
  align-items: center;
}

nav a {
  font-weight: 600;
  font-size: 1rem; 
  color: var(--dark);
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  font-weight: 800;
}

.btn-contact {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 0.65rem 1.3rem; 
  border-radius: 20px;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-contact:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* SUBMENÚ DESPLEGABLE (DROPDOWN) */
nav ul li.dropdown {
  position: relative;
}

.arrow {
  font-size: 0.8rem;
  margin-left: 0.2rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

nav ul li.dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 0.8rem 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1100;
  border: 1px solid var(--gray-light);
}

nav ul li.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--light);
  color: var(--primary);
}

/* HERO SECTION */
.hero-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
}

.hero-overlay h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.hero-overlay p {
  font-size: 1.35rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-accent:hover {
  transform: translateY(-2px);
  background-color: #c0ce3b;
}

.btn-accent.secondary {
  background-color: var(--white);
  color: var(--primary);
}

.btn-accent.secondary:hover {
  background-color: var(--light);
}

/* SECCIONES COMUNES Y CABECERAS DE PÁGINA */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 3.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}

.section-title p {
  color: var(--gray);
  margin-top: 0.5rem;
}

/* BLOQUES INTERNOS DE TEXTO + IMAGEN */
.club-block,
.escuela-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.club-block.reverse,
.escuela-block.reverse {
  direction: rtl;
}

.club-block.reverse .club-text,
.escuela-block.reverse .escuela-text {
  direction: ltr;
}

.club-text h2,
.escuela-text h2 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.club-text p,
.escuela-text p {
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.team-list {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.team-list li {
  margin-bottom: 0.4rem;
}

/* MARCOS DE IMÁGENES */
.club-image,
.equipo-image {
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
  background-color: var(--white);
  border: 4px solid var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-image:hover,
.equipo-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.18);
}

.club-image img,
.equipo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* BLOG / NOVEDADES */
.grid-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.card-text {
  color: var(--gray);
  font-size: 0.95rem;
}

/* CARACTERÍSTICAS DEL CLUB */
.features {
  background-color: var(--white);
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-box {
  padding: 2rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-box h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* TARJETAS DE CATEGORÍAS (ESCUELA) */
.categories-section {
  margin-top: 3rem;
  scroll-margin-top: 100px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  scroll-margin-top: 110px;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.category-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* DÓNDE ESTAMOS */
.info-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.details-list {
  list-style: none;
  margin-top: 1rem;
}

.details-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* GALERÍA / INSTALACIONES */
.club-gallery-section {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 1.5rem;
}

.gallery-info h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery-info p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* SECCIÓN CONTACTO Y FORMULARIO (PROFESIONAL) */
.contact-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 30px -10px rgba(15, 81, 50, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gray-light);
}

.contact-info-panel {
  background-color: var(--light);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--gray-light);
}

.info-header h3 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.info-header p {
  color: var(--gray);
  font-size: 0.95rem;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-details-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-bubble {
  width: 42px;
  height: 42px;
  background-color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-light);
  flex-shrink: 0;
}

.contact-details-list strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
}

.contact-details-list p, 
.contact-details-list a {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-details-list a:hover {
  color: var(--primary);
}

.contact-info-panel .map-container {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-top: auto;
}

.contact-form-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 1.8rem;
}

.form-header h3 {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.form-header p {
  color: var(--gray);
  font-size: 0.95rem;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: var(--white);
  color: var(--dark);
  transition: all 0.2s ease-in-out;
}

.modern-form textarea {
  resize: vertical;
  min-height: 100px;
}

.modern-form input:focus,
.modern-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.1);
}

.btn-submit-pro {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-submit-pro:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 81, 50, 0.25);
}

.btn-submit-pro:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-submit-pro:hover .btn-arrow {
  transform: translateX(4px);
}

/* FOOTER */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-description {
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* REDES SOCIALES FOOTER */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon.facebook:hover {
  background-color: #1877F2;
  color: #ffffff;
}

.social-icon.instagram:hover {
  background-color: #E1306C;
  color: #ffffff;
}

/* BOTÓN LEER MÁS EN NOTICIAS */
.btn-read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-read-more:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* PÁGINA NOTICIA INDIVIDUAL */
.single-news-container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.single-news-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background-color: var(--white);
  border-radius: 12px;
  margin-bottom: 2rem;
  display: block;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: var(--accent);
}

/* ADAPTACIÓN MÓVIL */
@media (max-width: 868px) {
  .contact-card-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    border-right: none;
    border-bottom: 1px solid var(--gray-light);
    padding: 1.8rem;
  }

  .contact-form-panel {
    padding: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    margin: 1rem;
  }
  
  .hero-img {
    height: 380px;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .logos-wrapper {
    justify-content: center;
  }

  .logo-img {
    height: 50px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li.dropdown {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: var(--light);
    margin-top: 0.5rem;
  }

  nav ul li.dropdown:hover .dropdown-menu {
    display: flex;
  }

  .info-location {
    grid-template-columns: 1fr;
  }

  .club-block,
  .club-block.reverse,
  .escuela-block,
  .escuela-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  
  .club-image,
  .equipo-image {
    max-width: 100%;
    height: 320px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .map-container {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
}
