/* ==========================================================================
   ADET - Asociación de Desarrollo Deportivo de Tlaxcala
   Design System & Premium Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-blue: #1e5f8a;
  --primary-blue-hover: #154566;
  --accent-green: #6cb33f;
  --accent-green-hover: #568f32;
  --accent-orange: #e67e22;
  --accent-orange-hover: #d35400;
  --bg-footer: #154566;
  
  --text-dark: #2c3e50;
  --text-muted: #5a738e;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  /* Layout & Spacing */
  --max-width: 1200px;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  /* Typography */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 10px 30px rgba(30, 95, 138, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(30, 95, 138, 0.15);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button, .btn {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Common Layout Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
  color: var(--primary-blue);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-green);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  gap: 8px;
  box-shadow: var(--shadow-subtle);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-blue {
  background-color: var(--primary-blue);
  color: white;
}

.btn-blue:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 10px 20px rgba(30, 95, 138, 0.2);
}

.btn-green {
  background-color: var(--accent-green);
  color: white;
}

.btn-green:hover {
  background-color: var(--accent-green-hover);
  box-shadow: 0 10px 20px rgba(108, 179, 63, 0.2);
}

.btn-orange {
  background-color: var(--accent-orange);
  color: white;
}

.btn-orange:hover {
  background-color: var(--accent-orange-hover);
  box-shadow: 0 10px 20px rgba(230, 126, 34, 0.2);
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: white;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  background-color: #ffffff;
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-green);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hamburger mobile menu button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 80px 0;
  background: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 1) 0%, rgba(238, 242, 246, 1) 90%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 179, 63, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 550px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
}

.hero-img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  object-fit: cover;
  aspect-ratio: 4/3;
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-img {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Decorative ring behind image */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 4px solid var(--accent-green);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  opacity: 0.3;
}

/* ==========================================================================
   Eventos Section
   ========================================================================== */
.events {
  background-color: #ffffff;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.event-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(30, 95, 138, 0.2);
}

.event-date-badge {
  background-color: var(--primary-blue);
  color: white;
  border-radius: var(--border-radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  height: 65px;
  box-shadow: 0 4px 10px rgba(30, 95, 138, 0.2);
}

.event-date-icon {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.event-date-day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.event-title {
  font-size: 1.15rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.event-details-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-details-list li i {
  color: var(--accent-green);
  font-size: 0.9rem;
}

.event-btn {
  margin-top: 8px;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background-color: var(--accent-green);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
}

.event-btn:hover {
  background-color: var(--accent-green-hover);
}

/* ==========================================================================
   Noticias Section
   ========================================================================== */
.news {
  background-color: var(--bg-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.news-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .news-img {
  transform: scale(1.08);
}

/* For cards without images */
.news-no-img {
  background: linear-gradient(135deg, rgba(30, 95, 138, 0.05) 0%, rgba(108, 179, 63, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 3rem;
  font-family: var(--font-title);
  font-weight: 800;
  opacity: 0.5;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-transform: uppercase;
}

.news-card-title {
  font-size: 1.2rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--primary-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.news-link:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   Nosotros Section
   ========================================================================== */
.about {
  background-color: #ffffff;
}

.about .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-block h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-block h3::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 24px;
  background-color: var(--accent-green);
  border-radius: 4px;
}

.about-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.value-item {
  background-color: var(--bg-light);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  border-left: 4px solid var(--accent-orange);
}

.value-title {
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.value-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  max-width: 320px;
  width: 100%;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.05));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   Affiliate / Volunteer CTAs
   ========================================================================== */
.cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #154566 100%);
  color: white;
  text-align: center;
  position: relative;
}

.cta-banner-content {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.cta-banner-title {
  font-size: 2.25rem;
  font-weight: 700;
}

.cta-banner-text {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   Contacto Section (Modal or Simple Form)
   ========================================================================== */
.contact-section {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(108, 179, 63, 0.1);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-text h4 {
  font-size: 1.05rem;
  color: var(--primary-blue);
  margin-bottom: 2px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form-panel {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 138, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-footer);
  color: white;
  padding: 70px 0 30px;
  font-size: 0.95rem;
  border-top: 5px solid var(--accent-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  max-width: 180px;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-desc {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-green);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item a {
  opacity: 0.8;
}

.footer-link-item a:hover {
  opacity: 1;
  color: var(--accent-green);
  padding-left: 6px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.9;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--accent-green);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .header {
    height: 70px;
  }
  
  .logo-img {
    height: 52px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: 0.4s ease;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .header-btn {
    display: none; /* Hide header CTA button on small screens */
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
