/* Estilos Principales - Asociación Deportiva Rural El Maitén */
:root {
  --primary: #0f4c3a;
  --primary-light: #16654e;
  --primary-dark: #092e23;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px -3px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Barra Superior */
.top-info-bar {
  background: #092e23;
  color: #d1fae5;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-meta {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Principal */
.main-header {
  background: white;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.main-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}

.brand-texts h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.brand-texts p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-header-verificador {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 3px 8px rgba(15, 76, 58, 0.25);
  transition: all 0.2s;
}

.btn-header-verificador:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(15, 76, 58, 0.35);
}

/* ========================================================
   BARRA DE NAVEGACIÓN EN UNA SOLA LÍNEA COMPACTA Y JUNTOS
   ======================================================== */
.nav-bar-strip {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.4rem 0;
}

.single-line-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1px 0;
}

.single-line-menu::-webkit-scrollbar {
  display: none;
}

.menu-item {
  text-decoration: none;
  color: #334155;
  background: white;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.42rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.menu-item:hover {
  background: #e2e8f0;
  color: var(--primary-dark);
}

.menu-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 5px rgba(15, 76, 58, 0.25);
}

.menu-item-cancha {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
  font-weight: 800;
}

.menu-item-cancha:hover {
  background: #059669;
  color: white;
  border-color: #059669;
}

/* ========================================================
   HERO SECTION CON LOGO ANIMADO FLOTANTE
   ======================================================== */
.hero-section {
  background: linear-gradient(135deg, #092e23 0%, #0f4c3a 50%, #16654e 100%);
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 850px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a7f3d0;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-desc {
  font-size: 1.08rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ANIMACIÓN DEL LOGO FLOTANTE */
.logo-hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.floating-logo {
  width: 270px;
  height: 270px;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.4));
  animation: floatEffect 3.8s ease-in-out infinite;
}

@keyframes floatEffect {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
}

@media (max-width: 600px) {
  .floating-logo {
    width: 210px;
    height: 210px;
  }
}

.hero-seal-badge {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 0.4rem;
}

.hero-seal-badge strong {
  color: #fef08a;
}

/* Stats Bar */
.hero-stats-bar {
  margin-top: 3.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stats-bar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fef08a;
}

.stat-label {
  font-size: 0.85rem;
  color: #d1fae5;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Cancha Banner Section */
.cancha-banner-section {
  padding: 3.5rem 0;
  background: #f1f5f9;
}

.cancha-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-light);
  background: linear-gradient(to right, #ffffff 60%, #f0fdf4 100%);
}

.cancha-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid #6ee7b7;
}

.cancha-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.cancha-card p {
  font-size: 1.05rem;
  color: #475569;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.cancha-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.btn-cancha-portal {
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(15, 76, 58, 0.3);
  transition: all 0.2s;
}

.btn-cancha-portal:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Secciones Generales */
.section-padding {
  padding: 5rem 0;
}

.bg-white { background: white; }
.bg-light { background: #f8fafc; }
.bg-dark { background: #092e23; }

.section-heading {
  margin-bottom: 3.5rem;
}

.text-center { text-align: center; }

.sub-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
}

.section-heading h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 0.3rem;
}

.heading-separator {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 2.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

/* Clubs Grid */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.club-item-card {
  background: white;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.club-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.club-item-card.highlight {
  border-color: var(--accent);
  background: #fefce8;
}

.club-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.club-item-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.club-item-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Series Grid */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.serie-card {
  border-radius: var(--radius);
  padding: 2.2rem;
  background: #f8fafc;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.serie-card.serie-a { border-top: 6px solid #2563eb; }
.serie-card.serie-c { border-top: 6px solid #d97706; }
.serie-card.serie-f { border-top: 6px solid #db2777; }

.serie-badge {
  display: inline-block;
  background: #2563eb;
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.serie-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.serie-list {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: #334155;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-decoration: none;
  color: white;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-box h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 0.5rem;
}

.service-box p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-link {
  color: #6ee7b7;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.main-footer {
  background: #061f18;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand h3 {
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-brand p {
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
}
