/* ========================================
   TOMA EL JUEGO - FUTTO REGISTRATION
   Nike-inspired design system
   ======================================== */

/* ---------- CSS RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #111111;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #ccc;
    --color-gray-400: #999;
    --color-gray-500: #757575;
    --color-gray-600: #555;
    --color-gray-700: #333;
    --color-orange: #fa5400;
    --color-orange-light: #fff3e0;
    --color-red: #d32f2f;
    --color-red-light: #fdecea;
    --color-green: #388e3c;
    --color-green-light: #e8f5e9;
    --color-blue: #1151ff;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-black);
    text-decoration: none;
}

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

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    height: 64px;
}

.navbar__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar__logo-nike {
    height: 28px;
    width: auto;
}

.navbar__logo-futto {
    height: 20px;
    width: auto;
}

.navbar__logo-divider {
    width: 1px;
    height: 24px;
    background: var(--color-gray-300);
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color var(--transition);
    position: relative;
}

.navbar__link:hover {
    color: var(--color-black);
}

.navbar__link--cta {
    background: var(--color-black);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.navbar__link--cta:hover {
    background: var(--color-gray-700);
    color: var(--color-white);
}

.navbar__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 999;
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu__link {
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu__link--cta {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 14px;
    border-radius: 30px;
    border-bottom: none;
    margin-top: 8px;
}

/* ---------- HERO BANNER ---------- */
.hero {
    margin-top: 64px;
}

.hero__banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero__banner-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #a8b4f0 0%, #6b7fd6 30%, #4a5fb5 50%, #3a4fa5 70%, #5b6ec4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    position: relative;
}

.hero__banner-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.hero__banner-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero__banner-subtext {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.hero__banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ---------- EVENT INFO ---------- */
.event-info {
    padding: 48px 24px;
    border-bottom: 1px solid var(--color-gray-200);
}

.event-info__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
}

.event-info__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.event-info__description {
    font-size: 16px;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

.event-info__tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-200);
}

.event-info__tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-gray-600);
}

.event-info__tag svg {
    flex-shrink: 0;
}

.event-info__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-info__detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.event-info__detail-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.event-info__detail strong {
    display: block;
    font-size: 15px;
}

.event-info__detail-sub {
    font-size: 13px;
    color: var(--color-gray-500);
    line-height: 1.5;
}

.event-info__warning {
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.event-info__warning-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-info__warning p {
    font-size: 13px;
    color: var(--color-gray-600);
    line-height: 1.5;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--color-gray-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 2px solid var(--color-gray-300);
}

.btn--secondary:hover {
    border-color: var(--color-black);
}

.btn--full {
    width: 100%;
    text-align: center;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn--submit {
    font-size: 18px;
    padding: 16px 40px;
}

/* ---------- RULES SECTION ---------- */
.rules-section {
    padding: 60px 24px;
    background: var(--color-gray-100);
}

.rules-section__container {
    max-width: 800px;
    margin: 0 auto;
}

.rules-section__title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
}

.rules-section__subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
}

.rules-section__warning {
    background: var(--color-orange-light);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.rules-section__warning-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rules-section__warning p {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.7;
}

.rules-section__criteria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.criteria-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.criteria-item__pct {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-black);
    min-width: 50px;
}

.criteria-item span:last-child {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.4;
}

.rules-section__note {
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: 8px;
}

.rules-section__bonus {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 16px;
}

.rules-section__list {
    padding-left: 24px;
    margin-bottom: 16px;
}

.rules-section__list li {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 8px;
}

.rules-section__list li ul {
    padding-left: 20px;
    margin-top: 8px;
}

.rules-section__list--remember li {
    margin-bottom: 10px;
}

.rules-section__footnote {
    font-size: 13px;
    color: var(--color-gray-500);
    font-style: italic;
    margin: 16px 0 24px;
}

/* Timeline */
.rules-section__timeline {
    position: relative;
    padding-left: 32px;
    margin-bottom: 32px;
}

.rules-section__timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-gray-300);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item__marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--color-black);
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-black);
}

.timeline-item__content strong {
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.timeline-item__content p {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.5;
}

/* ---------- REGISTRATION FORM ---------- */
.registration {
    padding: 60px 24px;
    background: var(--color-white);
}

.registration__container {
    max-width: 780px;
    margin: 0 auto;
}

.registration__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.registration__subtitle {
    font-size: 15px;
    color: var(--color-gray-500);
    margin-bottom: 40px;
}

/* Form Progress */
.form__progress {
    width: 100%;
    height: 4px;
    background: var(--color-gray-200);
    border-radius: 2px;
    margin-top: 40px;
    overflow: hidden;
}

.form__progress-bar {
    height: 100%;
    background: var(--color-black);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.form__progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.form__progress-step {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-400);
    transition: color var(--transition);
}

.form__progress-step.active {
    color: var(--color-black);
    font-weight: 700;
}

/* Form Steps */
.form__step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form__step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-black);
}

