* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cambiamos el body para que fluya hacia abajo normalmente */
body {
    background-color: #f0f4f8;
    min-height: 100vh;
}

/* Este contenedor nuevo se encarga de centrar la tarjeta sin tocar el header */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    /* Restamos un aproximado de altura para que compute bien el centrado vertical */
    min-height: calc(100vh - 80px);
}

/* Contenedor de la Tarjeta */
.card-container {

    margin: 40px auto 0 auto;
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border: 2px solid #aae7f9;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);

}

/* Encabezado de la tarjeta */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-placeholder {
    width: 65px;
    height: 65px;
    background-color: #f0f3f7;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.title-container h2 {
    color: #1a2530;
    font-size: 24px;
    font-weight: 700;
}

.title-container h3 {
    color: #ff7e67;
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px;
}

/* Badge de Distancia */
.badge-distance {
    background-color: #e6f9ff;
    color: #107c91;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-pin {
    color: #ff3b67;
    font-size: 18px !important;
}

/* Rejilla de Información (Grid) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #5c6f84;
    font-weight: 500;
    font-size: 15px;
}

.info-item .material-symbols-outlined {
    font-size: 20px;
    color: #64748b;
}

.info-item .icon-phone {
    color: #e11d48;
}

.info-item .icon-map {
    color: #0284c7;
}

.info-item .icon-work {
    color: #2563eb;
}

/* Caja de Descripción Detallada */
.description-box {
    background-color: #f7f9fc;
    border-radius: 16px;
    padding: 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Separador */
.divider {
    border: 0;
    height: 1px;
    background-color: #f1f5f9;
    margin: 25px 0 20px 0;
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.salary-box {
    display: flex;
    align-items: baseline;
}

.salary-amount {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
}

.salary-period {
    font-size: 15px;
    color: #64748b;
    margin-left: 4px;
    font-weight: 500;
}

/* Botón Postular */
.btn-postular {
    background-color: #ff7e67;
    color: white;
    border: none;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-postular:hover {
    background-color: #eb6b53;
}

.btn-postular:active {
    transform: scale(0.98);
}

/* Ajuste Responsivo */
@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
    }

    .badge-distance {
        align-self: flex-start;
    }

    .card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .btn-postular {
        width: 100%;
    }
}