/* MatchMaster - Sistema de Diseño "Verde Bosque" & "Stitch" Premium */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;700&display=swap');

:root {
  /* Paleta de Colores */
  --bg-deep: #0d1a14;
  --bg-forest: #1a4231;
  --bg-card: rgba(26, 66, 49, 0.25);
  --color-accent: #84cc16; /* Verde Menta/Lima */
  --color-accent-hover: #a3e635;
  --color-text: #ffffff;
  --color-text-muted: #a3b899;
  --color-border: rgba(132, 204, 22, 0.2);
  --color-border-active: rgba(132, 204, 22, 0.6);
  --color-danger: #ef4444;
  --color-danger-hover: #f87171;
  --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

/* Tipografía Deportiva Premium */
h1, h2, h3, .sport-title {
  font-family: var(--font-title);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Header & Navegación */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 26, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 66, 49, 0.5);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--bg-forest), var(--color-accent));
  color: var(--bg-deep);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  border: 1px solid var(--color-accent);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-style: italic;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
}

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

.lang-selector {
  background: var(--bg-forest);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.lang-selector:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.2);
}

/* Hero Section */
.hero {
  padding: 8rem 2rem 4rem 2rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.15) 0%, rgba(13, 26, 20, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: rgba(132, 204, 22, 0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #a3b899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-button {
  background: var(--color-accent);
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(132, 204, 22, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(132, 204, 22, 0.6);
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 320px;
  height: 640px;
  border-radius: 40px;
  background: #000;
  border: 12px solid #1a251e;
  box-shadow: var(--shadow-premium), 0 0 40px rgba(132, 204, 22, 0.15);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-deep);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Elementos de la App en el Mockup */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(132, 204, 22, 0.1);
  padding-bottom: 0.75rem;
}

.mock-title {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.mock-card {
  background: rgba(26, 66, 49, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-card-title {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.mock-match-info {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}

.mock-teams-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.mock-team-box {
  flex: 1;
  background: rgba(13, 26, 20, 0.6);
  border: 1px solid rgba(132, 204, 22, 0.1);
  border-radius: 6px;
  padding: 0.4rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.mock-team-box.lima {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(132, 204, 22, 0.1);
}

.feature-icon-container {
  width: 50px;
  height: 50px;
  background: rgba(132, 204, 22, 0.1);
  color: var(--color-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

/* Ficha del Jugador Section */
.player-showroom {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(26, 66, 49, 0.2) 50%, var(--bg-deep) 100%);
}

.player-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

/* Ficha de Jugador CSS Premium */
.player-card {
  background: linear-gradient(135deg, #132a20, #0a1410);
  border: 3px solid var(--color-accent);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
}

.player-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(132, 204, 22, 0.08);
  border-radius: 50%;
  filter: blur(20px);
}

.player-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(132, 204, 22, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.player-overall {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--color-accent);
  line-height: 1;
}

.player-pos-badge {
  background: var(--bg-forest);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.player-card-info {
  text-align: center;
  margin-bottom: 2rem;
}

.player-card-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--bg-forest), var(--bg-deep));
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin: 0 auto 1rem auto;
}

.player-card-name {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 800;
}

.player-card-nickname {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.player-stats-row {
  display: flex;
  justify-content: space-around;
  background: rgba(13, 26, 20, 0.6);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
}

.player-stat-box {
  text-align: center;
}

.player-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  font-family: var(--font-title);
}

.player-stat-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.player-attributes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.attribute-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.attribute-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  width: 80px;
}

.attribute-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(132, 204, 22, 0.1);
}

.attribute-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 10px;
  transition: width 1s ease-out;
}

.attribute-val {
  font-size: 0.85rem;
  font-weight: 700;
  width: 25px;
  text-align: right;
}

/* FAQ Accordion */
.faq {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  background: rgba(132, 204, 22, 0.05);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

/* Páginas Legales y Formularios */
.legal-page {
  padding: 8rem 2rem 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-premium);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
  color: var(--color-accent);
  border-left: 3px solid var(--color-accent);
  padding-left: 0.75rem;
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.legal-content ol, .legal-content ul {
  color: var(--color-text-muted);
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Formularios Premium */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.form-input {
  background: rgba(13, 26, 20, 0.8);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(132, 204, 22, 0.3);
  background: var(--bg-deep);
}

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

.form-submit-btn {
  background: var(--color-accent);
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  padding: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(132, 204, 22, 0.3);
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(132, 204, 22, 0.5);
  transform: translateY(-2px);
}

/* Modales e Info Cards */
.info-alert {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-alert-title {
  color: var(--color-danger);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
}

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

.status-message {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
  text-align: center;
  margin-top: 1rem;
}

.status-message.success {
  display: block;
  background: rgba(132, 204, 22, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.status-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

/* Footer */
footer {
  background: #070e0b;
  border-top: 1px solid rgba(26, 66, 49, 0.5);
  padding: 4rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.footer-bottom {
  border-top: 1px solid rgba(26, 66, 49, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Galería de Capturas */
.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}
.gallery-scroll::-webkit-scrollbar-track {
  background: var(--bg-deep);
  border-radius: 4px;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}
.gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent) !important;
  box-shadow: 0 15px 35px rgba(132, 204, 22, 0.15) !important;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 1rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .player-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .legal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 1rem;
    position: relative;
    background: var(--bg-deep);
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
  }
}
