* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #1A427F 0%, #16355f 100%);
    color: #ffffff;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/*  Postulate2 page  */
.postulate2 .hero h1 {
    font-size: 2rem;
}
 /* vacancias page  */
:root {
    --accent:#0b3b5f;
    --muted:#dfeff9;
    --accent-2:#1f7d3a;
}
.vacancias .meta {
    font-size:12px;
    color:#5b7280;
    margin:0 0 10px;
}
.vacancias .body {
    font-family:Arial, Helvetica, sans-serif;
    color:#16324a;
    margin:0;
    background:#f8fbfe;
}
.vacancias .container {
    max-width:1100px;
    margin:0 auto;
    padding:16px;    
}
.vacancias .lead {
    color:#fff;
    font-size:19.2px;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}
.vacancias .grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap:18px;
    margin:20px 0;
}
.vacancias .card {
    background:#fff;
    padding:2.5rem 0 0 0;
    position: relative;
    text-align:center;
    display: flex;
    flex-direction:column;
    align-items: stretch;
    border-top: 15px solid #1A427F;
    font-family: Oswald, sans-serif;
    overflow: visible;
    min-height: 520px;
}
.vacancias .card .ribbon {
    font-size:20px;
    color:#1A427F;
    font-weight:700;
    letter-spacing:1px;
    padding:6px 8px;
    text-align:center;
}
.vacancias .card-body {
    margin-top: 50px;
}
.vacancias .job-cargo {
    border-top: 1px solid #eee;
}
.department-info {
    text-align: center;
    padding-top: 1rem;
    color: #555;
}

.footer-container {
    position: relative;
    margin-top: auto;  
}
.vacancias .footer-logo {
    position: static;
    display: flex;
    justify-content: center;
    margin: 20px auto 10px auto;
    width: 100%;
}
.vacancias .footer-logo img {
    max-height: 70px;
    width: auto;
}

.vacancias .footer-actions {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    padding: 20px 1.5rem;
    gap: 10px;
    width: 100%;
}

.vacancias .btn.apply,
.vacancias .btn-white {
    width: 160px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-sizing: border-box;
}
.vacancias .btn.apply {
    background-color: #1a427f !important;
    color:#fff !important;
    border: 2px solid #1a427f !important;
}
.vacancias .btn-white {
    background-color: #ffffff !important;
    color: #1A427F !important;
    border: 2px solid #1A427F !important;
    padding: 0;
}
.vacancias .btn-white:hover {
    background-color: #f0f7ff !important;
}
.vacancias .footer {
    padding:14px;
    text-align:center;
    color:#5b7280;
    border-top:1px solid #e6eef5;
    margin-top:18px;
}


/*  Startseite page */
.hero-split {
    display: flex;
    min-height: 60vh;
    background: linear-gradient(135deg, #0a2647 0%, #1A427F 100%);
    color: white;
    align-items: center;
    padding: 2rem;
    flex-wrap: wrap; 
}

.hero-left {
    flex: 1;
    padding: 3rem;
    min-width: 300px;
}

.hero-left h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.hero-left p {
    font-size: 20px;
}
.hero-right {
    flex: 1;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    border-radius: 20px;
    min-width: 300px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: white; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.checkmark {
    display: inline-block;
    width: 8px;
    height: 15px;
    border: solid #1A427F; 
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 4px; 
}
.cta-area {
    padding: 4rem 1rem;
    text-align: center;
    background: #f8f9fa;
}

.cta-area .button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-white {
    background-color: #ffffff !important; 
    color: #1A427F !important;           
    border: 2px solid #1A427F !important;           
    font-weight: bold;
}

.btn-white:hover {
    background-color: #f0f0f0 !important; 
    color: #1A427F !important;
}
/* Navigation Postulate & Startseite*/
nav {
    background-color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 3px solid #1A427F;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

nav .logo {
    height: 45px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1A427F;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    width: 100%;
    max-width: 1200px;             
    margin: 0 auto;
    margin: 0 20px;
}

/* Main Section */
.section {
    padding: 3rem 20px;
    background-color: white;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    width: 100%;
}   

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    margin-top: 1px;
    color: #1A427F;
    text-align: center;
    font-weight: 600;
}

/* Form Styles Postulate */
form {
    background-color: #fff;
    display: block;
    width: 100%;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    overflow: visible !important;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}
/* verschiedenes*/
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    pointer-events: auto;
}

.form-group label:not(.checkbox-item) {
    z-index: auto;
    position: relative;
}

#hijos_edades {
    margin-bottom:20px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1A427F;
    box-shadow: 0 0 0 3px rgba(26, 66, 127, 0.1);
}

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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Section Titles & Organization */
.section ol {
    list-style: none;
}

