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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Panel Izquierdo */
.left-panel {
    width: 35%;
    background: linear-gradient(rgba(19, 49, 144, 0.85), rgba(19, 49, 144, 0.85)),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-content {
    position: relative;
    z-index: 2;
}

.logo img {
    max-width: 290px;
    height: auto;
}

.welcome-section {
    margin-top: 40px;
}

.welcome-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 20px;
}

.welcome-section .highlight {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.welcome-section .gratis {
    color: #ffd700;
    font-weight: 600;
}

.welcome-section .cities {
    color: #ffd700;
    font-weight: 600;
}

.welcome-section .note {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Panel Derecho */
.right-panel {
    width: 65%;
    background-color: rgb(224 233 255);
    padding: 30px 50px;
    overflow-y: auto;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.header-container {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 30px 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 40px;
    border: 2px solid #ececec;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab:hover {
    border-color: #93ccff;
}

.tab.active {
    border-color: #93ccff;
    background: white;
}

.tab.active .check-mark {
    display: flex;
}

.check-mark {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #c41e3a;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.tab-icon {
    width: 40px;
    height: 40px;
    padding: 15px;
    margin-bottom: 8px;
    color: #003366;
    background-color: #ccd9f0;
    border-radius: 50%;
    box-sizing: content-box;
}

.tab span:not(.check-mark) {
    color: #003366;
    font-weight: 500;
}

/* Form Header */
.form-header {
    text-align: center;
}

.form-header h3 {
    color: #c41e3a;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.form-header h4 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    width: 100%;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: white;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #003366;
}

input::placeholder {
    color: #999;
}

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 fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Input with icon */
.input-icon {
    position: relative;
}

.input-icon > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}

.input-icon input,
.input-icon select {
    padding-left: 45px;
}

.input-icon.select-icon select {
    padding-left: 45px;
}

/* Password toggle */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-password .eye-icon {
    width: 20px;
    height: 20px;
    color: #999;
}

.toggle-password:hover .eye-icon {
    color: #003366;
}

/* Terms Section */
.terms-section {
    margin-top: 10px;
}

.terms-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.terms-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    position: relative;
}

.checkbox-container:last-child {
    margin-bottom: 0;
}

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

.checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 12px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkmark.red {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.checkmark.red::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-container input:checked + .checkmark {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-container input:checked + .checkmark.red {
    background-color: #c41e3a;
    border-color: #c41e3a;
}

.checkbox-text {
    flex: 1;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #c41e3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

.btn-submit:hover {
    background-color: #a01830;
}

/* Responsive */
@media (max-width: 1024px) {
    .left-panel {
        width: 40%;
        padding: 30px;
    }

    .right-panel {
        width: 60%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        padding: 30px 20px;
        min-height: auto;
    }

    .right-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .tabs {
        flex-direction: row;
        gap: 10px;
    }

    .tab {
        padding: 15px 25px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .welcome-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tab {
        padding: 12px 20px;
    }

    .tab-icon {
        width: 30px;
        height: 30px;
    }
}
