* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-red: #02567a;
  --dark-red: #01384f;
  --dark-bg: #dee2e6;
  --card-bg: #f5f7f9;
  --text-light: #0a0a0a;
  --text-gray: #555555;
  --border-color: #ccc;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background: linear-gradient(135deg, #dee2e6 0%, #f5f7f9 100%);
  min-height: 100vh;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.section {
  scroll-margin-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 5%;
  gap: 24px;
}

.hero-section {
  background: url("fondoclaro.png") no-repeat center center;
  background-size: cover; 
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff, #e3e8ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: #f5f5f5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(2, 86, 122, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(2, 86, 122, 0.45);
}

.cta-button i {
  font-size: 18px;
  transition: var(--transition);
}

.cta-button:hover i {
  transform: scale(1.2);
}

.torneos-section {
  padding: 100px 5%;
  background: var(--dark-bg);
}

.torneos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 8px;
}

.torneos-grid .cta-button {
  min-width: 200px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--text-light);
}

.partidos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.partido-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.partido-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
}

.partido-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.partido-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.equipos {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 18px;
}

.vs {
  color: var(--primary-red);
  font-weight: 700;
}

.hora {
  background: rgba(2, 86, 122, 0.1);
  color: var(--primary-red);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.partido-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-gray);
}

/* Contacto Section */
.contacto-section {
  background: linear-gradient(135deg, var(--card-bg), var(--dark-bg));
}

.contacto-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.contacto-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-light);
  text-align: center;
}

.contacto-section > .contacto-content > p {
  font-size: 1.15rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-light);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(2, 86, 122, 0.1);
  background: var(--white);
}

.contact-form .cta-button {
  margin-top: 8px;
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: linear-gradient(145deg, #f5f7f9, #e8ecf0);
  padding: 48px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid rgba(2, 86, 122, 0.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-gray);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-light);
  transform: rotate(90deg);
}

.modal-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 25px rgba(2, 86, 122, 0.4);
  animation: iconPulse 2.5s ease-in-out infinite;
}

.modal-content h2 {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: -0.5px;
}

.modal-content p {
  margin: 0 0 32px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-gray);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-modal {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: inherit;
}

.btn-modal.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  box-shadow: 0 6px 20px rgba(2, 86, 122, 0.35);
}

.btn-modal.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(2, 86, 122, 0.45);
}

.btn-modal.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-gray);
  border: 2px solid var(--border-color);
}

.btn-modal.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--text-gray);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.9s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(2, 86, 122, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(2, 86, 122, 0.6);
  }
}

@media (max-width: 968px) {
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 20px 60px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .torneos-section {
    padding: 60px 20px;
  }

  .torneos-section > .section-title {
    position: static;
    margin-bottom: 24px;
    font-size: 1.8rem;
  }

  .torneos-grid {
    justify-content: center;
  }

  .contacto-section {
    padding: 60px 20px;
  }

  .contacto-content {
    padding: 0 20px;
  }

  .contacto-section h2 {
    font-size: 2rem;
  }

  .partidos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .torneos-grid .cta-button {
    font-size: 0.9rem;
    padding: 12px 20px;
    min-width: 150px;
  }

  .modal-content {
    padding: 36px 28px;
    max-width: 95%;
  }
  
  .modal-content h2 {
    font-size: 26px;
  }

  .modal-content p {
    font-size: 15px;
  }
  
  .modal-icon {
    width: 70px;
    height: 70px;
  }
  
  .modal-icon svg {
    width: 40px;
    height: 40px;
  }

  .btn-modal {
    padding: 14px 24px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .modal-content {
    padding: 28px 20px;
  }
}