:root {
    --primary-color: #009bda;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(90deg, #e2e2e2, #c9d6ff);;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.screen .logo {
    max-width: 100%;
    height: auto;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f5f7ff;
    z-index: 100;
    transition: transform 0.7s ease-in-out, opacity 0.7s ease;
    transform: translateY(0);
    opacity: 1;
}

/* Estilos para los mensajes de error */
.error-messages {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    display: none;
    font-weight: bold;
}

.field-error {
    border-color: #dc3545 !important;
}


.screen.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.logo {
    max-width: 200px;
    margin-bottom: 2rem;
    animation: float 2s ease-in-out infinite;
}

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

.btn-start {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-start:hover {
    background-color: rgba(60, 60, 61, 1); /* Versión más oscura (#3c3c3d) */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(71, 71, 72, 1); /* Sombra más neutra */
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    display: none;
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    transition: var(--transition);
}

.form-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header .logo-pequeño {
    width: 260px;
    height: auto;
    transition: 0.4s ease-in-out; /* Suaviza el cambio */
}

.form-header .logo-pequeño:hover {
    width: 180px; /* Tamaño aumentado */
    transform: scale(1.05); /* Opcional: escala ligeramente */
}

.form-header p {
    color: #474748;
    font-size: 1rem;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.readonly-field {
    background-color: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: 22px;
    background-color: #f8f9fa;
    border: 2px solid #adb5bd;
    border-radius: 6px;
    margin-right: 0.75rem;
    transition: var(--transition);
}

.checkbox-container:hover .checkmark {
    background-color: #e9ecef;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.hidden-fields {
    display: none;
    animation: fadeIn 0.5s ease;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #dee2e6;
}

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

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    width: 100%;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 2px dashed #adb5bd;
    border-radius: var(--border-radius);
    color: #6c757d;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-btn:hover {
    background-color: #e9ecef;
    border-color: var(--accent-color);
    color: var(--dark-color);
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: rgba(71, 71, 72, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 71, 72, 1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-icon {
    color: var(--dark-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.thank-you {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.thank-you h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thank-you p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-close {
    background-color: var(--primary-color);
    color: white;
    border: rgba(71, 71, 72, 1);;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-close:hover {
    background-color: rgba(71, 71, 72, 1);;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(71, 71, 72, 1);;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-header h1 {
        font-size: 1.8rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 0.75rem;
    }

    .btn-submit {
        padding: 0.75rem;
    }

    .btn-start, .btn-close {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .thank-you h2 {
        font-size: 1.7rem;
    }
}




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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'sans-serif';
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, #e2e2e2, #c9d6ff);
    overflow: hidden;
}

.container {
    position: relative;
    width: 1050px;
    height: 900px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    margin: 20px;
    overflow: hidden;
}

.form-box {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 40px;
    z-index: 1;
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.proceso-radio {
    width: 16px;
    height: 16px;
    cursor: pointer;
}


.file-upload-icon {
    cursor: pointer;
    transition: color 0.3s ease;
}

.file-upload-icon:hover {
    color: #7494ec;
}


#fileInputText {
    cursor: pointer;
}

#fileInputText:hover {
    background-color: #f5f5f5;
}


.container.active .form-box {
    right: 50%;
}

.form-box.register {
    visibility: hidden;
}

.container.active .form-box.register {
    visibility: visible;
}

form {
    width: 100%;
}

.container h1 {
    font-size: 36px;
    margin: -10px 0;
}

.input-box {
    position: relative;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #eee;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.input-box input::placeholder {
    color: #888;
    font-weight: 400;
}

.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #888;
}

.btn {
    width: 100%;
    height: 48px;
    background: #7494ec;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.container p {
    font-size: 14.5px;
    margin: 15px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    margin: 0 8px;
}

.toggle-box {
    position: absolute;
    width: 100%;
    height: 100%;
}

.toggle-box::before {
    content: '';
    position: absolute;
    left: -150%;
    width: 200%;
    height: 100%;
    background: #7494ec;
    border-radius: 150px;
    z-index: 2;
    transition: 1.5s ease-in-out;
}

.container.active .toggle-box::before {
    left: 50%;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: .6s ease-in-out;
}

.toggle-panel.toggle-left {
    left: 0;
    transition-delay: 1.2s;
}

.container.active .toggle-panel.toggle-left {
    left: -50%;
    transition-delay: .6s;
}

.toggle-panel.toggle-right {
    right: -50%;
    transition-delay: .6s;
}

.container.active .toggle-panel.toggle-right {
    right: 0;
    transition-delay: 1.2s;
}

.toggle-panel p {
    margin-bottom: 20px;
}

.toggle-panel .btn {
    width: 160px;
    height: 46px;
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
}

.logo-image {
    filter: brightness(0) invert(1);
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    margin-left: -20px;
}

.toggle-panel h1 {
    display: none;
}


.container.form-only .form-box.register {
    right: 0;
    width: 100%;
    visibility: visible;
    z-index: 3;
}

.container.form-only .form-box.questions,
.container.form-only .toggle-box {
    display: none;
}


.container.thank-you .form-box.register,
.container.thank-you .form-box.questions,
.container.thank-you .toggle-panel.toggle-left {
    display: none;
}

.container.thank-you .toggle-box::before {
    display: none;
}

.container.thank-you .toggle-panel.toggle-right {
    right: 0;
    width: 100%;
    text-align: center;
    background-color: #7494ec;
}


@media screen and (max-width: 650px) {

    .container {
        height: calc(100vh - 40px);
    }

    .form-box {
        bottom: 0;
        width: 100%;
        height: 70%;
    }

    .container.active .form-box {
        right: 0;
        bottom: 30%;
    }

    .toggle-box::before {
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

    .container.active .toggle-box::before {
        left: 0;
        top: 70%;
    }

    .toggle-panel {
        width: 100%;
        height: 30%;
    }

    .toggle-panel.toggle-left {
        top: 0;
    }

    .container.active .toggle-panel.toggle-left {
        left: 0;
        top: -30%;
    }

    .toggle-panel.toggle-right {
        right: 0;
        bottom: -30%;
    }

    .container.active .toggle-panel.toggle-right {
        bottom: 0;
    }
    
}

@media screen and (max-width: 400px) {
    .form-box {
        padding: 20px;
    }

    .toggle-panel h1 {
        font-size: 30px;
    }
} */