.section li {
    list-style: none;
    width: auto;
}

.section h3 {
    font-size: 1.6rem;
    color: #1A427F;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #1A427F;
    font-weight: 600;
    background-color: #fff;
}

.section h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 1.8rem 0 1rem 0;
    font-weight: 600;
}

.Identificacion-personal,
.formacion,
.experiencia,
.referenciaspersonales,
.habilidades,
.Herramientas,
.pretensioneslaborales,
.valoracionpersonal,
.familiares {
    margin-bottom: 2rem;
    width: 100%;
}


/* Identification Personal Grid */
.identification-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.identification-section .form-row {
    grid-column: auto;
    margin-bottom: 0;
}
#group-nacionalidad-otro {
    transition: all 0.3s ease; 
}

/* Simple Row Form Layout */
.form-row-simple {
    display: grid;
    grid-template-columns: minmax(150px, auto) 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    width: 100%;
}

.form-row-simple label {
    white-space: nowrap;
    padding-top: 10px;
}

.form-row-simple input,
.form-row-simple select,
.form-row-simple textarea {
    width: 100%;
}

/* Address Section */
.direccion {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Experiencia Sections */
.experiencia1,
.experiencia2,
.experiencia3 {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.experiencia1 > label,
.experiencia2 > label,
.experiencia3 > label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1A427F;
    display: block;
    margin-bottom: 1rem;
}
.experiencia1 .form-row1 ,
.experiencia2 .form-row1 , 
.experiencia3 .form-row1 {
    display: flex;
    margin-right: 400px;
    
}
.experiencia1 .form-row2 ,
.experiencia2 .form-row2 ,
.experiencia3 .form-row2 {
    display: flex;
    margin-left: 100px;
}
.experiencia1 textarea, 
.experiencia2 textarea, 
.experiencia3 textarea {
    width: 400px;
    height: 40px;
}


/* Formacion Sections */
.Primaria,
.secundaria,
.terciaria,
.cursos-seminarios {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* HR Lines */
hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 2px solid #e9ecef;
}

/* Buttons */
.btn {
    display: block;
    background-color: #1A427F;
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin: 2rem auto 0;
    width: fit-content;
    text-align: center;
}

.btn:hover {
    background-color: #0f2a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 66, 127, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}
.button-group {
    display: flex;            
    justify-content: center;  
    align-items: center;      
    gap: 15px;                
    width: 100%;             
    margin-top: 30px;
    flex-wrap: wrap;
}
.button-group .btn {
    margin: 0;
    width: auto;
}
.btnspostularse {
    width: 100%;
    margin: -40px 0 10px 0 !important; 
}

.btnspostularse .form-row {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.btnspostularse .btn {
    padding: 8px 20px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3 ease;
    text-decoration: none !important;
    display: inline-block;
}
.btnatras {
    text-align: left !important;
}
.btnatras .btn {
    background-color: #ffffff !important;
    color: #1A427F !important;
    border: 2px solid #1A427F !important;
}
.btnatras .btn:hover {
    background-color: #f5f5f5 !important;
    border-color: #1A427F !important;
}

.btnvacancias {
    text-align: right !important;
}
.btnvacancias .btn {
    background-color: transparent !important;
    color: #1A427F !important;
    border: 2px solid #1A427F !important;
}
.btnvacancias .btn:hover {
    background-color: #1A427F !important;
    color: #ffffff !important;
}

.form-row .btnvacancia_post  {
    display: flex;
    width: 100%;
    justify-content: center;

}
.btnvacancia_post .btn {
    background-color: transparent !important;
    color: #1A427F !important;
    border: 2px solid #1A427F !important;
    border-radius: 12px;
    padding: 10px 20px;
}
.btnvacancia_post .btn:hover {
    background-color: #1A427F !important;
    color: #ffffff !important;
}
.hero .btnatras2 {
    position: absolute;
    bottom: 20px;
    left:50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    padding: 0 15px;
    text-align: left;
}
.hero .btnatras2 .btn {
    display: inline-block;
    padding: 7px 12px;
    background-color: #ffffff !important;
    color: #1a427f !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.hero .btnatras2 .btn:hover {
    background-color: #f5f5f5 !important;
    color: #1A427F !important;
    border: 2px solid #1A427F !important;
}

/* Postularse por Vacancia */
    /* Container, der die volle Breite innerhalb der form-row einnimmt */
    /* Der äußere Rahmen */
.centered-vacancia-container {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0 15px 0; /* Mehr Platz nach unten zum restlichen Formular */
}

.vacancia-card {
    width: 100%;
    max-width: 480px;
}

    /* Die Box selbst */
.vacancia-display-box {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-top: 6px solid #264b5d; /* Dein Marken-Blau als Akzent */
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Weicher Schatten für Tiefe */
    text-align: center;
}

    /* Überschrift "Vacancia" */
.vacancia-label {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 15px;
}

    /* Der Job-Titel (Cargo) */
.vacancia-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Oder deine Hausschrift */
    font-size: 1.4rem;
    font-weight: 700;
    color: #264b5d;
    margin: 0;
    line-height: 1.2;
}

    /* Die Trennlinie */
.vacancia-divider {
    width: 40px;
    height: 2px;
    background-color: #264b5d;
    margin: 10px auto;
    border: none;
    opacity: 0.2;
}

    /* Die Abteilungs-Info */
.vacancia-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.vacancia-subtitle strong {
    color: #264b5d;
}
.form-instruction {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto; /* 20px Abstand zum nächsten Element (der Box) */
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}
h2 {
    text-align: center;
    margin-bottom: 5px; /* Enger an den Instruction-Text rücken */
}
/* Success Message */
.section > .container > h3 {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #e7f3ff;
    border-left: 4px solid #1A427F;
    color: #1A427F;
    font-size: 1.1rem;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.8rem;
    color: #ecf0f1;
    font-size: 0.95rem;
}

/* Cards Grid (if used) Vacancias */

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card h3 {
    color: #1A427F;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}
.card-image {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    border-radius: 8px 8px 0 0; 
    margin: -2rem -2rem 1.5rem -2rem; 
    background: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 10px;
}
.card-content {
    padding: 20px;
}
.job-modal {
    border: none;
    border-radius: 25px; 
    padding: 0;
    width: 90%;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.job-modal::backdrop {
    background: rgba(10, 38, 71, 0.7); 
    backdrop-filter: blur(5px); 
}

.modal-header {
    background: #1A427F;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    color: #333;
}

.modal-body h3 {
    color: #1f7d3a;
    margin-bottom: 15px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-footer .btn {
    border-radius: 50px;
    padding: 10px 30px;
}

.checkbox-grid {
    display: none;
}

.checkbox-grid:not(.checkboxes-hide) {
    display: block !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
    background: white !important;
    border: 1px solid #ccc !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    width: auto !important;
    min-width: 100% !important;
    inset: auto 0 auto 0 !important;
}

.checkbox-item {
    display: block;
    padding: 5px 0;
    cursor: pointer;
    margin: 0;
    pointer-events: auto;
    z-index: 10000;
}

.checkbox-item input {
    pointer-events: auto;
    cursor: pointer;
}

.checkboxes-hide {
    display: none !important;
}


.multiselect-container {
    position: relative;
    width: 100%;
    overflow: visible !important;
    z-index: 50;
}

.select-box {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.select-box::after {
    content: "▼";
    font-size: 0.8rem;
    color: #666;
}

/* Für handys*/
@media (max-width: 768px) {
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container, .section {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: visible !important;
    }

    /*form-row, form-row1, form-row2 */
    .form-row, 
    .form-row1, 
    .form-row2, 
    .form-row-simple,
    .identification-section {
        display: flex !important;
        flex-direction: column !important; 
        gap: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /*Form-Groups */
    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px !important;
    }

    /* Areas / Institution */
    select, 
    .form-group select,
    #area_deseada, 
    #institucion {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; 
        box-sizing: border-box !important;
        font-size: 16px !important; 
        height: auto !important;
        padding: 10px !important;
        display: block !important;
        white-space: nowrap;
        overflow:hidden;
        text-overflow: ellipsis;
    }

    /*  Inputs und Textareas */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    textarea,
    .form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        padding: 10px !important;
    }

    /* Labels */
    .form-group label {
        white-space: normal !important;
        line-height: 1.3;
        margin-bottom: 5px;
        display: block;
        width: 100% !important;
    }

    /* Multi-select dropdown fixes for mobile */
    .multiselect-container {
        overflow: visible !important;
        z-index: 50 !important;
    }

    #checkboxes-wrapper, #deps-wrapper {
        z-index: 9999 !important;
        max-height: 250px !important;
    }

    /* Buttons und Navigation */
    .btn {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1.1rem;
    }
    .btnatras {
        position: static !important;
        transform: none !important;
        margin-top: 20px !important;
        text-align: left !important;
        padding: 0 !important;
    }
    .btnatras .btn {
        display: inline-block;
        padding: 8px 15px !important;
        font-size: 14px !important;
    }
    nav .container {
        display: flex;
        justify-content: center;
        padding: 10px;
    }

    .logo {
        max-height: 50px;
    }

    /* Überschriften */
    .section h2 {
        font-size: 1.4rem !important;
        text-align: center;
    }

    /* Karten  */
    .cards {
        grid-template-columns: 1fr !important;
    }
}
