@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
    --letra2: 'Roboto', sans-serif;
    --color-blanco: #ffff;
    --letras: 'Dosis', sans-serif;
    --letra: 'Roboto Condensed', sans-serif;
    --fondo: #262626;
}

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

a {
    text-decoration: none;
}

body {
    border: 0 !important;
    overflow-x: hidden !important;
    max-width: 2200px;
    margin: auto !important;
    background-color: var(--fondo) !important;
}

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: rgba(12, 16, 22, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: splashOut 4s forwards;
}

.splash-screen::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    transform: translateX(-120%);
    background-color: transparent;
    animation: legoJoinLeft 1.1s cubic-bezier(0.2, 0.9, 0.25, 1) 0.2s forwards;
}

.splash-screen::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    transform: translateX(120%);
    background-color: transparent;
    animation: legoJoinRight 1.1s cubic-bezier(0.2, 0.9, 0.25, 1) 0.2s forwards;
}

.splash-logo-float {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
    animation: splashLogoFloat 4s ease-in-out infinite;
}

@keyframes legoJoinLeft {
    0% { transform: translateX(-120%); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes legoJoinRight {
    0% { transform: translateX(120%); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes splashLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes splashOut {
    0%, 82% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.registro-section {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background-color: var(--fondo);
}

.registro-container {
    width: min(100%, 820px);
    margin: 0 auto;
}

.registro-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.registro-image-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.registro-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.registro-header {
    text-align: center;
    margin-bottom: 40px;
}

.registro-title {
    font-family: var(--letras);
    font-size: 36px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.registro-subtitle {
    font-family: var(--letra2);
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

.registro-field {
    margin-bottom: 16px;
}

.registro-label {
    display: block;
    font-family: var(--letra);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    font-weight: 500;
}

.registro-checkbox-field {
    margin-bottom: 24px;
}

.registro-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: var(--letra2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.registro-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: #16dc66;
    cursor: pointer;
}

.registro-checkbox-text a {
    color: #16dc66;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.registro-checkbox-text a:hover {
    color: #14b857;
}

.registro-error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-family: var(--letra2);
    font-size: 14px;
    color: #ff6b6b;
    text-align: center;
    line-height: 1.5;
}

.registro-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: var(--letra2);
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.registro-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.registro-input:focus {
    border-color: #16dc66;
    box-shadow: 0 0 0 4px rgba(22, 220, 102, 0.1);
}

.registro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 14px;
    border: none;
    background: #16dc66;
    color: #ffffff;
    font-family: var(--letras);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.registro-btn:hover {
    background: #14b857;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(22, 220, 102, 0.3);
}

.registro-btn:active {
    transform: translateY(0) scale(0.98);
}

.registro-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.registro-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(22, 220, 102, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.registro-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: #16dc66;
}

.registro-footer-text {
    text-align: center;
    font-family: var(--letra2);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 20px;
}

.scroll-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: #16dc66;
    border: none;
    border-radius: 50%;
    color: #00512f;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(22, 220, 102, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #14b857;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(22, 220, 102, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media screen and (min-width: 1651px) {
    .registro-card {
        padding: 56px 64px;
    }

    .registro-title {
        font-size: 40px;
    }
}

@media screen and (min-width: 1000px) and (max-width: 1650px) {
    .registro-section {
        padding: 100px 24px 50px;
    }

    .registro-card {
        padding: 40px 48px;
    }

    .registro-title {
        font-size: 32px;
    }

    .registro-subtitle {
        font-size: 16px;
    }

    .registro-btn {
        padding: 14px 36px;
        font-size: 18px;
    }
}

@media screen and (min-width: 650px) and (max-width: 990px) {
    .registro-section {
        padding: 100px 20px 50px;
    }

    .registro-card {
        padding: 36px 32px;
        border-radius: 20px;
    }

    .registro-title {
        font-size: 28px;
    }

    .registro-subtitle {
        font-size: 15px;
    }

    .registro-input {
        font-size: 15px;
        padding: 14px 18px;
    }

    .registro-btn {
        padding: 14px 32px;
        font-size: 17px;
    }

    .registro-image {
        max-height: 100px;
    }

    .scroll-to-top {
        bottom: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (min-width: 421px) and (max-width: 650px) {
    .registro-section {
        padding: 20px 16px;
    }

    .registro-card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .registro-title {
        font-size: 24px;
    }

    .registro-subtitle {
        font-size: 14px;
    }

    .registro-label {
        font-size: 16px;
    }

    .registro-input {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }

    .registro-btn {
        padding: 13px 28px;
        font-size: 16px;
        border-radius: 12px;
    }

    .registro-image {
        max-height: 90px;
    }

    .registro-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .registro-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .scroll-to-top {
        bottom: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media screen and (min-width: 320px) and (max-width: 420px) {
    .registro-section {
        padding: 20px 12px;
    }

    .registro-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .registro-title {
        font-size: 20px;
    }

    .registro-subtitle {
        font-size: 13px;
    }

    .registro-label {
        font-size: 14px;
    }

    .registro-input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .registro-btn {
        padding: 12px 24px;
        font-size: 15px;
        border-radius: 10px;
    }

    .registro-image {
        max-height: 80px;
    }

    .registro-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .registro-icon-wrapper svg {
        width: 28px;
        height: 28px;
    }

    .registro-footer-text {
        font-size: 11px;
    }

    .scroll-to-top {
        bottom: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .scroll-to-top svg {
        width: 16px;
        height: 16px;
    }
}
