@import url('https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@400;600;700&display=swap');

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

body {
  background: #f4f6f8;
  color: #111;
  font-family: 'Poppins', Arial, sans-serif;
}

/* CABECERA */

.hero {
  background: linear-gradient(135deg, #08763a, #13b85f);
  color: white;
  padding: 48px 18px;
  text-align: center;
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 14px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero p {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: 20px;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.login-box {
  margin-top: 22px;
}

#usuarioTexto {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* ESTRUCTURA */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 28px 18px;
}

.box {
  background: white;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

#crear {
  margin-top: 50px;
}

h2 {
  margin-bottom: 16px;
}

.loading {
  color: #555;
  margin: 10px 0;
}

/* FORMULARIOS */

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

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: white;
  font-family: inherit;
  font-size: 15px;
}

textarea {
  min-height: 90px;
  resize: vertical;
  margin-top: 14px;
}

/* BOTONES */

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-green {
  background: #08763a;
  color: white;
}

.btn-dark {
  background: #111;
  color: white;
}

.btn-white {
  background: white;
  color: #08763a;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111;
}

.btn-danger {
  background: #d62828;
  color: white;
}

.btn-warning {
  background: #f59e0b;
  color: white;
}

/* TARJETAS */

.matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin: 7px 0;
  color: #444;
  line-height: 1.4;
}

.tag {
  display: inline-block;
  background: #e7f8ee;
  color: #08763a;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.full {
  background: #fde2e2;
  color: #a00000;
}

.join-form {
  margin-top: 15px;
  display: grid;
  gap: 10px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.map-link {
  color: #08763a;
  font-weight: 700;
  text-decoration: none;
}

/* LEGAL */

.footer {
  text-align: center;
  padding: 30px 20px;
  color: #777;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.legal-links a,
.check-legal a {
  color: #087f3f;
  font-weight: 700;
  text-decoration: none;
}

.legal-box {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.check-legal{
  display:grid !important;
  grid-template-columns:18px 1fr !important;
  align-items:start !important;
  column-gap:8px !important;
  width:100% !important;
  margin:18px 0 20px 0 !important;
  text-align:left !important;
}

.check-legal input{
  width:18px !important;
  height:18px !important;
  margin:2px 0 0 0 !important;
  padding:0 !important;
}

.check-legal span{
  display:block !important;
  line-height:1.15 !important;
  text-align:left !important;
}

/* MÓVIL */

@media only screen and (max-width: 768px) {
  .hero {
    padding: 35px 20px 45px;
    text-align: center;
  }

  .hero h1 {
    font-size: 50px;
    margin: 0 auto 18px;
    line-height: 0.95;
  }

  .hero p {
    max-width: 95%;
    margin: 0 auto 24px;
    font-size: 17px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .login-box {
    margin-top: 18px;
  }

  .container {
    padding: 22px 16px;
  }

  .box {
    padding: 18px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .matches {
    grid-template-columns: 1fr;
  }
}