.form__step-number {
    width: 36px;
    height: 36px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.form__step-title {
    font-size: 22px;
    font-weight: 700;
}

.form__section-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-600);
    margin-bottom: 16px;
}

.form__divider {
    height: 1px;
    background: var(--color-gray-200);
    margin: 24px 0;
}

/* Form Groups */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 6px;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 15px;
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--color-black);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: 0 0 0 3px rgba(17,17,17,0.1);
}

.form__input.error,
.form__select.error,
.form__textarea.error {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__hint {
    display: block;
    font-size: 12px;
    color: var(--color-gray-500);
    margin-top: 4px;
}

.form__char-count {
    display: block;
    font-size: 12px;
    color: var(--color-gray-400);
    text-align: right;
    margin-top: 4px;
}

.form__error {
    display: block;
    font-size: 12px;
    color: var(--color-red);
    margin-top: 4px;
    min-height: 16px;
}

/* Form Rows */
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

/* Checkbox */
.form__group--checkbox {
    margin-bottom: 16px;
}

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-700);
}

.form__checkbox-label input[type="checkbox"] {
    display: none;
}

.form__checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-300);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
    margin-top: 2px;
}

.form__checkbox-label input:checked + .form__checkbox-custom {
    background: var(--color-black);
    border-color: var(--color-black);
}

.form__checkbox-label input:checked + .form__checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__link {
    color: var(--color-blue);
    text-decoration: underline;
}

/* Form Actions */
.form__actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* Form Summary */
.form__summary {
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.form__summary h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-gray-200);
}

.form__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.form__summary-row span:first-child {
    color: var(--color-gray-500);
}

.form__summary-row span:last-child {
    font-weight: 600;
}

.form__summary-player {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-200);
}

.form__summary-player h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal__content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal__icon {
    width: 64px;
    height: 64px;
    background: var(--color-green-light);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.modal__title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.modal__text {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal__id {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

/* ---------- LOCATION ---------- */
.location-section {
    padding: 48px 24px;
    border-top: 1px solid var(--color-gray-200);
}

.location-section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.location-section__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.location-section__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.location-section__map iframe {
    display: block;
}

.location-section__info {
    padding: 8px 0;
}

.location-section__info strong {
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.location-section__info p {
    font-size: 13px;
    color: var(--color-gray-500);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-black);
    padding: 40px 24px;
    text-align: center;
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer__logo {
    height: 32px;
    filter: invert(1);
}

.footer__logo--futto {
    height: 22px;
}

.footer__copy {
    font-size: 12px;
    color: var(--color-gray-500);
}

/* ---------- TOURNAMENT BLOCKS ---------- */
.rules-section__divider {
    height: 2px;
    background: var(--color-gray-200);
    margin: 32px 0;
}

.rules-section__sub-subtitle {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 12px;
}

.tournament-block {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-gray-300);
}

.tournament-block--fem {
    border-left-color: #e74c3c;
}

.tournament-block--masc {
    border-left-color: #3498db;
}

.tournament-block--finals {
    border-left-color: #f39c12;
}

.tournament-block__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tournament-block__header h4 {
    font-size: 18px;
    font-weight: 700;
}

.tournament-block__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tournament-block__dot--red { background: #e74c3c; }
.tournament-block__dot--blue { background: #3498db; }
.tournament-block__dot--gold { background: #f39c12; }

.tournament-block__time {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-gray-600);
    margin-bottom: 12px;
}

.tournament-block p {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.tournament-block .rules-section__list {
    margin-top: 8px;
}

/* ---------- PRIZES ---------- */
.rules-section__prizes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.prize-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

.prize-item__icon {
    font-size: 24px;
    flex-shrink: 0;
}

/* ---------- LOADING SPINNER ---------- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .navbar__nav {
        display: none;
    }

    .navbar__mobile-toggle {
        display: flex;
    }

    .hero__banner-placeholder {
        height: 260px;
    }

    .hero__banner-text {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .event-info__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .event-info__title {
        font-size: 24px;
    }

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

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

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

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

    .form__actions {
        flex-direction: column-reverse;
    }

    .form__actions .btn {
        width: 100%;
    }

    .registration__title {
        font-size: 24px;
    }

    .form__step-title {
        font-size: 18px;
    }

    .modal__content {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero__banner-placeholder {
        height: 200px;
    }

    .event-info {
        padding: 32px 16px;
    }

    .rules-section {
        padding: 40px 16px;
    }

    .registration {
        padding: 40px 16px;
    }

    .criteria-item {
        padding: 12px 16px;
    }

    .criteria-item__pct {
        font-size: 20px;
    }
}
