* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: linear-gradient(120deg, #667eea, #764ba2);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contenedor {
    background: white;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5563d6;
}

.mensaje {
    margin-bottom: 15px;
    padding: 10px;
    background: #f1f1f1;
    border-left: 5px solid #667eea;
    border-radius: 6px;
}



:root {
  --bg: #ffffff;
  --fg: #0b0b0c;
  --muted: #5a5a5f;
  --red: #e1061a;
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans",
    "Helvetica Neue",
    sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 12px;
  border-radius: 999px;
}
.skip-link:focus {
  left: 12px;
  z-index: 9999;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.topbar__accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(225, 6, 26, 0.1);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-size: 14px;
  letter-spacing: 0.2px;
}
.brand__tag {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav__links a:hover {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.03);
}
.nav__links a:focus-visible {
  outline: 3px solid rgba(225, 6, 26, 0.25);
  outline-offset: 2px;
}

/* Typography */
.h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  margin: 0;
}
.h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 56ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.link {
  color: inherit;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 12px;
}

/* Hero */
.hero {
  padding: 34px 0 22px;
  background:
    radial-gradient(
      900px 500px at 10% 10%,
      rgba(225, 6, 26, 0.12),
      transparent 55%
    ),
    radial-gradient(
      700px 420px at 90% 20%,
      rgba(0, 0, 0, 0.06),
      transparent 55%
    );
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.hero__media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1px;
  transition:
    transform 0.08s ease,
    background 0.12s ease,
    border-color 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid rgba(225, 6, 26, 0.25);
  outline-offset: 2px;
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.03);
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sections */
.section {
  padding: 54px 0;
}
.section--alt {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Línea divisoria para secciones concretas */
.section--divider {
  border-top: 1px solid var(--border);
}
.section__head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}
.section__head p {
  margin: 0;
  max-width: 75ch;
}

/* Cards / layouts */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.card p {
  margin: 0;
}
.card p + p {
  margin-top: 10px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.profile img {
  border-radius: 14px;
  border: 1px solid var(--border);
}
.profile__body p {
  margin: 0;
}
.profile__body p + p {
  margin-top: 8px;
}

/* Carrusel sencillo */
.carousel {
  position: relative;
}
.carousel__viewport {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}
.carousel__viewport .profile {
  min-width: min(360px, 80vw);
  scroll-snap-align: start;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.carousel__btn--prev {
  left: -6px;
}
.carousel__btn--next {
  right: -6px;
}
.carousel__btn:hover {
  background: #fff;
}

/* Premios / Galería: ajustes de imagen y pie de foto */
.carousel__viewport figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.carousel__viewport figure img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
}
.carousel__viewport figure figcaption {
  padding: 6px 0 0;
}
.carousel__viewport figure figcaption strong {
  display: block;
}

/* Ajustes finos para botones en móviles */
@media (max-width: 760px) {
  .carousel__btn--prev {
    left: 6px;
  }
  .carousel__btn--next {
    right: 6px;
  }
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li {
  margin: 6px 0;
}

.tableWrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.table td:first-child,
.table th:first-child {
  padding-left: 18px;
}
.table td:nth-child(2),
.table th:nth-child(2) {
  text-align: center;
}
.table td:last-child,
.table th:last-child {
  padding-right: 18px;
  text-align: right;
}
.table th {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 800;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr.competition td {
  border-bottom: none;
}

/* Alinea el botón junto al email a la derecha dentro de la tabla */
.table td .stack {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table td .stack > a.btn {
  margin-left: auto;
}

.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(225, 6, 26, 0.25);
  background: rgba(225, 6, 26, 0.06);
}

/* Eventos */
.eventos__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}
.segmented__btn {
  appearance: none;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--fg);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.segmented__btn.is-active {
  background: var(--fg);
  color: var(--bg);
}
.details {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 12px 14px;
}
.details summary {
  cursor: pointer;
}
.code {
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
}
.badge--news {
  border-color: rgba(225, 6, 26, 0.25);
  background: rgba(225, 6, 26, 0.06);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}
.event__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.map img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.02);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .contact .card {
    display: flex;
    flex-direction: column;
  }
  .contact .card h2 {
    flex-shrink: 0;
  }
  .contact .card .tableWrap,
  .contact .card p {
    flex: 1;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile {
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    display: none;
    position: absolute;
    right: 20px;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    width: min(320px, calc(100vw - 40px));
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    border-color: var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* Contact: tabla más compacta y tarjetas de igual altura */
.contact .card {
  display: flex;
  flex-direction: column;
}
.contact .card h2 {
  flex-shrink: 0;
}
.contact .card .tableWrap {
  flex: 1;
}
.contact .card p {
  flex: 1;
}
.contact .table th,
.contact .table td {
  padding: 8px 12px;
  font-size: 14px;
}
