* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #003366;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    object-fit: contain;
}

.header-title {
    flex: 1;
    text-align: right;
    color: #e3007b;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    animation: fadeInDown 0.8s ease-out;
}

.nav-right {
    flex: 1;
    text-align: right;
    color: #003366;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.5px;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.title-section {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease-out;
}

.title-section h1 {
    font-size: 32px;
    font-weight: 800;
}

.card {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    padding: 45px 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-top: 8px solid #e3007b;
    color: #333333;
    display: none;
}

.card.active {
    display: block;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h2 {
    color: #003366;
    font-size: 22px;
    margin-bottom: 18px;
    border-bottom: 3px solid #f0f4f8;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 25px;
}

.info-item {
    font-size: 16px;
    line-height: 1.6;
    background-color: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #003366;
}

.info-item strong {
    color: #003366;
}

.info-list {
    margin-left: 20px;
    margin-top: 10px;
}

.info-list li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.info-list li strong {
    color: #e3007b;
}

.form-group {
    margin-bottom: 22px;
    width: 100%;
    position: relative;
}

.form-group label {
    display: block;
    color: #003366;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #e3007b;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(227, 0, 123, 0.15);
}

.form-control[type="file"] {
    background-color: #ffffff;
    padding: 10px;
    cursor: pointer;
}

.error-input {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    animation: shake-input 0.3s ease-in-out;
}

.error-message {
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    display: none;
    animation: fadeIn 0.3s ease;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.sub-section-title {
    font-size: 18px;
    color: #003366;
    font-weight: 800;
    margin: 30px 0 20px 0;
    text-transform: uppercase;
    border-left: 4px solid #e3007b;
    padding-left: 12px;
    background-color: #f0f4f8;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.experiencia-bloque {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 10px;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.checkbox-group input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e3007b;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.btn-container {
    display: flex;
    gap: 20px;
    margin-top: 35px;
}

.btn {
    flex: 1;
    background-color: #e3007b;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c40066;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #003366;
    border: 2px solid #cbd5e1;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.btn-add {
    background-color: transparent;
    color: #003366;
    border: 2px dashed #003366;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-add:hover {
    background-color: #003366;
    color: #ffffff;
}

.btn-remove {
    background-color: transparent;
    color: #dc2626;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    margin-top: -10px;
}

.btn-remove:hover {
    color: #991b1b;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-top: 6px solid #e3007b;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake-input {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@media (max-width: 768px) {
    header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 5px;
        padding: 15px 20px;
    }
    .header-title {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        text-align: left;
        font-size: 18px;
        line-height: 1.2;
    }
    .nav-right {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        text-align: left;
        font-size: 13px;
    }
    .logo-container {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .logo-img { 
        height: 50px; 
    }
    .main-container { padding: 20px 15px; }
    .card { padding: 30px 20px; }
    .btn-container { flex-direction: column; gap: 15px; }
    .btn { width: 100%; }
}